blast.js

About
Examples
Example applications can be found at github.com/wookoouk/blastjs-examples
Install
npm install blastjs
Usage
make database
var blast = require('blastjs');
var type = 'nucl';
var fileIn = './test.fasta';
var outPath = './';
var name = 'example';
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 = './example';
var query = 'CTAATACCGAATAAGGTCAGTTAATTTGTTAATTGATGAAAGGAAGCCTT';
blast.blastN(dbPath, query, function (err, output) {
if(!err){
console.log(output);
}
});