How to use the bio-parsers.genbankToJson function in bio-parsers

To help you get started, we’ve selected a few bio-parsers examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github TeselaGen / openVectorEditor / demo / src / exampleData / getJsonFromGenbankFile.js View on Github external
const bioParsers = require('bio-parsers')
const fs = require('fs')

const string = fs.readFileSync('./exampleData/JBx_078420.gb',"utf8")
console.info('string:',string)
bioParsers.genbankToJson(string, (res) => {
  console.info('res[0].parsedSequence:',JSON.stringify(res[0].parsedSequence,null,4))
})

bio-parsers

A library of parsers for interconverting between genbank, fasta, and (eventually) sbol through Teselagen's intermediary json format

MIT
Latest version published 2 years ago

Package Health Score

45 / 100
Full package analysis