gen-coord

1.1.0 • Public • Published

gen-coord

npm npm

Manage genomic coordinates (Bioinformatics).

Install

Use NPM for install the package:

npm install gen-coord

Usage

Split(str)

Split a genomic coordinate and get an object with the next attributes:

  • chromosome: chromosome for the coordinate.
  • start: start position.
  • end: end position.
//Import gen-coord
var genCoord = require('gen-coord');
 
//Split a coordinate string
genCoord.Split('1:12345-67890'); // returns { chromosome: '1', start: 12345, end: 67890 }

Join(obj)

Returns a new string with the genomic coordinate.

//Import gen-coord
var genCoord = require('gen-coord');
 
//Join a coordinate object
genCoord.Join({ chromosome: '1', start: 12345, end: 67890 }); // returns '1:12345-67890'

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i gen-coord

      Weekly Downloads

      3

      Version

      1.1.0

      License

      MIT

      Last publish

      Collaborators

      • jmjuanes