gene.iobio
gene.iobio copied to clipboard
Convert IOBIO Webservice API requests to a number of endpoints
Currently the iobio webservices are called directly in the function. e.g.
var cmd = new iobio.cmd(
IOBIO.tabix,
['-H', vcfURL],
{ssl: useSSL}
);
cmd.on('data', function(data) {
if (data != undefined) {
success = true;
buffer += data;
}
});
...
Abstract away all iobio commands into endpoint so the above would become something like this
routes.getHeader({onData:Func(), onError:Func()})
I think this could all be placed in a routes directory with a vcf and bam routes file.
The purpose of this is to decouple the API from the gene.iobio code so that we can experiment with monolith and http endpoints
Thoughts?