public class MultipleAlignmentEnsembleImpl extends AbstractScoresCache implements MultipleAlignmentEnsemble, java.io.Serializable, java.lang.Cloneable
MultipleAlignmentEnsemble.| Constructor and Description |
|---|
MultipleAlignmentEnsembleImpl()
Default Constructor.
|
MultipleAlignmentEnsembleImpl(AFPChain afpChain,
Atom[] ca1,
Atom[] ca2)
Constructor from an AFPChain instance.
|
MultipleAlignmentEnsembleImpl(java.util.List<java.lang.String> structureNames)
Constructor using structure identifiers.
|
MultipleAlignmentEnsembleImpl(MultipleAlignmentEnsembleImpl e)
Copy constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addMultipleAlignment(MultipleAlignment alignment)
Add a new MultipleAlignment to the end of the ensemble and set its
parent ensemble to this.
|
void |
clear()
Resets all scores
|
MultipleAlignmentEnsembleImpl |
clone()
Creates and returns an identical copy of this ensemble, including a deep
clone of all constituent alignments.
|
java.lang.String |
getAlgorithmName()
Returns the name of the multiple structure alignment algorithm that created the MultipleAlignment objects.
|
int |
getAlignmentNum()
Return the number of alternative alignments stored in the Ensemble.
|
java.util.List<Atom[]> |
getAtomArrays()
Get an array of representative atoms for each structure (CA atoms for proteins).
|
java.lang.Long |
getCalculationTime()
public
Returns the running time of the structure alignment calculation, in milliseconds.
|
java.util.List<Matrix> |
getDistanceMatrix()
Returns the List containing the interatomic distance Matrix of each structure.
|
java.lang.Long |
getIoTime()
Returns the io time for this object, in milliseconds.
|
java.util.List<MultipleAlignment> |
getMultipleAlignments()
Returns the List of MultipleAlignments in the MultipleAlignmentEnsemble object.
|
java.util.List<java.lang.String> |
getStructureNames()
Returns a List containing the names of the structures aligned (i.e.: PDB code, SCOP domain, etc.).
|
java.lang.String |
getVersion()
Returns the version of the algorithm used to generate the MultipleAlignment objects.
|
void |
setAlgorithmName(java.lang.String algorithmName)
Set the name of the multiple structure alignment algorithm that created the MultipleAlignment objects.
|
void |
setAtomArrays(java.util.List<Atom[]> atomArrays)
Sets the List of Atom arrays.
|
void |
setCalculationTime(java.lang.Long millis)
Set the time needed to calculate this alignment
|
void |
setIoTime(java.lang.Long millis)
Set the IO time to load this object
|
void |
setMultipleAlignments(java.util.List<MultipleAlignment> multipleAlignments)
Set the List of MultipleAlignments in the MultipleAlignmentEnsemble object.
|
void |
setStructureNames(java.util.List<java.lang.String> structureNames)
Set the List containing the names of the structures aligned (i.e.: PDB code, SCOP domain, etc.).
|
void |
setVersion(java.lang.String version)
Sets the version of the algorithm used to generate the MultipleAlignment objects.
|
int |
size()
Returns the number of aligned structures in the MultipleAlignments.
|
void |
updateAtomArrays()
Force the atom arrays to regenerate based on
getStructureNames() |
void |
updateDistanceMatrix()
Force recalculation of the distance matrices
|
clone, getScore, getScores, putScoreequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetScore, getScores, putScorepublic MultipleAlignmentEnsembleImpl()
public MultipleAlignmentEnsembleImpl(java.util.List<java.lang.String> structureNames)
structureNames - List of Structure names, that can be parsed by AtomCache.public MultipleAlignmentEnsembleImpl(MultipleAlignmentEnsembleImpl e)
e - MultipleAlignmentEnsembleImpl to copy.public MultipleAlignmentEnsembleImpl clone()
MultipleAlignmentEnsembleclone in interface MultipleAlignmentEnsembleclone in class java.lang.Objectpublic java.lang.String getAlgorithmName()
MultipleAlignmentEnsemblegetAlgorithmName in interface MultipleAlignmentEnsembleMultipleAlignmentEnsemble.setAlgorithmName(String)public void setAlgorithmName(java.lang.String algorithmName)
MultipleAlignmentEnsemblesetAlgorithmName in interface MultipleAlignmentEnsemblealgorithmName - name of the algorithm.MultipleAlignmentEnsemble.getAlgorithmName()public java.lang.String getVersion()
MultipleAlignmentEnsemblegetVersion in interface MultipleAlignmentEnsembleMultipleAlignmentEnsemble.setVersion(String)public void setVersion(java.lang.String version)
MultipleAlignmentEnsemblesetVersion in interface MultipleAlignmentEnsembleversion - the version of the algorithm.MultipleAlignmentEnsemble.getVersion()public java.lang.Long getIoTime()
MultipleAlignmentEnsemblegetIoTime in interface MultipleAlignmentEnsemblepublic void setIoTime(java.lang.Long millis)
MultipleAlignmentEnsemblesetIoTime in interface MultipleAlignmentEnsemblepublic java.lang.Long getCalculationTime()
MultipleAlignmentEnsemblegetCalculationTime in interface MultipleAlignmentEnsembleMultipleAlignmentEnsemble.getIoTime()Lpublic void setCalculationTime(java.lang.Long millis)
MultipleAlignmentEnsemblesetCalculationTime in interface MultipleAlignmentEnsemblepublic java.util.List<java.lang.String> getStructureNames()
MultipleAlignmentEnsembleThe names are structure identifiers of the structures. They are in the same order as in the alignment Blocks (same index number for same structure).
getStructureNames in interface MultipleAlignmentEnsembleMultipleAlignmentEnsemble.setStructureNames(List),
MultipleAlignmentEnsemble.getAtomArrays()public void setStructureNames(java.util.List<java.lang.String> structureNames)
MultipleAlignmentEnsembleThe names are structure identifiers of the structures.
setStructureNames in interface MultipleAlignmentEnsemblestructureNames - names of the structures, structure identifiersMultipleAlignmentEnsemble.getStructureNames(),
MultipleAlignmentEnsemble.setAtomArrays(List)public java.util.List<Atom[]> getAtomArrays()
MultipleAlignmentEnsembleAtoms should be unrotated. Thus, to obtain a superimposed set of structures, each atom array should be cloned and then rotated according to the transformation matrix.
If atoms have not previously been set using MultipleAlignmentEnsemble.setAtomArrays(List),
attempts to load representative atoms based on MultipleAlignmentEnsemble.getStructureNames().
If it fails to load the Atoms it gives a NullPointerException before returning null.
getAtomArrays in interface MultipleAlignmentEnsembleMultipleAlignmentEnsemble.setAtomArrays(List)public void setAtomArrays(java.util.List<Atom[]> atomArrays)
MultipleAlignmentEnsembleMultipleAlignmentEnsemble.setStructureNames(List)
Setting the atom arrays to null will cause them to be automatically
regenerated based on MultipleAlignmentEnsemble.getStructureNames() during the next call to
MultipleAlignmentEnsemble.getAtomArrays()
setAtomArrays in interface MultipleAlignmentEnsembleatomArrays - the List of representative (C-alpha) atom arraysMultipleAlignmentEnsemble.getAtomArrays(),
MultipleAlignmentEnsemble.setStructureNames(List)public void updateAtomArrays()
throws java.io.IOException,
StructureException
getStructureNames()java.io.IOExceptionStructureExceptionpublic int getAlignmentNum()
MultipleAlignmentEnsemblegetAlignmentNum in interface MultipleAlignmentEnsembleMultipleAlignmentEnsemble.size()public java.util.List<Matrix> getDistanceMatrix()
MultipleAlignmentEnsemblegetDistanceMatrix in interface MultipleAlignmentEnsemble#updateDistanceMatrix()public void updateDistanceMatrix()
public java.util.List<MultipleAlignment> getMultipleAlignments()
MultipleAlignmentEnsemblegetMultipleAlignments in interface MultipleAlignmentEnsemble#setMultipleAlignments(),
#getOptimalMultipleAlignment()public void setMultipleAlignments(java.util.List<MultipleAlignment> multipleAlignments)
MultipleAlignmentEnsemblesetMultipleAlignments in interface MultipleAlignmentEnsembleMultipleAlignmentEnsemble.getMultipleAlignments(),
#getOptimalMultipleAlignment()public void addMultipleAlignment(MultipleAlignment alignment)
MultipleAlignmentEnsembleaddMultipleAlignment in interface MultipleAlignmentEnsemblepublic int size()
MultipleAlignmentEnsemblesize in interface MultipleAlignmentEnsembleMultipleAlignmentEnsemble.getStructureNames(),
MultipleAlignmentEnsemble.getAtomArrays()public void clear()
AbstractScoresCacheclear in interface MultipleAlignmentEnsembleclear in class AbstractScoresCache