Socket
Socket
Sign inDemoInstall

bioutils

Package Overview
Dependencies
0
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    bioutils

Utilities for Working with Bioinformatics Files (fasta, fna, nexus and newick) in JavaScript


Version published
Weekly downloads
1
Maintainers
1
Install size
1.56 MB
Created
Weekly downloads
 

Readme

Source

bioUtils

Work with Bioinformatics Files in JavaScript

Goals:

  • support sequence alignments and phylogenetic trees in fasta, fna, nexus and newick formats
  • simple, fast and light
  • fully tested, comprehensively documented
  • work in Node and in the browser
  • standardize input, output and formatting so that you can focus on analyzing the data
Docs: https://rdvelazquez.github.io/bioUtils/

Install

npm install bioutils

or

yarn add bioutils

Use

const bioUtils = require("bioutils");

// Read data from a file into a json object.
const exampleBioData = bioUtils.readFileSync("./exampleData.fasta");

// Get info about the data.
/*TODO: not sure if this will be implemented
// Some info is available in the "metaData".
const numberOfSequences = exampleBioData['metaData']['numberOfSequences'];
*/
// Other info can be obtained with functions.
const containsStopCodons = bioUtils.containsStopCodons(exampleBioData);

// Perform simple manipulations on the data.
const exampleBioDataWithoutStopCodons = bioUtils.replaceStopCodons(exampleBioData, "-");
const exampleBioDataAminoAcids = bioUtils.translateToAminoAcid(exampleBioData);

// Write the data to any file format you want.
bioUtils.writeFileSync(exampleBioDataWithoutStops, 'nexus', 'exampleOutputFile.nexus')
biUtils.writeFileSync(exampleBioDataAminoAcis, 'fasta', 'exampleOutputFileAA.fasta')

Previous/Similar Work

Development

Test yarn test
Lint yarn lint
Build Docs yarn document
Publish to NPM... just npm publish

FAQs

Last updated on 19 Apr 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc