This is a read-only mirror of pymolwiki.org

Extend (selection operator)

From PyMOL Wiki
Revision as of 17:32, 14 August 2015 by Bell (talk | contribs) (1 revision)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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