|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jgromacs.data.Alignment
public class Alignment
Objects of this class represent a sequence alignment
Constructor Summary | |
---|---|
Alignment()
Constructs a new Alignment object |
Method Summary | |
---|---|
void |
addSequence(Sequence seq)
Adds a new sequence to the alignment |
java.lang.Object |
clone()
Returns an identical Alignment object |
boolean |
equals(java.lang.Object other)
Returns true if the two alignments are identical |
Alignment |
getCollapsedAlignment()
Returns the collapsed alignment in which only the match columns are included (i.e. |
Sequence |
getConsensusSequence()
Returns the (majority) consensus sequence of the alignment |
IndexSetList |
getMatchPositionIndexSets()
Returns the list of match position index sets (i.e. |
IndexSet |
getMatchPositionIndices(int i)
Returns the set of position indices in sequence #i that are included in the match columns of alignment |
java.util.ArrayList<java.lang.Integer> |
getMatchPositionIndicesAsArrayList(int i)
Returns the list of match position indices in sequence #i as an ArrayList object |
int |
getMaxSequenceLength()
Returns the length of the longest sequence in the alignment |
int |
getMinSequenceLength()
Returns the length of the shortest sequence in the alignment |
ResidueType |
getMostFrequentResidueType(int i)
Returns the most frequent residue type in column #i of the alignment |
int |
getNumberOfSequences()
Returns the number of sequences in the alignment |
Sequence |
getSequence(int i)
Returns sequence #i of the alignment |
java.util.ArrayList<Sequence> |
getSequencesAsArrayList()
Returns sequences of the alignment as an ArrayList object |
int |
hashCode()
Returns hash code |
boolean |
isMatchColumn(int i)
Returns true if column #i is a match column (i.e. |
void |
removeColumn(int i)
Removes column #i from the alignment |
void |
removeSequence(int i)
Removes sequence #i from the alignment |
void |
removeSequence(Sequence seq)
Removes the given sequence from the alignment |
void |
setSequence(int i,
Sequence seq)
Replaces sequence #i of the alignment with a new sequence |
java.lang.String |
toString()
Returns the String representation of alignment |
java.lang.String |
toStringInfo()
Returns summary information about the alignment |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Alignment()
Method Detail |
---|
public Sequence getSequence(int i)
public java.util.ArrayList<Sequence> getSequencesAsArrayList()
public int getNumberOfSequences()
public int getMaxSequenceLength()
public int getMinSequenceLength()
public void addSequence(Sequence seq)
seq
- new sequencepublic void setSequence(int i, Sequence seq)
seq
- new sequencepublic void removeSequence(int i)
public void removeSequence(Sequence seq)
seq
- the sequence to be removedpublic void removeColumn(int i)
public boolean isMatchColumn(int i)
public Alignment getCollapsedAlignment()
public IndexSet getMatchPositionIndices(int i)
public IndexSetList getMatchPositionIndexSets()
public java.util.ArrayList<java.lang.Integer> getMatchPositionIndicesAsArrayList(int i)
public ResidueType getMostFrequentResidueType(int i)
public Sequence getConsensusSequence()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringInfo()
public java.lang.Object clone()
clone
in class java.lang.Object
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
other
- the other alignmentpublic int hashCode()
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |