This is a read-only mirror of pymolwiki.org

Difference between revisions of "Extend (selection operator)"

From PyMOL Wiki
Jump to navigation Jump to search
(created / moved from extend page)
 
m (1 revision)
 
(No difference)

Latest revision as of 17:32, 14 August 2015

This page is about a selection operator. For the API function with the same name, see extend.

The selection operator extend is part of the PyMOL selection language and grows an atom selection based on covalent bonds.

Usage

s1 extend X

Where s1 is a selection expression and X is the number of bonds.

Example

The behavior is illustrated on residue 64 of PDB file 1KAO where we initially select one atom and then "extend" that selection by one and three covalent bonds.

select (resi 64 and name CZ)
Extend0.png
select (resi 64 and name CZ) extend 1
Extend1.png
select (resi 64 and name CZ) extend 3
Extend3.png

See also