|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjavagene.seq.SeqFast
public class SeqFast
A SeqI implementation that keeps the entire sequence in memory. The sequence must be ungapped (ie contiguous) and is untyped (ie might be dna, rna, codons, ambiguous, etc.).
| Constructor Summary | |
|---|---|
SeqFast(SeqI sequence)
Construct SeqFast object from an arbitrary SeqI object. |
|
SeqFast(java.lang.String seqData,
java.lang.String id,
java.lang.String description)
Construct SeqFast object from string data. |
|
| Method Summary | |
|---|---|
Location |
bounds()
Get the bounding location 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. |
Location |
locationOf(java.lang.String searchText)
Return the location of the parameter string in this sequence. |
SeqFast |
subseq(Location location)
Create a new sequence containing only the portion specified by the location parameter. |
SeqFast |
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 |
toReverseString(Location location)
Get the IUPAC character string representation of the subsequence specified by the location parameter, in reverse order. |
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. |
java.lang.String |
toTaggedString(Location location,
java.lang.String beginTag,
java.lang.String endTag)
Get the IUPAC representation of the entire sequence, bracketing the portion specified by the location parameter with the specified begin and end tags. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SeqFast(SeqI sequence)
sequence - A SeqI object.
public SeqFast(java.lang.String seqData,
java.lang.String id,
java.lang.String description)
seqData - id - description - | Method Detail |
|---|
public Location bounds()
bounds in interface SeqIpublic java.lang.String description()
SeqI
description in interface SeqIpublic java.lang.String id()
SeqI
id in interface SeqIpublic Location locationOf(java.lang.String searchText)
searchText - The string to search for.
public SeqFast subseq(Location location)
subseq in interface SeqIlocation - The portion of the sequence to get.
java.lang.IndexOutOfBoundsException - The location parameter was not within the bounding location
of the sequence.
public SeqFast subseq(Location location,
java.lang.String id,
java.lang.String description)
subseq in interface SeqIlocation - 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.public java.lang.String toReverseString(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.public java.lang.String toString()
SeqI
toString in interface SeqItoString in class java.lang.Objectpublic java.lang.String toString(Location location)
SeqI
toString in interface SeqIlocation - The portion of the sequence to get.
public java.lang.String toTaggedString(Location location,
java.lang.String beginTag,
java.lang.String endTag)
location - Location of the interesting portion of the sequence.beginTag - The string to put before the portion of interest.endTag - The string to put after the portion of interest.
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 | |||||||