Manage genomic coordinates (Bioinformatics).
Use NPM for install the package:
npm install gen-coord
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 }
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'