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