|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--edu.mssm.crover.representation.Alignment
Default implementation of BiologicalAlignment. Provides storage for an alignment of several BiologicalSequence.
BiologicalAlignment,
Serialized Form| Constructor Summary | |
Alignment()
Constructs an alignment with two sequences. |
|
Alignment(BiologicalOrigin origin,
BiologicalSequence[] seqs)
Constructs a new alignment for a set of sequences and an origin. |
|
| Method Summary | |
BiologicalSequence |
findGappedSequence(java.lang.String shortname)
Finds a sequence by name. |
BiologicalSequence[] |
getGappedSequences()
Returns the sequences with gaps. |
BiologicalOrigin |
getOrigin()
Get the origin of this alignement. |
java.lang.String[] |
getPositions()
Returns the positions of this alignment. |
BiologicalSequence[] |
getSequenceSet()
Get the array of sequences that compose this alignment. |
java.lang.String |
getShortName()
Returns the shortname of this alignment. |
int |
longer()
Computes and returns the length of the longer sequence of this alignment. |
void |
removeSequence(BiologicalSequence seq)
Removes the specified sequence from the alignment. |
void |
setOrigin(Origin x)
Get the origin of this alignment. |
void |
setPositions(java.lang.String[] positions,
BiologicalSequence[] sequences)
Sets the alignment from an array of positions. |
void |
setSequenceSet(BiologicalSequence[] ss)
Sets the array of sequences that compose this alignment. |
void |
setShortName(java.lang.String x)
Sets the shortname of this alignment. |
java.lang.String |
toString()
Format the alignment as text. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Alignment()
public Alignment(BiologicalOrigin origin,
BiologicalSequence[] seqs)
| Method Detail |
public BiologicalSequence[] getSequenceSet()
getSequenceSet in interface BiologicalAlignmentpublic void setSequenceSet(BiologicalSequence[] ss)
setSequenceSet in interface BiologicalAlignmentpublic void removeSequence(BiologicalSequence seq)
removeSequence in interface BiologicalAlignmentpublic int longer()
longer in interface BiologicalAlignmentpublic BiologicalSequence findGappedSequence(java.lang.String shortname)
findGappedSequence in interface BiologicalAlignmentpublic java.lang.String[] getPositions()
12345 AS-FG ERTYIPosition 1 is defined to be "AE", position 2 to be "SR", position 3 to be "-T", etc.
getPositions in interface BiologicalAlignmentString
public void setPositions(java.lang.String[] positions,
BiologicalSequence[] sequences)
positions - The positions given as residue code Stringssequences - Describes the origin, shortName, etc, of the positions inserted(definition of an alignment position).public BiologicalSequence[] getGappedSequences()
getGappedSequences in interface BiologicalAlignmentpublic java.lang.String getShortName()
getShortName in interface BiologicalAlignmentpublic void setShortName(java.lang.String x)
setShortName in interface BiologicalAlignmentpublic BiologicalOrigin getOrigin()
public void setOrigin(Origin x)
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||