compbio.data.sequence
Class Alignment
java.lang.Object
  
compbio.data.sequence.Alignment
@Immutable
public final class Alignment
- extends java.lang.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
 
 
| Methods inherited from class java.lang.Object | 
getClass, notify, notifyAll, wait, wait, wait | 
 
Alignment
public Alignment(java.util.List<FastaSequence> sequences,
                 Program program,
                 char gapchar)
- Parameters:
 sequences - program - gapchar - 
Alignment
public Alignment(java.util.List<FastaSequence> sequences,
                 AlignmentMetadata metadata)
- Parameters:
 sequences - metadata - 
getSequences
public java.util.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 java.lang.String toString()
- Overrides:
 toString in class java.lang.Object
 
 
hashCode
public int hashCode()
- Overrides:
 hashCode in class java.lang.Object
 
 
equals
public boolean equals(java.lang.Object obj)
- Please note that this implementation does not take the order of sequences
 into account!
- Overrides:
 equals in class java.lang.Object