|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjavagene.seq.SeqBig
public class SeqBig
A SeqI implementation capable of handling large sequences that do not fit into memory. The sequence data is kept on disk and accessed as a memory-mapped file. The sequence file must be in Fasta format. Assumes all data lines (except last) are of equal length. (This is checked when the file is opened.)
| Constructor Summary | |
|---|---|
SeqBig(java.lang.String filename)
Construct SeqBig object given Fasta filename. |
|
| 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. |
SeqBig |
subseq(Location location)
Create a new sequence containing only the portion specified by the location parameter. |
SeqBig |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SeqBig(java.lang.String filename)
throws java.io.IOException
filename - The path and name of the Fasta file.
java.io.IOException - - Check the exception text for details.| 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 SeqBig 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 SeqBig 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 toString()
toString in interface SeqItoString in class java.lang.Objectpublic java.lang.String toString(Location location)
toString 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.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||