Interface BlockSet
- All Superinterfaces:
ScoresCache
- All Known Implementing Classes:
BlockSetImpl
Block
s and
a transformation matrix for every structure.
It allows the description of non-topological and circularly permutated
flexible parts, thus being as general as possible, thanks to the multiple
Block
format.
Every BlockSet has a unique transformation 4D matrix for every structure, which describes the 3D superimposition of the structures in this particular part of the alignment.
A collection of BlockSets, in a MultipleAlignment
, allows the
description of alignments with several flexible parts.
Every BlockSet object is part of a MultipleAlignment
instance,
its parent.
- Since:
- 4.1.0
- Author:
- Aleix Lafita, Spencer Bliven
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Clear scores and other properties which depend on the specific alignment.clone()
Creates and returns an identical copy of this blockset, including a deep copy of all constituentBlock
s.Returns the number of non null positions (residues) of each structure in the alignment Block Set.Returns the List of alignment Blocks of the BlockSet.int
Returns the number of aligned residues (columns) without gaps in the alignment: the sum of all Block core lengths.Returns the parent MultipleAlignment of the BlockSet.List<javax.vecmath.Matrix4d>
Returns a transformation matrix for each structure giving the 3D superimposition information of the multiple structure alignment.int
length()
Returns the total number of aligned residues (columns) in the alignment: the sum of all Block lengths.void
Set the List of alignment Blocks of the BlockSet.void
Set the back-reference to its parent MultipleAlignment.void
setTransformations
(List<javax.vecmath.Matrix4d> transformations) Set a new superposition for the structures.int
size()
Returns the number of aligned structures in the BlockSet.Methods inherited from interface org.biojava.nbio.structure.align.multiple.ScoresCache
getScore, getScores, putScore
-
Method Details
-
clone
BlockSet clone()Creates and returns an identical copy of this blockset, including a deep copy of all constituentBlock
s.- Returns:
- BlockSet identical copy of this object.
-
getMultipleAlignment
MultipleAlignment getMultipleAlignment()Returns the parent MultipleAlignment of the BlockSet. Returns null if there is no referenced object.- Returns:
- MultipleAlignment the parent MultipleAlignment of the BlockSet, or null.
- See Also:
-
setMultipleAlignment
Set the back-reference to its parent MultipleAlignment.Neither removes this BlockSet from its previous alignment, if any, nor adds it to the new parent. Calling code should assure that links to and from the ensemble are consistent and free of memory leaks.
- Parameters:
parent
- the parent MultipleAlignment.- See Also:
-
getBlocks
Returns the List of alignment Blocks of the BlockSet. It initializes a new List of Blocks if it is null.- Returns:
- List of alignment Blocks.
- See Also:
-
setBlocks
Set the List of alignment Blocks of the BlockSet.Also calls
Block.setBlockSet(BlockSet)
for each argument- Parameters:
blocks
- List of alignment Blocks.- See Also:
-
getTransformations
List<javax.vecmath.Matrix4d> getTransformations()Returns a transformation matrix for each structure giving the 3D superimposition information of the multiple structure alignment.- Returns:
- the 3D superimposition information of the alignment
-
setTransformations
Set a new superposition for the structures. This may trigger other properties to update which depend on the superposition.- Parameters:
matrices
-
-
length
int length()Returns the total number of aligned residues (columns) in the alignment: the sum of all Block lengths.- Returns:
- int the total number of aligned residues.
- See Also:
-
getCoreLength
int getCoreLength()Returns the number of aligned residues (columns) without gaps in the alignment: the sum of all Block core lengths. -
getAlignResCounts
Returns the number of non null positions (residues) of each structure in the alignment Block Set. The values can be used to compute the coverages.- Returns:
- List of residue counts for each structure
-
size
int size()Returns the number of aligned structures in the BlockSet.- Returns:
- int number of aligned structures
- See Also:
-
clear
void clear()Clear scores and other properties which depend on the specific alignment. This frees memory and ensures consistency of the cached variables.Recursively clears the memeber Blocks.
-