Home | Trees | Indices | Help |
|
---|
|
>>> ## create with reference PDBModel >>> reducer = ReduceCoordinates( m_ref ) >>> ## creates reduced PDBModel from m_ref >>> m_red = reducer.reduceToModel()OR:
>>> m_red_1 = reducer.reduceToModel( m1.getXyz() ) ## reduce many models >>> m_red_2 = reducer.reduceToModel( m2.getXyz() ) ## with identical atomsOR:
>>> ## reduce a complete Trajectory >>> reducer = ReduceCoordinates( traj.ref ) >>> red_ref= reducer.reduceToModel() >>> frames = reducer.reduceXyz( traj.frames ) >>> traj_red = Trajectory( ref=red_ref ) >>> traj_red.frames = frames
|
|||
|
__init__(self,
model,
maxPerCenter=4) Prepare reduction of coordinates from a given model. |
||
|
__addMassProfile(self,
model) Add a mass profile to the model. |
||
[[int],[int]..]
|
group(self,
a_indices,
maxPerCenter) Group a bunch of integers (atom indices in PDBModel) so that each group has at most maxPerCenter items. |
||
dict
|
nextAtom(self,
resName,
resNumber,
name,
chainId,
segid) Create an atom dictionary. |
||
|
makeMap(self,
maxPerCenter=4) Calculate mapping between complete and reduced atom list. |
||
array
|
reduceXyz(self,
xyz,
axis=0) Reduce the number of atoms in the given coordinate set. |
||
PDBModel
|
reduceToModel(self,
xyz=None,
reduce_profiles=1) Create a reduced PDBModel from coordinates. |
||
|
reduceAtomProfiles(self,
from_model,
to_model) reduce all atom profiles according to the calculated map by calculating the average over the grouped atoms. |
|
|||
|
aaAtoms = {'GLY': ['N', 'CA', 'C', 'O', 'OXT'], 'ALA': ['N', '...
|
|
Prepare reduction of coordinates from a given model.
|
Add a mass profile to the model.
|
Group a bunch of integers (atom indices in PDBModel) so that each group has at most maxPerCenter items.
|
Create an atom dictionary.
|
Calculate mapping between complete and reduced atom list. Creates a (list of lists of int, list of atom dictionaries) containing groups of atom indices into original model, new center atoms
|
Reduce the number of atoms in the given coordinate set. The set must have the same length and order as the reference model. It may have an additional (time) dimension as first axis.
|
Create a reduced PDBModel from coordinates. Atom profiles the source PDBModel are reduced by averaging over the grouped atoms.
|
reduce all atom profiles according to the calculated map by calculating the average over the grouped atoms.
|
|
aaAtoms
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0alpha3 on Fri Dec 22 20:11:46 2006 | http://epydoc.sourceforge.net |