Difference between revisions of "Main Page"

From PyMOLWiki
Jump to navigation Jump to search
(dssr_block)
(PyMOL v1.8.2)
Line 24: Line 24:
 
{| class="jtable" style="float: left; width: 90%;"
 
{| class="jtable" style="float: left; width: 90%;"
 
|+ style="font-size: 1.4em; font-weight: bold; text-align:left; border-bottom: 2px solid #6678b1;" | News & Updates
 
|+ style="font-size: 1.4em; font-weight: bold; text-align:left; border-bottom: 2px solid #6678b1;" | News & Updates
 +
|-
 +
! Official Release
 +
| [http://pymol.org PyMOL v1.8.2 has been released] on April 20, 2016.
 
|-
 
|-
 
! New Script
 
! New Script

Revision as of 10:57, 20 April 2016

Welcome to the PyMOL Wiki!
The community-run support site for the PyMOL molecular viewer.
New accounts: email jason (dot) vertrees (@) gmail dot com
Quick Links
Tutorials Table of Contents Commands
Script Library Plugins FAQ
Gallery | Covers PyMOL Cheat Sheet (PDF) Getting Help
News & Updates
Official Release PyMOL v1.8.2 has been released on April 20, 2016.
New Script dssr_block is a wrapper for DSSR (3dna) and creates block-shaped nucleic acid cartoons
New Plugin LiSiCA is a new plugin for 2D and 3D ligand based virtual screening using a fast maximum clique algorithm.
Official Release PyMOL v1.8.0 has been released on Nov 18, 2015.
PyMOL Open-Source Fellowship Schrödinger is now accepting applications for the PyMOL Open-Source Fellowship program! Details on http://pymol.org/fellowship
Official Release PyMOL, AxPyMOL, and JyMOL v1.7.6 have all been released on May 4, 2015.
New Plugin PyANM is a new plugin for easier Anisotropic Network Model (ANM) building and visualising in PyMOL.
New Plugin Bondpack is a collection of PyMOL plugins for easy visualization of atomic bonds.
New Plugin MOLE 2.0 is a new plugin for rapid analysis of biomacromolecular channels in PyMOL.
3D using Geforce PyMOL can now be visualized in 3D using Nvidia GeForce video cards (series 400+) with 120Hz monitors and Nvidia 3D Vision, this was previously only possible with Quadro video cards.
Older News See Older News.
Did you know...

CollapseSel

= Overview =

CollapseSel is a small utility function to compress strings for selections. So, if you have a selection with residues 1+2+3+4+20+21+22+100-120 this will return, 1-4+20-22+100-120.

CollapseIDs is a small utility function to compress strings for an array of IDs. This does NOT have the logic for detecting duplicates, CollapseSel does.

Example

run /dir/to/collapseSel.py
fetch 1cll
select EE, resn GLU
print collapseSel("EE")
#
# and PyMOL should output:
#
# 6-7+11+14+31+45+47+54+67+82-84+87+104+114+119-120+123+127+139-140
#

The Code

<source lang="python"> import pymol from pymol import stored

def collapseIDs(ids): """ Helper function to make a smart list of IDs: eg turns 1+2+3+4+5 into 1-5. """ rVal = [] if len(ids)==0: return ""

scanning=False anchor = 0 start = 0 # 1-5 7-10 12 21-23 for cur in range(0,len(ids)-1): if ids[cur]+1 == ids[cur+1]: if scanning: scanning=True continue else: scanning=True start = cur else: if ..→

A Random PyMOL-generated Cover. See Covers.