Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bioutils

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

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

  • 0.1.0-alpha.3
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
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

Package last updated on 19 Apr 2019

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc