-
- All Implemented Interfaces:
public class BlastEntrypoint to the Blast library.
Provides methods for constructing BLAST+ tool configurations or parsing them from JSON input.
-
-
Method Summary
Modifier and Type Method Description final BlastCLIof(ObjectNode js)Creates a new BlastCLI instance of one of the following types from the given input JSON:This method is intended to be used to construct a BLAST+ configuration instance from a JSON value where the type of the config is not known beforehand. final BlastNblastn(ObjectNode js)Creates a new BlastN instance by parsing the given JSON input. final BlastNblastn()Creates a new, defaulted BlastN instance. final BlastPblastp(ObjectNode js)Creates a new BlastP instance by parsing the given JSON input. final BlastPblastp()Creates a new, defaulted BlastP instance. final BlastXblastx(ObjectNode js)Creates a new BlastX instance by parsing the given JSON input. final BlastXblastx()Creates a new, defaulted BlastX instance. final DeltaBlastdeltablast(ObjectNode js)Creates a new DeltaBlast instance by parsing the given JSON input. final DeltaBlastdeltablast()Creates a new, defaulted DeltaBlast instance. final PSIBlastpsiblast(ObjectNode js)Creates a new PSIBlast instance by parsing the given JSON input. final PSIBlastpsiblast()Creates a new, defaulted PSIBlast instance. final RPSBlastrpsblast(ObjectNode js)Creates a new RPSBlast instance by parsing the given JSON input. final RPSBlastrpsblast()Creates a new, defaulted RPSBlast instance. final RPSTBlastNrpstblastn(ObjectNode js)Creates a new RPSTBlastN instance by parsing the given JSON input. final RPSTBlastNrpstblastn()Creates a new, defaulted RPSTBlastN instance. final TBlastNtblastn(ObjectNode js)Creates a new TBlastN instance by parsing the given JSON input. final TBlastNtblastn()Creates a new, defaulted TBlastN instance. final TBlastXtblastx(ObjectNode js)Creates a new TBlastX instance by parsing the given JSON input. final TBlastXtblastx()Creates a new, defaulted TBlastX instance. final BlastFormatterblastFormatter(ObjectNode js)Creates a new BlastFormatter instance by parsing the given JSON input. final BlastFormatterblastFormatter()Creates a new, defaulted BlastFormatter instance. -
-
Method Detail
-
of
final BlastCLI of(ObjectNode js)
Creates a new BlastCLI instance of one of the following types from the given input JSON:
This method is intended to be used to construct a BLAST+ configuration instance from a JSON value where the type of the config is not known beforehand.
The BlastCLI.tool property may be used after deserialization to determine the type of the config and cast it correctly.
Example
// input == { // "tool": "blastn", // ... //} val config = Blast.of(input) if (config.tool == BlastTool.BlastN) val blastnConfig = config as BlastN- Parameters:
js- JSON object to parse.
-
blastn
final BlastN blastn(ObjectNode js)
Creates a new BlastN instance by parsing the given JSON input.
- Parameters:
js- JSON object to parse.
-
blastp
final BlastP blastp(ObjectNode js)
Creates a new BlastP instance by parsing the given JSON input.
- Parameters:
js- JSON object to parse.
-
blastx
final BlastX blastx(ObjectNode js)
Creates a new BlastX instance by parsing the given JSON input.
- Parameters:
js- JSON object to parse.
-
deltablast
final DeltaBlast deltablast(ObjectNode js)
Creates a new DeltaBlast instance by parsing the given JSON input.
- Parameters:
js- JSON object to parse.
-
deltablast
final DeltaBlast deltablast()
Creates a new, defaulted DeltaBlast instance.
-
psiblast
final PSIBlast psiblast(ObjectNode js)
Creates a new PSIBlast instance by parsing the given JSON input.
- Parameters:
js- JSON object to parse.
-
rpsblast
final RPSBlast rpsblast(ObjectNode js)
Creates a new RPSBlast instance by parsing the given JSON input.
- Parameters:
js- JSON object to parse.
-
rpstblastn
final RPSTBlastN rpstblastn(ObjectNode js)
Creates a new RPSTBlastN instance by parsing the given JSON input.
- Parameters:
js- JSON object to parse.
-
rpstblastn
final RPSTBlastN rpstblastn()
Creates a new, defaulted RPSTBlastN instance.
-
tblastn
final TBlastN tblastn(ObjectNode js)
Creates a new TBlastN instance by parsing the given JSON input.
- Parameters:
js- JSON object to parse.
-
tblastx
final TBlastX tblastx(ObjectNode js)
Creates a new TBlastX instance by parsing the given JSON input.
- Parameters:
js- JSON object to parse.
-
blastFormatter
final BlastFormatter blastFormatter(ObjectNode js)
Creates a new BlastFormatter instance by parsing the given JSON input.
- Parameters:
js- JSON object to parse.
-
blastFormatter
final BlastFormatter blastFormatter()
Creates a new, defaulted BlastFormatter instance.
-
-
-
-