Difference between revisions of "Objects and Selections"

From PyMOLWiki
Jump to navigation Jump to search
 
Line 1: Line 1:
Objects and Selections
+
==Objects and Selections==
 +
 
 +
Selections are enclosed in parentheses and contain predicates, logical operations, object names, selection names and nested parenthesis: ( [... [(...) ... ]] )
 +
 
 +
name <atom names>            n. <atom names>         
 +
resn <residue names>        r. <residue names>
 +
resi <residue identifiers>  i. <residue identifiers>
 +
chain <chain ID>            c. <chain identifiers>
 +
segi <segment identifiers>  s. <segment identifiers>
 +
elem <element symbol>        e. <element symbols>
 +
flag <number>                f. <number>
 +
alt                   
 +
numeric_type <numeric type>  nt. <numeric type>
 +
text_type <text type>        tt. <text type>
 +
b <operator> <value>       
 +
q <operator> <value>       
 +
formal_charge <op> <value>  fc. <operator> <value>
 +
partial_charge <op> <value>  pc. <operator> <value>
 +
id <original-index>         
 +
hydrogen                    h.
 +
all                          *
 +
visible                      v.
 +
hetatm                     
 +
<selection> and <selection>  <selection> & <selection>
 +
<selection> or <selection>  <selection> | <selection>
 +
not <selection>              ! <selection>
 +
byres <selection>            br. <selection>
 +
byobj <selection>            bo. <selection>
 +
around <distance>            a. <distance>
 +
expand <distance>            e. <distance>
 +
gap <distance>             
 +
in <selection>             
 +
like <selection>            l. <selection>
 +
<selection> within <distance> of <selection>
 +
<selection> w. <distance> of <selection>

Revision as of 22:42, 11 May 2005

Objects and Selections

Selections are enclosed in parentheses and contain predicates, logical operations, object names, selection names and nested parenthesis: ( [... [(...) ... ]] )

name <atom names>            n. <atom names>          
resn <residue names>         r. <residue names>
resi <residue identifiers>   i. <residue identifiers>
chain <chain ID>             c. <chain identifiers>
segi <segment identifiers>   s. <segment identifiers>
elem <element symbol>        e. <element symbols>
flag <number>                f. <number>
alt                    
numeric_type <numeric type>  nt. <numeric type>
text_type <text type>        tt. <text type>
b <operator> <value>         
q <operator> <value>         
formal_charge <op> <value>   fc. <operator> <value>
partial_charge <op> <value>  pc. <operator> <value>
id <original-index>          
hydrogen                     h.
all                          *
visible                      v.
hetatm                       
<selection> and <selection>  <selection> & <selection>
<selection> or <selection>   <selection> | <selection>
not <selection>              ! <selection>
byres <selection>            br. <selection>
byobj <selection>            bo. <selection>
around <distance>            a. <distance>
expand <distance>            e. <distance>
gap <distance>               
in <selection>               
like <selection>             l. <selection>
<selection> within <distance> of <selection>
<selection> w. <distance> of <selection>