|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.peace_tools.data.EST
public class EST
Field Summary | |
---|---|
private int |
dbClassifier
Index of the classifier in the Work space's classifier list with which this EST is associated. |
private int |
id
The unique ID for this EST. |
private java.lang.String |
info
The name and other information associated with the EST. |
private java.lang.String |
sequence
The actual sequence of base pairs associated with this EST. |
Constructor Summary | |
---|---|
EST(int id,
java.lang.String info,
java.lang.String sequence)
EST Constructor. |
Method Summary | |
---|---|
protected void |
classify(java.util.ArrayList<DBClassifier> classifiers)
Method to determine the classifier that identifies this EST. |
int |
getDBClassifier()
Obtain the classifier index with which this EST is associated. |
int |
getID()
Obtain the ID of this EST. |
java.lang.String |
getInfo()
Obtain the information associated with this EST. |
java.lang.String |
getSequence()
Obtain the actual sequence of base pairs for this EST. |
void |
read(java.io.PushbackInputStream is)
Method to read an EST from a given input stream. |
protected java.lang.String |
readline(java.io.InputStream is)
Helper method to read a line from a given input stream. |
java.lang.String |
toString()
|
void |
write(java.io.PrintStream os)
Method to dump the EST data out in FASTA file format. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private int id
private java.lang.String info
private java.lang.String sequence
private int dbClassifier
Constructor Detail |
---|
EST(int id, java.lang.String info, java.lang.String sequence)
id
- The unqiue ID value to be set for this EST.info
- The name and other information associated with the EST.
This information is typically the first header line read from a FASTA
file. This information can be null.sequence
- The actual sequence of base pairs associated with this
EST. The sequence information can be null.Method Detail |
---|
public int getID()
public java.lang.String getInfo()
public java.lang.String getSequence()
public int getDBClassifier()
public void write(java.io.PrintStream os)
os
- The output stream to which the EST must be written in
a FASTA format.public void read(java.io.PushbackInputStream is) throws java.io.IOException
Note: This method updates only the info and sequence information associated with this EST and not its id value.
is
- The input stream from where the EST is to be read.
java.io.IOException
protected java.lang.String readline(java.io.InputStream is) throws java.io.IOException
is
- The input stream from where a line is to be read.
java.io.IOException
- This method throws an exception one errors.public java.lang.String toString()
toString
in class java.lang.Object
protected void classify(java.util.ArrayList<DBClassifier> classifiers)
classifiers
- The list of classifiers to be used to determine
the matching classifier. Typically, this list is the same as the
list of classifiers currently configured in the work space.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |