mzueva / blast-wrapper Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Currently we don't have appropriate validation for the incoming parameters for task with type BLAST_TOOL
.
Let's implement it in the following way:
Current schema of the input parameters for BLAT_TOOL task is:
{
"blastTool": "string",
"algorithm": "string",
"dbName": "string",
"taxIds": [
long
],
"excludedTaxIds": [
long
],
"query": "string",
"maxTargetSequence": 0,
"expectedThreshold": 0,
"options": "string"
}
Regarding to this schema we need to check that:
blastTool
is one of blastn
, blastp
, blastx
, tblastx
, tblastn
algoritm
should be provided only for blastn
blastp
with possible values
megablast
, dc-megablast
, blastn
blastp
, 'blastp-fast
, blastp-short
blastx
blastx-fast
tblastn
tblastn-fast
taxIds
and excludedTaxIds
- should not be present with each otherquery
- verify as it is nowmaxTargetSequence
- lets introduce new application prop value that would be a hard top limit, maxTargetSequence
should be > 0 and < that this limitexpectedThreshold
check that this value is > 0options
- here we need to introduce approach to verify and remove bad options, lets for now implement this in the following way
-num_threads
is not provided, if provided remove it with its value-outfmt
is not provided, if provided remove it with its value-remote
is not provided, if provided remove it with its value-negative_taxids
, -negative_taxidslist
is not provided, if provided remove it with its value-taxids
-taxidslist
is not provided, if provided remove it with its value-evalue
is not provided, if provided remove it with its value-out
is not provided, if provided remove it with its value-db
is not provided, if provided remove it with its value-task
is not provided, if provided remove it with its value-query
is not provided, if provided remove it with its value-num_alignments
is not provided, if provided remove it with its value-num_descriptions
is not provided, if provided remove it with its valueWould be great to have possibility to download a raw blast result as a file through a Rest API
Right now we already have approach for blast-wrapper to work as cluster: #17
However there is several artifacts:
It would be grate to solve this problems and adds optional possibility to run specific tasks on specific hosts
We need to provide possibility to get results of the specific BLAST_TOOL task.
GET /blast/{id}
method to get a result
size
> 0 to limit number of returned result entriesThere should be a way to cancel currently running task. Such API should be available through the Rest API.
Let's implement this in the following way:
GET /task/{id}/cancel
method to cancel a task with id={id}
Future
Currently blast is executed with number of customize parameters such as
This list should be extended regarding to the schema of BlastStartSearchingRequest
:
{
"blastTool": "string",
"algorithm": "string",
"dbName": "string",
"taxIds": [
long
],
"excludedTaxIds": [
long
],
"query": "string",
"maxTargetSequence": 0,
"expectedThreshold": 0,
"options": "string"
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.