Home | Trees | Indices | Help |
|
---|
|
|
|||
|
__init__(self,
pdbs=None,
refpdb=None,
rmwat=1,
castAll=0,
verbose=1) Collect coordinates into Numpy array. |
||
str
|
version(self) Version of class. |
||
|
__create(self,
pdbs,
refpdb,
rmwat=0,
castAll=0) Initiate and create necessary variables. |
||
PDBModel OR Trajectory
|
__getitem__(self,
i) Get a single frame and facilitete slicing of tajectories. |
||
int
|
__len__(self) Number of frames in the trajectory. |
||
|
__setstate__(self,
state) called for unpickling the object. |
||
|
__defaults(self) backwards compatibility to earlier pickled trajectories |
||
|
__getstate__(self) Called before pickling the object. |
||
PDBModel
|
avgModel(self) Returna a PDBModel with coordinates that are the average of all frames. |
||
array
|
__collectFrames(self,
pdbs,
castAll=0) Read coordinates from list of pdb files. |
||
PDBModel
|
getRef(self) Returns reference PDBModel |
||
PDBModel
|
setRef(self,
refModel) Assign new reference model. |
||
Trajectory
|
concat(self,
*traj) Concatenate this with other trajectories. |
||
Trajectory
|
concatAtoms(self,
*traj) Concatenate 2 trajectories of same (frame) length 'horizontally', i.e. |
||
int
|
lenFrames(self) Returns number of frames in trajectory |
||
int
|
lenAtoms(self) Returns number of atoms in frames |
||
list[1|0]
|
atomMask(self,
what) Get atom mask. |
||
[int]
|
resMap(self,
force=0) A list with residue numbers mapped to each position. |
||
Trajectory
|
takeFrames(self,
indices) Return a copy of the trajectory containing only the specified frames. |
||
Trajectory
|
clone(self) Copy trajectory. |
||
Trajectory
|
compressFrames(self,
mask) Compress trajectory with a frame mask. |
||
|
replaceContent(self,
traj) Replace content of this trajectory by content of given traj. |
||
|
keepFrames(self,
indices) in-place version of takeFrames. |
||
|
removeFrames(self,
indices) Remove given frames from this trajectory object. |
||
Trajectory
|
takeAtoms(self,
indices,
returnClass=None) Take atoms from frames: |
||
Trajectory
|
compressAtoms(self,
aMask,
returnClass=None) Get copy of this trajectory with only atoms marked 1 in aMask. |
||
|
keepAtoms(self,
indices) in-place version of takeAtoms. |
||
array
|
removeAtoms(self,
what) Remove atoms from all frames of trajectory and from reference structure. |
||
Trajectory
|
takeChains(self,
chainLst,
returnClass=None) Extract some chains from complete Trajectory. |
||
|
fit(self,
mask=None,
ref=None,
n_it=1,
prof='rms',
verbose=1,
fit=1,
**profInfos) Superimpose all coordinate frames on reference coordinates. |
||
|
transform(self,
*rt) Apply given transformation to all frames (in place). |
||
|
blockFit2ref(self,
refModel=None,
mask=None,
conv=1e-6) Fit trajectory until convergence onto it's own average and then transform the average of all frames onto the reference. |
||
|
writePdb(self,
index,
fname) Write (possibly transformed) coordinates back to pdb. |
||
|
writePdbs(self,
fname,
frames=None) Write coordinates to an NMR-style MODEL/ENDMDL pdb file. |
||
|
writeCrd(self,
fname,
frames=None) Write frames to Amber crd file (w/o box info). |
||
PDBModel
|
getPDBModel(self,
index) Get PDBModel object for a particular frame of the trajectory. |
||
|
setProfile(self,
name,
prof,
mask=None,
default=None,
asarray=1,
comment=None,
**moreInfo) Add/override profile. |
||
|
profile(self,
name,
default=None) Get the values of a profile: |
||
|
profileInfo(self,
name) GEt information associated with a profile: |
||
|
setProfileInfo(self,
name,
**args) Add/Override infos about a given profile: |
||
[1|0]
|
profile2mask(self,
profName,
cutoff_min=None,
cutoff_max=None) Create a mask from a profile with optional cutoff values. |
||
biggles.FramedPlot
|
plotProfile(self,
*name,
**args) Create a biggles.FramedPlot objetc from a profile. |
||
array
|
pairwiseRmsd(self,
aMask=None,
noFit=0) Calculate rmsd between each 2 coordinate frames. |
||
array
|
getFluct_global(self,
mask=None) Get RMS of each atom from it's average position in trajectory. |
||
[ int ], [ int ]
|
__resWindow(self,
res,
n_neighbores,
rchainMap=None,
left_allowed=None,
right_allowed=None) Get indices of all atoms of a residue and some atoms of its neighboring residues (if they belong to the same chain). |
||
array
|
getFluct_local(self,
mask=None,
border_res=1,
left_atoms=['C'],
right_atoms=['N'],
verbose=1) Get mean displacement of each atom from it's average position after fitting of each residue to the reference backbone coordinates of itself and selected atoms of neighboring residues to the right and left. |
||
array
|
residusMaximus(self,
atomValues,
mask=None) Take list of value per atom, return list where all atoms of any residue are set to the highest value of any atom in that residue. |
||
[float]
|
getGammaFluct(self,
fluctList=None) Set value of all atoms of each residue to fluctuation of its gamma atom ( CG, SG, OG ). |
||
[float]
|
getResFluct(self,
atomFluctList=None) Convert list of atomic fluctuations to list of residue fluctuation. |
||
[-1|0|1]
|
__cmpLists(self,
l1,
l2) Compare to lists by their first, then second, etc item. |
||
-1|0|+1
|
__cmpFileNames(self,
f1,
f2) Compare 2 file names by the numbers contained in them using the regular expression ex_numbers (or as strings, if no numbers are found): |
||
[int]
|
argsortFrames(self) Prepare sorting list by file names. |
||
|
sortFrames(self,
sortList=None) Apply to a trajectory object to sort the frames and names according to the sortList. |
||
|
sortAtoms(self,
f_cmp=None) Sorts atoms WITHIN residues in reference and all frames. |
||
[float]
|
__takePca(self,
indices) extract PCA results for certain frames. |
||
[float]
|
__compressPca(self,
fMask) Compress PCA results using a frame mask. |
||
dict
|
getPca(self,
aMask=None,
fMask=None,
fit=1) Get the results form a principal component analysis. |
||
array, array, array
|
pca(self,
atomMask=None,
frameMask=None,
fit=1) Calculate principal components of trajectory frames. |
||
Trajectory
|
pcMovie(self,
ev,
steps,
factor=1.,
ref=0,
morph=1) Morph between the two extreme values of a single principal component. |
|
|||
|
ex_numbers = re.compile('\D*([0-9]+)\D*')
|
|
Collect coordinates into Numpy array. By default, the atom content of the first PDB is compared to the reference PDB to look for atoms that have to be removed or re-ordered. It is assumed that the other PDB files in the list have an identical atom content/layout and the same re-ordering / removing is applied to all of them. Set castAll to 1, in order to check each PDB seperately.
|
Version of class.
|
Initiate and create necessary variables.
|
Get a single frame and facilitete slicing of tajectories.
|
Number of frames in the trajectory.
|
called for unpickling the object. |
backwards compatibility to earlier pickled trajectories |
Called before pickling the object. |
Returna a PDBModel with coordinates that are the average of all frames.
|
Read coordinates from list of pdb files.
|
|
Assign new reference model.
|
Concatenate this with other trajectories. The ref model of the new Trajectory is a 'semi-deep' copy of this trajectorie's model. (see PDBModel.take() ):
concat( traj [, traj2, traj3, ..] ) -> Trajectory
|
Concatenate 2 trajectories of same (frame) length 'horizontally', i.e. for each frame the coordinates of one are appended to the coordinates of the other. The ref model of the new trajectory is a 'semi-deep' copy of this trajectory's model (see PDBModel.take()
):
concatAtoms( traj1 [traj2, traj3..]) -> Trajectory
|
|
|
Get atom mask.
|
A list with residue numbers mapped to each position. i.e.
[00001111222222222333..]
|
Return a copy of the trajectory containing only the specified frames.
|
Copy trajectory.
|
Compress trajectory with a frame mask.
|
Replace content of this trajectory by content of given traj. No deep-copying, only references are taken.
|
in-place version of takeFrames. keepFrames( indices ) -> None
|
Remove given frames from this trajectory object.
|
Take atoms from frames: takeAtoms( indices, type=None ) -> copy of Trajectory
|
Get copy of this trajectory with only atoms marked 1 in aMask.
|
in-place version of takeAtoms. keepAtoms( indices ) -> None
|
Remove atoms from all frames of trajectory and from reference structure.
|
Extract some chains from complete Trajectory.
|
Superimpose all coordinate frames on reference coordinates. Put rms values in a profile. If n_it > 1, the fraction of atoms considered for the fit is put into a profile called |prof|_considered (i.e. by default 'rms_considered').
|
Apply given transformation to all frames (in place).
|
Fit trajectory until convergence onto it's own average and then transform the average of all frames onto the reference. To be used with parallell trajectories.
|
Write (possibly transformed) coordinates back to pdb.
|
Write coordinates to an NMR-style MODEL/ENDMDL pdb file.
|
Write frames to Amber crd file (w/o box info).
|
Get PDBModel object for a particular frame of the trajectory.
|
Add/override profile.
|
Get the values of a profile: get( name ) -> list of values
|
GEt information associated with a profile: profileInfo( name ) -> dict with infos about profileGuaranteed infos: 'version'->str, 'comment'->str, 'changed'->1|0
|
Add/Override infos about a given profile: e.g. setInfo('relASA', comment='new', params={'bin':'whatif'})
|
Create a mask from a profile with optional cutoff values.
|
Create a biggles.FramedPlot objetc from a profile. Display the plot with biggles.FramedPlot.show(): plotProfile(name1, [name2, ..],[arg1=x, arg2=y])->biggles.FramedPlot
|
Calculate rmsd between each 2 coordinate frames.
|
Get RMS of each atom from it's average position in trajectory. The frames should be superimposed (fit() ) to a reference.
|
Get indices of all atoms of a residue and some atoms of its neighboring residues (if they belong to the same chain).
|
Get mean displacement of each atom from it's average position after fitting of each residue to the reference backbone coordinates of itself and selected atoms of neighboring residues to the right and left.
|
Take list of value per atom, return list where all atoms of any residue are set to the highest value of any atom in that residue. (after applying mask)
|
Set value of all atoms of each residue to fluctuation of its gamma atom ( CG, SG, OG ).
|
Convert list of atomic fluctuations to list of residue fluctuation.
|
Compare to lists by their first, then second, etc item.
|
Compare 2 file names by the numbers contained in them using the regular expression ex_numbers (or as strings, if no numbers are found): f1, f2 - strings, e.g. 'frame_1_188.pdb'
|
Prepare sorting list by file names. Assuming the file names contains some numbers seperated by non-number characters. Sorting is done after Nr1 then Nr2 then..
|
Apply to a trajectory object to sort the frames and names according to the sortList.
|
Sorts atoms WITHIN residues in reference and all frames.
|
extract PCA results for certain frames.
|
Compress PCA results using a frame mask.
|
Get the results form a principal component analysis.
|
Calculate principal components of trajectory frames.
|
Morph between the two extreme values of a single principal component.
|
|
ex_numbers
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0alpha3 on Fri Dec 22 20:11:48 2006 | http://epydoc.sourceforge.net |