public class SubunitCluster extends Object
QuatSymmetrySubunits,
the set of equivalent residues (EQR) between Subunit and a
Subunit representative. It also stores the method used for
clustering.
This class allows the comparison and merging of SubunitClusters.
| Constructor and Description |
|---|
SubunitCluster(Subunit subunit)
A SubunitCluster is always initialized with a single Subunit.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
divideInternally(double coverageThreshold,
double rmsdThreshold,
int minSequenceLength)
Analyze the internal symmetry of the SubunitCluster and divide its
Subunit into the internal repeats (domains) if they are
internally symmetric. |
Atom[] |
getAlignedAtomsSubunit(int index) |
List<Atom[]> |
getAlignedAtomsSubunits() |
SubunitClustererMethod |
getClustererMethod() |
MultipleAlignment |
getMultipleAlignment()
The multiple alignment is calculated from the equivalent residues in the
SubunitCluster.
|
List<Subunit> |
getSubunits()
Subunits contained in the SubunitCluster.
|
boolean |
isIdenticalTo(SubunitCluster other)
Tells whether the other SubunitCluster contains exactly the same Subunit.
|
int |
length() |
boolean |
mergeIdentical(SubunitCluster other)
Merges the other SubunitCluster into this one if it contains exactly the
same Subunit.
|
boolean |
mergeSequence(SubunitCluster other,
double minSeqid,
double minCoverage)
Merges the other SubunitCluster into this one if their representatives
sequences are similar (higher sequence identity and coverage than the
thresholds).
|
boolean |
mergeSequence(SubunitCluster other,
double minSeqid,
double minCoverage,
Alignments.PairwiseSequenceAlignerType alignerType,
GapPenalty gapPenalty,
SubstitutionMatrix<AminoAcidCompound> subsMatrix)
Merges the other SubunitCluster into this one if their representatives
sequences are similar (higher sequence identity and coverage than the
thresholds).
|
boolean |
mergeStructure(SubunitCluster other,
double maxRmsd,
double minCoverage)
Merges the other SubunitCluster into this one if their representative
Atoms are structurally similar (lower RMSD and higher coverage than the
thresholds).
|
boolean |
mergeStructure(SubunitCluster other,
double maxRmsd,
double minCoverage,
StructureAlignment aligner)
Merges the other SubunitCluster into this one if their representative
Atoms are structurally similar (lower RMSD and higher coverage than the
thresholds).
|
int |
size() |
String |
toString() |
public SubunitCluster(Subunit subunit)
subunit - initial Subunitpublic List<Subunit> getSubunits()
public boolean isIdenticalTo(SubunitCluster other)
other - SubunitClusterpublic boolean mergeIdentical(SubunitCluster other)
isIdenticalTo(SubunitCluster).other - SubunitClusterpublic boolean mergeSequence(SubunitCluster other, double minSeqid, double minCoverage) throws CompoundNotFoundException
The sequence alignment is performed using Smith Waterman, default linear
SimpleGapPenalty and BLOSUM62 as scoring matrix.
other - SubunitClusterminSeqid - sequence identity threshold. Value in [0,1]. Values lower than
0.7 are not recommended. Use mergeStructure(org.biojava.nbio.structure.cluster.SubunitCluster, double, double) for lower
values.minCoverage - coverage (alignment fraction) threshold. Value in [0,1].CompoundNotFoundExceptionpublic boolean mergeSequence(SubunitCluster other, double minSeqid, double minCoverage, Alignments.PairwiseSequenceAlignerType alignerType, GapPenalty gapPenalty, SubstitutionMatrix<AminoAcidCompound> subsMatrix) throws CompoundNotFoundException
The sequence alignment is performed using Smith Waterman, default linear
SimpleGapPenalty and BLOSUM62 as scoring matrix.
other - SubunitClusterminSeqid - sequence identity threshold. Value in [0,1]. Values lower than
0.7 are not recommended. Use mergeStructure(org.biojava.nbio.structure.cluster.SubunitCluster, double, double) for lower
values.minCoverage - coverage (alignment fraction) threshold. Value in [0,1].alignerType - parameter for the sequence alignment algorithmgapPenalty - parameter for the sequence alignment algorithmsubsMatrix - parameter for the sequence alignment algorithmCompoundNotFoundExceptionpublic boolean mergeStructure(SubunitCluster other, double maxRmsd, double minCoverage) throws StructureException
The structure alignment is performed using FatCatRigid, with default parameters.
other - SubunitClustermaxRmsd - RMSD threshold.minCoverage - coverage (alignment fraction) threshold. Value in [0,1].StructureExceptionpublic boolean mergeStructure(SubunitCluster other, double maxRmsd, double minCoverage, StructureAlignment aligner) throws StructureException
The structure alignment is performed using FatCatRigid, with default parameters.
other - SubunitClustermaxRmsd - RMSD threshold.minCoverage - coverage (alignment fraction) threshold. Value in [0,1].aligner - StructureAlignment algorithmStructureExceptionpublic boolean divideInternally(double coverageThreshold,
double rmsdThreshold,
int minSequenceLength)
throws StructureException
Subunit into the internal repeats (domains) if they are
internally symmetric.coverageThreshold - the minimum coverage of all repeats in the SubunitrmsdThreshold - the maximum allowed RMSD between the repeatsminSequenceLength - the minimum length of the repeating unitsStructureExceptionpublic int size()
public int length()
public SubunitClustererMethod getClustererMethod()
SubunitClustererMethod used for clustering the
Subunitspublic Atom[] getAlignedAtomsSubunit(int index)
index - Subunit index in the Clusterlength() with the aligned Atoms
from the selected Subunit in the Clusterpublic MultipleAlignment getMultipleAlignment() throws StructureException
StructureExceptionCopyright © 2000–2017 BioJava. All rights reserved.