|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SeqI
A sequence of either nucleotides or amino acids.
Sequences are in IUPAC single letter representation,
ie A,C,G,T,U etc. Sequences are not mutable (once constructed,
cannot be changed).
The sequence objects derived from the SeqI interface have modest functionality;
generally speaking, the good stuff is found in the Location, LocIterator, AminoAcid, and Nucleotide classes.
Method Summary | |
---|---|
Location |
bounds()
Get the location that specifies the bounds of this sequence. |
java.lang.String |
description()
Get the text description of the sequence. |
java.lang.String |
id()
Get the (single-word) identifier of the sequence. |
SeqI |
subseq(Location location)
Create a new sequence containing only the portion specified by the location parameter. |
SeqI |
subseq(Location location,
java.lang.String id,
java.lang.String description)
Create a new sequence containing only the portion specified by the location parameter, with the specified id and description. |
java.lang.String |
toString()
Get the IUPAC character string representation of this entire sequence. |
java.lang.String |
toString(Location location)
Get the IUPAC character string representation of the subsequence specified by the location parameter. |
Method Detail |
---|
Location bounds()
java.lang.String description()
java.lang.String id()
SeqI subseq(Location location)
location
- The portion of the sequence to get.
java.lang.IndexOutOfBoundsException
- The location parameter was not within the bounding location
of the sequence.SeqI subseq(Location location, java.lang.String id, java.lang.String description)
location
- The portion of the sequence to get.id
- The new single-word id.description
- The new description line.
java.lang.IndexOutOfBoundsException
- The location parameter was not within the bounding location
of the sequence.java.lang.String toString()
toString
in class java.lang.Object
java.lang.String toString(Location location)
location
- The portion of the sequence to get.
java.lang.IndexOutOfBoundsException
- The location parameter was not within the bounding location
of the sequence.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |