gen-coord
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-coordvar genCoord = ; //Split a coordinate stringgenCoord; // returns { chromosome: '1', start: 12345, end: 67890 }
Join(obj)
Returns a new string with the genomic coordinate.
//Import gen-coordvar genCoord = ; //Join a coordinate objectgenCoord; // returns '1:12345-67890'