|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectBioinfoFieldExtractor.ConsensusSeq
public class ConsensusSeq
This is the generic class for storing a consensus sequence. A sequence is stored as a double array list where an index of a row is the position of character in a sequence. The columns of a row are all the possible characters that are met at that position retrieved from multiple-aligned sequences. If only one column corresponds to a row, meaning that the symbol is unique and identical at that position across all generated sequences. If more than one column assigned to a row, it then contains all possible characters met at that position across the generated sequences.
Constructor Summary | |
---|---|
ConsensusSeq()
|
Method Summary | |
---|---|
boolean |
generateSeq(java.util.ArrayList<java.util.ArrayList<java.lang.Integer>> seqs)
Populates the consensus sequence from the multiple aligned sequences. |
java.util.ArrayList<java.util.ArrayList<java.lang.Integer>> |
getConsensusSeq()
|
java.lang.String |
getConsSeq()
Returns a consensus sequence with ? inserted whenever there is a mutation at a certain position in the consensus sequence |
java.util.ArrayList<java.lang.Integer> |
getConsSeqAsList()
|
void |
setConsensusSeq(java.util.ArrayList<java.util.ArrayList<java.lang.Integer>> seq)
|
boolean |
verifyLengths(java.util.ArrayList<java.util.ArrayList<java.lang.Integer>> seqs)
Verifies that all sequences are the same length |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConsensusSeq()
Method Detail |
---|
public boolean generateSeq(java.util.ArrayList<java.util.ArrayList<java.lang.Integer>> seqs)
seqs
- An array list of aligned sequencespublic boolean verifyLengths(java.util.ArrayList<java.util.ArrayList<java.lang.Integer>> seqs)
public java.lang.String getConsSeq()
public java.util.ArrayList<java.lang.Integer> getConsSeqAsList()
public java.util.ArrayList<java.util.ArrayList<java.lang.Integer>> getConsensusSeq()
public void setConsensusSeq(java.util.ArrayList<java.util.ArrayList<java.lang.Integer>> seq)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |