public class BlastPlus extends Object
| Constructor and Description |
|---|
BlastPlus() |
| Modifier and Type | Method and Description |
|---|---|
static IndexBuildStatus |
getStatus() |
static List<DNAFeature> |
processFeaturesBlastOutput(String blastOutput)
Process the output of the blast run for features
into a list of feature objects
Expected format for the output (per line) is feature_id, label, type, qstart, qend, sstart, send, sstrand
Therefore line[0] is feature_id, line[1] is label etc
Since we are only interested in features that have a full match (covers entire feature) some matches are manually eliminated. |
static void |
rebuildDatabase(boolean force)
Re-builds the blast database, using a lock file to prevent concurrent rebuilds.
|
static void |
rebuildFeaturesBlastDatabase(String featureFolder) |
static HashMap<String,SearchResult> |
runBlast(BlastQuery query)
Run a blast query using the following output format options
stitle - subject title
qstart - query match start index
qend - query match end index
sstart - subject match start index
send
sstrand
evalue
bitscore
length - alignment length
nident - number of identical matches
|
static List<Bl2SeqResult> |
runBlast2Seq(String query,
String subject)
Run the bl2seq program on multiple subjects.
|
static List<DNAFeature> |
runCheckFeatures(BlastQuery query)
Run a blast query against the sequence features blast database.
|
static void |
scheduleBlastIndexRebuildTask(boolean force)
Schedule task to rebuild the blast index
|
public static HashMap<String,SearchResult> runBlast(BlastQuery query) throws BlastException
stitle - subject titleqstart - query match start indexqend - query match end indexsstart - subject match start indexsendsstrandevaluebitscorelength - alignment lengthnident - number of identical matchesquery - wrapper around blast queryBlastExceptionpublic static List<DNAFeature> runCheckFeatures(BlastQuery query) throws BlastException
query - wrapper around sequence to blastBlastException - on null result or exception processing the resultpublic static List<DNAFeature> processFeaturesBlastOutput(String blastOutput)
feature_id, label, type, qstart, qend, sstart, send, sstrand
Therefore line[0] is feature_id, line[1] is label etc
blastOutput - blast program outputpublic static void rebuildFeaturesBlastDatabase(String featureFolder) throws IOException
IOExceptionpublic static void rebuildDatabase(boolean force)
throws BlastException
force - set to true to force a rebuild. Use with cautionBlastExceptionpublic static List<Bl2SeqResult> runBlast2Seq(String query, String subject) throws BlastException
query - reference sequence.subject - query sequence.BlastExceptionpublic static void scheduleBlastIndexRebuildTask(boolean force)
public static IndexBuildStatus getStatus()
Copyright © 2017. All rights reserved.