Trees | Indices | Help |
|
---|
|
Access the atoms, residues, and molecules (or just their indices) that are considered to be consensus objects for a template structure and query structure. All properties are returned as an OrderedDict that maps the template objects to their consensus objects from the query structure.
Here is an example of how to get all the consensus waters between two protein structures. We define the cutoff here at 2 Angstroms:
from schrodinger.structure import StructureReader from schrodinger.application.bioluminate import protein pt = maestro.project_table_get() # Create an ASL map for all ligands in the WS asl_map = [] for row in pt.included_rows: st = row.getStructure() ligands = analyze.find_ligands(st) if not ligands: continue indices = [] for ligand in ligands: indices.extend([str(i) for i in ligand.atom_indexes]) asl = 'atom.n %s' % ','.join(indices) asl_map.append((st, asl)) # Create a consensus of all ligands, specifying that at least three # structures must have a ligand atom within 2A from one another. consensus = protein.Consensus(asl_map, 3, dist_cutoff=2) # To get the atom objects consensus_atoms = consensus.atoms # To get the molecule objects molecules = consensus.molecules
|
|||
|
|||
|
|||
|
|||
list of lists |
|
||
OrderedDict of atom objects where the keys are the template atoms and their values are the consensus atoms from the query. |
|
||
OrderedDict of ints where the keys are the template atom indices and their values are the consensus atom indices from the query. |
|
||
list of unique consensus residue objects for each structure in
self.asl_map . (Order is maintained)
|
|
||
list of unique consensus residue indices for each structure in
self.asl_map . (Order is maintained)
|
|
||
list of unique consensus molecule objects for each structure in
self.asl_map . (Order is maintained)
|
|
||
list of unique consensus molecule indices for each structure in
self.asl_map . (Order is maintained)
|
|
|
|||
ASL_WATER = 'water and NOT (atom.ele H)'
|
|||
ASL_IONS = 'ions'
|
|||
ASL_LIGAND = '(((m.atoms 5-130)) and not ((ions) or '
|
|
|||
_consensus_atoms Atom indices mapping template and query consensus |
|
Attention: The list of consensus atoms (or molecules, residues, indices, etc. depending on the property called, i.e. self.molecules) will all be unique and will depend on the ASL passed in. If the ASL is not specific enough you may end up with poor results. |
Private method called in __init__. Finds the consensus atom indices between the template and query. |
Private method to get an atom property.
|
Get the map of atom objects of consensus atoms.
|
Get the map of atom indices of consensus atoms.
|
Get the list of residue objects of consensus
atoms for each structure in
|
Get the map of residue indices of consensus atoms.
|
Get the map of molecule objects of consensus atoms.
|
Get the map of molecule indices of consensus atoms.
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu Aug 6 04:50:25 2015 | http://epydoc.sourceforge.net |