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, putScore
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getScore, getScores, putScore
public 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()
MultipleAlignmentEnsemble
clone
in interface MultipleAlignmentEnsemble
clone
in class Object
public String getAlgorithmName()
MultipleAlignmentEnsemble
getAlgorithmName
in interface MultipleAlignmentEnsemble
MultipleAlignmentEnsemble.setAlgorithmName(String)
public void setAlgorithmName(String algorithmName)
MultipleAlignmentEnsemble
setAlgorithmName
in interface MultipleAlignmentEnsemble
algorithmName
- name of the algorithm.MultipleAlignmentEnsemble.getAlgorithmName()
public String getVersion()
MultipleAlignmentEnsemble
getVersion
in interface MultipleAlignmentEnsemble
MultipleAlignmentEnsemble.setVersion(String)
public void setVersion(String version)
MultipleAlignmentEnsemble
setVersion
in interface MultipleAlignmentEnsemble
version
- the version of the algorithm.MultipleAlignmentEnsemble.getVersion()
public Long getIoTime()
MultipleAlignmentEnsemble
getIoTime
in interface MultipleAlignmentEnsemble
public void setIoTime(Long millis)
MultipleAlignmentEnsemble
setIoTime
in interface MultipleAlignmentEnsemble
public Long getCalculationTime()
MultipleAlignmentEnsemble
getCalculationTime
in interface MultipleAlignmentEnsemble
MultipleAlignmentEnsemble.getIoTime()
public void setCalculationTime(Long millis)
MultipleAlignmentEnsemble
setCalculationTime
in interface MultipleAlignmentEnsemble
public List<StructureIdentifier> getStructureIdentifiers()
MultipleAlignmentEnsemble
The 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 MultipleAlignmentEnsemble
MultipleAlignmentEnsemble.setStructureIdentifiers(List)
,
MultipleAlignmentEnsemble.getAtomArrays()
public void setStructureIdentifiers(List<StructureIdentifier> structureNames)
MultipleAlignmentEnsemble
The names are structure identifiers of the structures.
setStructureIdentifiers
in interface MultipleAlignmentEnsemble
structureNames
- names of the structures, structure identifiersMultipleAlignmentEnsemble.getStructureIdentifiers()
,
MultipleAlignmentEnsemble.setAtomArrays(List)
public List<Atom[]> getAtomArrays()
MultipleAlignmentEnsemble
Atoms 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 MultipleAlignmentEnsemble
MultipleAlignmentEnsemble.setAtomArrays(List)
public void setAtomArrays(List<Atom[]> atomArrays)
MultipleAlignmentEnsemble
MultipleAlignmentEnsemble.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 MultipleAlignmentEnsemble
atomArrays
- the List of representative (C-alpha) atom arraysMultipleAlignmentEnsemble.getAtomArrays()
,
MultipleAlignmentEnsemble.setStructureIdentifiers(List)
public void updateAtomArrays() throws IOException, StructureException
getStructureIdentifiers()
.IOException
StructureException
public List<Matrix> getDistanceMatrix()
MultipleAlignmentEnsemble
getDistanceMatrix
in interface MultipleAlignmentEnsemble
#updateDistanceMatrix()
public void updateDistanceMatrix()
public List<MultipleAlignment> getMultipleAlignments()
MultipleAlignmentEnsemble
getMultipleAlignments
in interface MultipleAlignmentEnsemble
#setMultipleAlignments()
public MultipleAlignment getMultipleAlignment(int index)
MultipleAlignmentEnsemble
getMultipleAlignment
in interface MultipleAlignmentEnsemble
#setMultipleAlignments()
public void setMultipleAlignments(List<MultipleAlignment> alignments)
MultipleAlignmentEnsemble
setMultipleAlignments
in interface MultipleAlignmentEnsemble
alignments
- List of MultipleAlignments that are part of the
ensemble.MultipleAlignmentEnsemble.addMultipleAlignment(MultipleAlignment)
public void addMultipleAlignment(MultipleAlignment alignment)
MultipleAlignmentEnsemble
addMultipleAlignment
in interface MultipleAlignmentEnsemble
public int size()
MultipleAlignmentEnsemble
size
in interface MultipleAlignmentEnsemble
MultipleAlignmentEnsemble.getStructureIdentifiers()
,
MultipleAlignmentEnsemble.getAtomArrays()
public void clear()
AbstractScoresCache
clear
in interface MultipleAlignmentEnsemble
clear
in class AbstractScoresCache
Copyright © 2000–2018 BioJava. All rights reserved.