public class TraceSequences extends Object
Modifier and Type | Field and Description |
---|---|
static String |
TRACES_DIR_NAME |
Constructor and Description |
---|
TraceSequences(String userId,
long partId) |
Modifier and Type | Method and Description |
---|---|
boolean |
addTraceSequence(File file,
String uploadFileName) |
void |
buildOrRebuildAlignment(TraceSequence traceSequence,
Sequence sequence)
Calculate sequence alignment between the given
TraceSequence and Sequence
using bl2seq, and save the result into the database. |
protected boolean |
canEdit(String userId,
String depositor,
Entry entry) |
ByteArrayOutputStream |
getAll()
Retrieves all the trace sequence files, for the specified part, and places them in a zip file
|
Results<TraceSequenceAnalysis> |
getTraces(int start,
int limit) |
TraceSequence |
importTraceSequence(String filename,
String sequence,
InputStream inputStream)
Create a new
TraceSequence record and associated with the Entry entry. |
public static final String TRACES_DIR_NAME
public TraceSequences(String userId, long partId)
public ByteArrayOutputStream getAll() throws IOException
IOException
- on exception creating zip file or retrieving bytes for itpublic Results<TraceSequenceAnalysis> getTraces(int start, int limit)
public TraceSequence importTraceSequence(String filename, String sequence, InputStream inputStream)
TraceSequence
record and associated with the Entry
entry.
Unlike importTraceSequence this method auto generates uuid and timestamp.filename
- name of the file uploaded by the usersequence
- sequence stringinputStream
- input stream for uploaded filepublic void buildOrRebuildAlignment(TraceSequence traceSequence, Sequence sequence)
TraceSequence
and Sequence
using bl2seq, and save the result into the database.traceSequence
- traceSequencesequence
- sequenceCopyright © 2017. All rights reserved.