blast.js
About
Examples
Example applications can be found at github.com/wookoouk/blastjs-examples
Install
npm install blastjs --save
Usage
make database
var blast = require('blastjs');
var type = 'prot';
var fileIn = './data.fasta';
var outPath = './';
var name = 'myDatabase';
blast.makeDB(type, fileIn, outPath, name, function(err){
if(err){
console.error(err);
} else {
console.log('database created at', outPath);
}
});
blast n
var blast = require('blastjs');
var dbPath = './myDatabase';
var query = 'ACGTGCCACGATTCAACGTGGCACAG';
blast.blastN(db, dbPath, function (err, output) {
if(!err){
console.log(output);
}
});