compbio.data.sequence
Class Alignment
java.lang.Object
compbio.data.sequence.Alignment
@Immutable
public final class Alignment
- extends Object
Multiple sequence alignment.
Does not give any guarantees on the content of individual FastaSequece
records. It does not guarantee neither the uniqueness of the names of
sequences nor it guarantees the uniqueness of the sequences.
- Version:
- 1.0 September 2009
- Author:
- pvtroshin
- See Also:
FastaSequence
,
AlignmentMetadata
Alignment
public Alignment(List<FastaSequence> sequences,
Program program,
char gapchar)
- Parameters:
sequences
- program
- gapchar
-
Alignment
public Alignment(List<FastaSequence> sequences,
AlignmentMetadata metadata)
- Parameters:
sequences
- metadata
-
getSequences
public List<FastaSequence> getSequences()
- Returns:
- list of FastaSequence records
getSize
public int getSize()
- Returns:
- a number of sequence in the alignment
getMetadata
public AlignmentMetadata getMetadata()
- Returns:
- AlignmentMetadata object
toString
public String toString()
- Overrides:
toString
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Please note that this implementation does not take the order of sequences
into account!
- Overrides:
equals
in class Object