compbio.data.sequence
Class Alignment

java.lang.Object
  extended by 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

Constructor Summary
Alignment(List<FastaSequence> sequences, AlignmentMetadata metadata)
           
Alignment(List<FastaSequence> sequences, Program program, char gapchar)
           
 
Method Summary
 boolean equals(Object obj)
          Please note that this implementation does not take the order of sequences into account!
 AlignmentMetadata getMetadata()
           
 List<FastaSequence> getSequences()
           
 int getSize()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 -
Method Detail

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