2.0.0 • Published 8 years ago

bionode-gff v2.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

NPM

Build Status

Install

Install bionode-gff with npm:

$ npm install bionode-gff

Usage

If you are using bionode-gff with Node.js, you can require the module:

var ncbi = require('bionode-gff')
 GFF.read(filePath).on('data',onFeatures).on('end', done);
 
 function onFeature(feature){
         console.log(feature.seqid);
         console.log(feature.source);
         console.log(feature.type);
         console.log(feature.start);
         console.log(feature.end);
         console.log(feature.score || '.');
         console.log(feature.strand || '?');
         console.log(feature.phase || '.');
         console.log(feature.attributes);
 }
 
 function done(){
 console.log('done');
 }