Imported modules
|
|
import chimera
import operator
import os
import os.path
from string import atoi, find, split, digits
|
Functions
|
|
|
|
bonds
|
bonds ( atomList, internal=1 )
|
|
chimeraLabel
|
chimeraLabel (
item,
showModel=None,
modelName=0,
style=None,
diffWith=None,
)
Return preferred chimera label for atom/bond/residue/molecule
showModel controls whether the model ID is part of the label
If the value type is boolean, then the model is shown if the value
is true. If the value is None, then the model is shown if there
are multiple models, otherwise the model is omitted.
modelName controls whether the model name is part of the label.
Has no effect if atom specs are being returned.
diffWith can either be a string or of the same type as item ;
the returned label will not include any leading components that
are the same as those in diffWith
|
|
displayResPart
|
displayResPart (
residues,
trace=0,
backbone=0,
other=0,
side=0,
skipIsolated=1,
)
|
|
getPseudoBondGroup
|
getPseudoBondGroup (
category,
modelID=-1,
associateWith=[],
hidden=1,
)
get a pseudobond group regardless of whether it already exists
This is utility function to perform the commonly-desired task
of getting a pseudobond group whether or not it already exists.
If the group does exist, that group is returned. Otherwise,
the group is created, added to the open models, and returned.
modelID is the model ID to open the group in. If you use a
negative number other than -1 , then the PseudoBondGroup
panel will not allow that group to be closed.
associateWith is a list of models that the pseudobond group
is closely associated with. If any of those models are closed,
then the pseudobond group will also be closed.
hidden indicates that the group shouldn't normally appear in
the list of open models (and Model Panel; will still appear
in Pseudobond Panel)
|
|
isProtein
|
isProtein ( model )
Is the given model a protein?
|
|
oslAtomCmp
|
oslAtomCmp ( atom1, atom2 )
Compare two atom-only OSL identifiers
|
|
oslCmp
|
oslCmp ( osl1, osl2 )
Compare two full OSL identifiers
|
|
oslModelCmp
|
oslModelCmp ( model1, model2 )
Compare two model-part-only OSL identifiers
|
|
oslResAtomCmp
|
oslResAtomCmp ( ra1, ra2 )
Compare two residue-and-atom OSL identifiers
|
|
oslResCmp
|
oslResCmp ( res1, res2 )
Compare two residue-only OSL identifiers
|
|
parseResID
|
parseResID ( resID )
Break a residue ID into sequence/insert code/chain
|
|
principalAtom
|
principalAtom ( res )
return the chain trace atom of a residue, if any
|
|
simplifyPath
|
simplifyPath ( path )
|
|