This is a read-only mirror of pymolwiki.org

Main Page

From PyMOL Wiki
Revision as of 08:49, 24 July 2018 by Speleo3 (talk | contribs) (PyMOL v2.2 release)
Jump to navigation Jump to search
hosted by SBGridlogo2.jpg
Welcome to the PyMOL Wiki!
The community-run support site for the PyMOL molecular viewer.
To request a new account, email SBGrid at: accounts (@) sbgrid dot org
Quick Links
Tutorials Table of Contents Commands
Script Library Plugins FAQ
Gallery | Covers PyMOL Cheat Sheet (PDF) Getting Help
News & Updates
Official Release PyMOL v2.2 has been released on July 24, 2018.
POSF PyMOL Open-Source Fellowship program accepting applications for 2018-2019
New Plugin ProBiS H2O is a new plugin for identification of conserved waters in protein structures.
Selection keywords New polymer.protein and polymer.nucleic selection keywords. Thanks everyone who participated in the poll!
Plugin Update MOLE 2.5 is an updated version of channel analysis software in PyMOL
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.
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...

Split chains

Included in psico
This command or function is available from psico, which is a PyMOL extension.

Module psico.editing

split_chains is a script that creates for each chain in selection its own object.

This is a core command since PyMOL 1.6.0.0

Usage

split_chains [ selection [, prefix ]]

Example

fetch 2yko 2ykp 2ykq, async=0
split_chains
delete 2yko 2ykp 2ykq
alignto 2yko_A

The Script

<source lang="python"> from pymol import cmd, CmdException

def split_chains(selection='(all)', prefix=None):

   

DESCRIPTION

   Create a single object for each chain in selection

SEE ALSO

   split_states, http://pymolwiki.org/index.php/Split_object
   
   count = 0
   models = cmd.get_object_list('(' + selection + ')')
   for model in models:
       for chain in cmd.get_chains('(%s) and model %s' % (selection, model)):
           if chain == :
               chain = ""
           count += 1
           if not prefix:
               name = '%s_%s' % (model, chain)
           else:
               name = '%s%04d' % (prefix, count)
  ..→
A Random PyMOL-generated Cover. See Covers.