selectTools
index
selectTools.py

tools for manipulating atom selections

 
Functions
       
IVM_breakDisulfides(ivm, sel=0)
for the ivm.IVM object, break disulfide bonds in given
    selection (default: all disulfides)
IVM_breakProlines(ivm, sel=0)
for the ivm.IVM object, break proline rings between
    the delta and gamma positions
IVM_breakRiboses(ivm, sel=0, breakSelStr="name O4' or name C1'")
for the ivm.IVM object, break ribose rings between the
    O4' and C1' positions.
IVM_groupRigidBackbone(ivm, sel=())
for the ivm.IVM object, group omega angles in selection sel
IVM_groupRigidSidechain(ivm, sel=())
for the ivm.IVM object, group rigid sidechain regions in
    selection sel
convertToAtom(arg, sim=0)

    given an atomSel.AtomSel or a string convert to atom selection
    and check that just a single atom.Atom is selected. Return that Atom.
    If the argument is an Atom, just return it.
    
convertToAtomSel(arg, sim=0)

    convert arg to an atomSel.AtomSel, if it is not already one.
 
    If sim is specified it is used instead of simulation.currentSimulation.
    If sim is specified, arg is an AtomSel, and the simulations don't match,
    a new AtomSel is created using the string from arg and the sim argument.
    
convertToSelectionIndices(sel, sim=0)
allowed input: string, atom.Atom, atomSel.AtomSel, single index,
        or list of indices
    output: list of indices
getResids(sel=0)
return a list of unique residue ids. If an atom selection sel is
    specified, return the unique residue ids in the selection.
    
getSegids(sel='tag')
return a list of unique segment ids. If an atom selection sel is
    specified, return the unique segment ids in the selection.
    
getSegsResidues(sel, sim)
given a sequence of atom selection indices, and a simulation,
    return a dictionary of segments, each entry of which is a list of
    residue ids contained therein.
    
groupRigidNucleicAcid(sel=(), sim=0)
return a list of groups atoms which are members of fixed
    regions of nucleic acid bases.
    The second argument is a selection in sim in which the groupings are
    to be made.
groupRigidProtein(sel=(), sim=0)
return a list of groups atoms which are members of fixed
    regions of protein backbone and sidechains.
    The second argument is a selection in sim in which the groupings are
    to be made.
groupRigidSel(rigidSelList, sel=(), sim=0)
return a list of groups atoms. The groups are formed by iterating
    through all residues in the selection, and making groups from each
    group selection string.
    The last argument is a selection in sim in which the groupings are
    to be made.
groupRigidSideChains(sel=(), sim=0)
return a list of groups atoms which are members of fixed
    regions of protein sidechains.
    The second argument is a selection in sim in which the groupings are
    to be made.
groupStrictRigidNucleicAcid(sel=(), sim=0)
return a list of groups atoms which are members of fixed
    regions of nucleic acid bases.
    The second argument is a selection in sim in which the groupings are
    to be made. Is this needed?
maxResid(sel=0, sim=0)
return the largest residue id
    
minResid(sel=0, sim=0)
return the smallest residue id
    
numResidues(sel='not resname ANI')
return the number of residues in the specified atomSel.AtomSel
    

 
Data
        res = 'URI'
rigidNucleicSelections = {'ADE': 'name n9 or name c4 or name n3 or name c2 or name...r name c8 or name n6\n or name h2 or name h8', 'CYT': 'name n1 or name c6 or name c5 or name c4 or name...\n NAME N4 or name h5 or name h6 or name o2', 'GUA': 'name n9 or name c4 or name n3 or name c2 or name...r name c8 or name o6\n or name h1 or name h8', 'TED': 'name n1 or name c6 or name c5 or name c4 or name n3 or name c2', 'THY': 'name n1 or name c6 or name c5 or name c4 or name...me c2 or name o4 or name o2 or name h3 or name h6', 'URI': 'name n1 or name c6 or name c5 or name c4 \n ...r name o2 or name h3 or name h5\n or name h6'}
rigidProteinSelections = {'ARG': 'name NE or name CZ or name NH*', 'ASN': 'name CG or name OD1 or name ND2', 'ASP': 'name CG or name OD*', 'GLN': 'name CD or name OE1 or name NE2', 'GLU': 'name CD or name OE*)', 'HIS': 'name CG or name ND1 or name CD2 or name CE1 or name NE2', 'PHE': 'name CG or name CD1 or name CD2 or name CE1 or name CE2 or name CZ', 'TRP': 'name CG or name CD1 or name CD2 or name NE1 or n... name CE3 or name CZ2 or name CZ3 or name CH2', 'TYR': 'name CG or name CD1 or name CD2 or name CE1 or name CE2 or name CZ'}
sel = 'name n1 or name c6 or name c5 or name c4 \n or name n3 or name c2 or name o4 or name o2 '
strictRigidNucleicSelections = {'ADE': 'name n9 or name c4 or name n3 or name c2 or name...me c6 or name c5 or name n7 or name c8 OR NAME N6', 'CYT': 'name n1 or name c6 or name c5 or name c4 or name n3\n or name c2 OR NAME N4', 'GUA': 'name n9 or name c4 or name n3 or name c2 or name...me c6 or name c5 or name n7 or name c8 or name o6', 'TED': 'name n1 or name c6 or name c5 or name c4 or name n3 or name c2', 'THY': 'name n1 or name c6 or name c5 or name c4\n or name n3 or name c2 or name o4 or name o2', 'URI': 'name n1 or name c6 or name c5 or name c4 \n or name n3 or name c2 or name o4 or name o2 '}