public class MultipleAlignmentEnsembleImpl extends AbstractScoresCache implements MultipleAlignmentEnsemble, Serializable, Cloneable
MultipleAlignmentEnsemble.| Constructor and Description |
|---|
MultipleAlignmentEnsembleImpl()
Default Constructor.
|
MultipleAlignmentEnsembleImpl(AFPChain afp,
Atom[] ca1,
Atom[] ca2,
boolean flexible)
Constructor from an AFPChain instance.
|
MultipleAlignmentEnsembleImpl(List<StructureIdentifier> structureIdentifiers)
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()
Clear the cached scores.
|
MultipleAlignmentEnsembleImpl |
clone()
Creates and returns an identical copy of this ensemble, including a deep
clone of all constituent alignments.
|
String |
getAlgorithmName()
Returns the name of the multiple structure alignment algorithm that
created the MultipleAlignment objects.
|
List<Atom[]> |
getAtomArrays()
Get an array of representative atoms for each structure (CA atoms for
proteins).
|
Long |
getCalculationTime()
Returns the running time of the structure alignment calculation, in
milliseconds.
|
List<Matrix> |
getDistanceMatrix()
Returns the List containing the interatomic distance Matrix of each
structure.
|
Long |
getIoTime()
Returns the io time for this object, in milliseconds.
|
MultipleAlignment |
getMultipleAlignment(int index)
Returns the MultipleAlignments at the specified index
in the ensemble.
|
List<MultipleAlignment> |
getMultipleAlignments()
Returns the List of MultipleAlignments in the ensemble.
|
List<StructureIdentifier> |
getStructureIdentifiers()
Returns a List containing the names of the structures aligned
(i.e.: PDB code, SCOP domain, etc.).
|
String |
getVersion()
Returns the version of the algorithm used to generate the
MultipleAlignment objects.
|
void |
setAlgorithmName(String algorithmName)
Set the name of the multiple structure alignment algorithm that created
the MultipleAlignment objects.
|
void |
setAtomArrays(List<Atom[]> atomArrays)
Sets the List of Atom arrays.
|
void |
setCalculationTime(Long millis)
Set the running time spent to calculate this alignment.
|
void |
setIoTime(Long millis)
Set the IO time to load this object
|
void |
setMultipleAlignments(List<MultipleAlignment> alignments)
Set the List of MultipleAlignments in the ensemble.
|
void |
setStructureIdentifiers(List<StructureIdentifier> structureNames)
Set the List containing the names of the structures aligned
(i.e.: PDB code, SCOP domain, etc.).
|
void |
setVersion(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
getStructureIdentifiers(). |
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(List<StructureIdentifier> structureIdentifiers)
structureIdentifiers - List of Structure names, that can be parsed by
AtomCache.public MultipleAlignmentEnsembleImpl(MultipleAlignmentEnsembleImpl e)
e - MultipleAlignmentEnsemble to copy.public MultipleAlignmentEnsembleImpl(AFPChain afp, Atom[] ca1, Atom[] ca2, boolean flexible)
afp - pairwise alignmentca1 - Atoms of the first strcutureca2 - Atoms of the second structureflexible - true if the alignment is flexible (use BlockSets)public MultipleAlignmentEnsembleImpl clone()
MultipleAlignmentEnsembleclone in interface MultipleAlignmentEnsembleclone in class Objectpublic String getAlgorithmName()
MultipleAlignmentEnsemblegetAlgorithmName in interface MultipleAlignmentEnsembleMultipleAlignmentEnsemble.setAlgorithmName(String)public void setAlgorithmName(String algorithmName)
MultipleAlignmentEnsemblesetAlgorithmName in interface MultipleAlignmentEnsemblealgorithmName - name of the algorithm.MultipleAlignmentEnsemble.getAlgorithmName()public String getVersion()
MultipleAlignmentEnsemblegetVersion in interface MultipleAlignmentEnsembleMultipleAlignmentEnsemble.setVersion(String)public void setVersion(String version)
MultipleAlignmentEnsemblesetVersion in interface MultipleAlignmentEnsembleversion - the version of the algorithm.MultipleAlignmentEnsemble.getVersion()public Long getIoTime()
MultipleAlignmentEnsemblegetIoTime in interface MultipleAlignmentEnsemblepublic void setIoTime(Long millis)
MultipleAlignmentEnsemblesetIoTime in interface MultipleAlignmentEnsemblepublic Long getCalculationTime()
MultipleAlignmentEnsemblegetCalculationTime in interface MultipleAlignmentEnsembleMultipleAlignmentEnsemble.getIoTime()public void setCalculationTime(Long millis)
MultipleAlignmentEnsemblesetCalculationTime in interface MultipleAlignmentEnsemblepublic List<StructureIdentifier> getStructureIdentifiers()
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).
getStructureIdentifiers in interface MultipleAlignmentEnsembleMultipleAlignmentEnsemble.setStructureIdentifiers(List),
MultipleAlignmentEnsemble.getAtomArrays()public void setStructureIdentifiers(List<StructureIdentifier> structureNames)
MultipleAlignmentEnsembleThe names are structure identifiers of the structures.
setStructureIdentifiers in interface MultipleAlignmentEnsemblestructureNames - names of the structures, structure identifiersMultipleAlignmentEnsemble.getStructureIdentifiers(),
MultipleAlignmentEnsemble.setAtomArrays(List)public 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.getStructureIdentifiers().
If it fails to load the Atoms it gives a NullPointerException before
returning null.
getAtomArrays in interface MultipleAlignmentEnsembleMultipleAlignmentEnsemble.setAtomArrays(List)public void setAtomArrays(List<Atom[]> atomArrays)
MultipleAlignmentEnsembleMultipleAlignmentEnsemble.setStructureIdentifiers(List).
Setting the atom arrays to null will cause them to be automatically
regenerated based on MultipleAlignmentEnsemble.getStructureIdentifiers() during the next call
to MultipleAlignmentEnsemble.getAtomArrays().
setAtomArrays in interface MultipleAlignmentEnsembleatomArrays - the List of representative (C-alpha) atom arraysMultipleAlignmentEnsemble.getAtomArrays(),
MultipleAlignmentEnsemble.setStructureIdentifiers(List)public void updateAtomArrays() throws IOException, StructureException
getStructureIdentifiers().IOExceptionStructureExceptionpublic List<Matrix> getDistanceMatrix()
MultipleAlignmentEnsemblegetDistanceMatrix in interface MultipleAlignmentEnsemble#updateDistanceMatrix()public void updateDistanceMatrix()
public List<MultipleAlignment> getMultipleAlignments()
MultipleAlignmentEnsemblegetMultipleAlignments in interface MultipleAlignmentEnsemble#setMultipleAlignments()public MultipleAlignment getMultipleAlignment(int index)
MultipleAlignmentEnsemblegetMultipleAlignment in interface MultipleAlignmentEnsemble#setMultipleAlignments()public void setMultipleAlignments(List<MultipleAlignment> alignments)
MultipleAlignmentEnsemblesetMultipleAlignments in interface MultipleAlignmentEnsemblealignments - List of MultipleAlignments that are part of the
ensemble.MultipleAlignmentEnsemble.addMultipleAlignment(MultipleAlignment)public void addMultipleAlignment(MultipleAlignment alignment)
MultipleAlignmentEnsembleaddMultipleAlignment in interface MultipleAlignmentEnsemblepublic int size()
MultipleAlignmentEnsemblesize in interface MultipleAlignmentEnsembleMultipleAlignmentEnsemble.getStructureIdentifiers(),
MultipleAlignmentEnsemble.getAtomArrays()public void clear()
AbstractScoresCacheclear in interface MultipleAlignmentEnsembleclear in class AbstractScoresCacheCopyright © 2000–2019 BioJava. All rights reserved.