|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--edu.mssm.crover.ims.tasks.engines.SequenceTaskData
Stores FASTA format sequences.
| Field Summary | |
AnnotatedBioSequence[] |
data
|
java.io.File |
file
|
| Constructor Summary | |
SequenceTaskData()
Empty constructor. |
|
SequenceTaskData(AnnotatedBioSequence[] sequence)
Reads the AnnotatedBioSequence array passed as a parameter into the AnnotatedBioSequence array associated with this instance of SequenceTaskData. |
|
SequenceTaskData(java.io.File file)
Reads a file which contains FASTA sequence data. |
|
SequenceTaskData(java.lang.String filename)
Reads a file which contains FASTA sequence data. |
|
| Method Summary | |
boolean |
canMerge()
Does this instance support the merge operation? |
boolean |
canSplit()
Does this instance support the split operation? |
SequenceTaskData |
convertFromFile()
Converts a FASTA sequence file to a SequenceTaskData with no file associated with it. |
SequenceTaskData |
convertFromFile(java.io.File seq_file)
Converts a FASTA sequence file to a SequenceTaskData with no file associated with it. |
AnnotatedBioSequence[] |
getData()
Returns the AnnotatedBioSequence array associated with this instance of SequenceTaskData. |
java.io.File |
getFile()
Returns the File which is associated with this instance of SequenceTaskData. |
java.io.File |
makeFile()
Writes the AnnotatedBioSequence array to a file. |
void |
makeFile(java.io.File file)
Writes the AnnotatedBioSequence data to a file. |
java.io.File |
makeFile(java.lang.String filename)
Writes the AnnotatedBioSequence data to a file. |
TaskData |
merge(java.util.Collection task_data)
Returns the merging of independent task_data in one instance. |
void |
setFile(java.io.File file)
Allows you to set a File for this instance of SequenceTaskData. |
void |
setFile(java.lang.String filename)
Allows you to set a filename for this instance of SequenceTaskData. |
long |
size()
Returns the number of AnnotatedBioSequences in this SequenceTaskData instance. |
java.util.Collection |
split(int numpieces)
Splits the data contained in this instance into several pieces. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public AnnotatedBioSequence[] data
public java.io.File file
| Constructor Detail |
public SequenceTaskData(java.io.File file)
throws java.io.FileNotFoundException
public SequenceTaskData(java.lang.String filename)
throws java.io.FileNotFoundException
public SequenceTaskData(AnnotatedBioSequence[] sequence)
public SequenceTaskData()
| Method Detail |
public boolean canSplit()
TaskData
canSplit in interface TaskDatapublic long size()
size in interface TaskDatapublic java.util.Collection split(int numpieces)
TaskData
split in interface TaskDatapublic boolean canMerge()
TaskData
canMerge in interface TaskDatapublic TaskData merge(java.util.Collection task_data)
TaskData
merge in interface TaskData
public java.io.File makeFile()
throws java.io.IOException
java.io.IOException
public java.io.File makeFile(java.lang.String filename)
throws java.io.IOException
filename - the name of the file to write to.
java.io.IOException
public void makeFile(java.io.File file)
throws java.io.IOException
java.io.IOException
public SequenceTaskData convertFromFile(java.io.File seq_file)
throws java.io.FileNotFoundException
seq_file - The name of the file containing the FASTA sequence(s).
java.io.FileNotFoundException
public SequenceTaskData convertFromFile()
throws java.io.FileNotFoundException
java.io.FileNotFoundExceptionpublic void setFile(java.io.File file)
public void setFile(java.lang.String filename)
public java.io.File getFile()
public AnnotatedBioSequence[] getData()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||