This is a read-only mirror of pymolwiki.org

Main Page

From PyMOL Wiki
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.5 has been released on May 10, 2021.
Python 3 New Python 3 compatibility guide for scripts and plugins
POSF New PyMOL fellows announced for 2018-2019
Tutorial Plugins Tutorial updated for PyQt5
New Plugin PICv is a new plugin for clustering protein-protein interactions and visualization with available data from PDBe
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
Older News See Older News.
Did you know...

Lines

Lines is name of the basic representation for atoms and bonds in PyMOL. Lines is a very simple representation, where each atom bond is displayed as a single colored line, and each atom is displayed as the intersection of any two or more non-terminal bonds.

Usage

# show everything as lines
show lines

# only show residues 50-80 as lines
show lines, i.50-80

Examples

Example: Displaying dashed lines between two atoms

The following commands will create a dashed line between two atoms.

# first, create two named selections
select a, ///A/501/02
select b, ///B/229/N
# calculate & show the distance from selection a to selection b.
distance d, a, b
# hide just the distance labels; the 
# dashed bars should still be shown
hide labels, d

Technically, the object d is a labelled distance, only the label is hidden. When ray-tracing the image, the dashes come out a bit fat. You can slim them with <source lang="python"> set dash_gap, 0.5 set ..→

A Random PyMOL-generated Cover. See Covers.