|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jebl.evolution.alignments.BasicAlignment
public class BasicAlignment
A basic implementation of the Alignment interface.
Constructor Summary | |
---|---|
BasicAlignment()
Constructs a basic alignment with no sequences. |
|
BasicAlignment(Collection<? extends Sequence> sequences)
Constructs a basic alignment from a collection of sequences. |
|
BasicAlignment(Sequence[] sequences)
Constructs a basic alignment from an array of sequences. |
Method Summary | |
---|---|
void |
addSequence(Sequence sequence)
Adds a sequence to this alignment |
int |
getPatternCount()
|
int |
getPatternLength()
|
List<Pattern> |
getPatterns()
Get a list of all the patterns |
Sequence |
getSequence(Taxon taxon)
|
List<Sequence> |
getSequenceList()
|
Set<Sequence> |
getSequences()
|
SequenceType |
getSequenceType()
|
int |
getSiteCount()
|
List<Taxon> |
getTaxa()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BasicAlignment()
public BasicAlignment(Collection<? extends Sequence> sequences)
sequences
- public BasicAlignment(Sequence[] sequences)
sequences
- Method Detail |
---|
public Set<Sequence> getSequences()
getSequences
in interface Sequences
public List<Sequence> getSequenceList()
getSequenceList
in interface Alignment
public SequenceType getSequenceType()
getSequenceType
in interface Patterns
public Sequence getSequence(Taxon taxon)
getSequence
in interface Sequences
public int getSiteCount()
getSiteCount
in interface Alignment
public int getPatternCount()
getPatternCount
in interface Patterns
public int getPatternLength()
getPatternLength
in interface Patterns
public List<Pattern> getPatterns()
Patterns
getPatterns
in interface Patterns
public List<Taxon> getTaxa()
getTaxa
in interface Patterns
public void addSequence(Sequence sequence)
sequence
- the new sequence.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |