Meet npm Pro: unlimited public & private packages + package-based permissions.Learn more »

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'

Install

npm i gen-coord

DownloadsWeekly Downloads

1

Version

1.1.0

License

MIT

Last publish

Collaborators

  • avatar