Extend (selection operator)

From PyMOLWiki
Revision as of 12:56, 5 August 2015 by Speleo3 (talk | contribs) (created / moved from extend page)
(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