public class SequenceAnalysisController extends Object
Modifier and Type | Field and Description |
---|---|
static String |
SHOTGUN_DIR_NAME |
static String |
TRACES_DIR_NAME |
Constructor and Description |
---|
SequenceAnalysisController() |
Modifier and Type | Method and Description |
---|---|
void |
buildOrRebuildAlignment(TraceSequence traceSequence,
Sequence sequence)
Calculate sequence alignment between the given
TraceSequence and Sequence
using bl2seq, and save the result into the database. |
File |
getFile(TraceSequence traceSequence)
Retrieve the
File associated with the given TraceSequence . |
TraceSequence |
getTraceSequenceByFileId(String fileId) |
List<TraceSequence> |
getTraceSequences(Entry entry)
Retrieve the
TraceSequence associated with the given Entry entry. |
void |
rebuildAllAlignments(Entry entry)
Calculate sequence alignments between the sequence associated with an
Entry entry
with all the TraceSequence s associated with that entry. |
void |
removeShotgunSequence(ShotgunSequence shotgunSequence) |
void |
removeTraceSequence(TraceSequence traceSequence)
Remove a
TraceSequence from the database and disk. |
public static final String TRACES_DIR_NAME
public static final String SHOTGUN_DIR_NAME
public void removeTraceSequence(TraceSequence traceSequence)
TraceSequence
from the database and disk.traceSequence
- dto for trace sequence informationpublic void removeShotgunSequence(ShotgunSequence shotgunSequence)
public List<TraceSequence> getTraceSequences(Entry entry)
TraceSequence
associated with the given Entry
entry.entry
- entry objectpublic TraceSequence getTraceSequenceByFileId(String fileId)
public File getFile(TraceSequence traceSequence)
File
associated with the given TraceSequence
.traceSequence
- dto for trace sequence informationFile
object.public void buildOrRebuildAlignment(TraceSequence traceSequence, Sequence sequence)
TraceSequence
and Sequence
using bl2seq, and save the result into the database.traceSequence
- traceSequencesequence
- sequencepublic void rebuildAllAlignments(Entry entry)
Entry
entry
with all the TraceSequence
s associated with that entry.
Calls buildOrReplaceAlignment on each TraceSequence.entry
- entry objectCopyright © 2017. All rights reserved.