This package is no longer maintained and not a good example of parsing a genome text file using node.js - see https://github.com/cslarsen/dna-traits for a better 23AndMe parser solution.
Currently, only raw data from 23andMe is supported.
Install the module with:
npm install biojs-io-snparser
All supported formats are listed in the
All parsing is done asynchronously via the
parseAsync method, which returns a
Promise which holds the array of newly constructed
SNP objects once parsing is done.
> snparser =SNP: init: Function: initformats:Map'23andMe-2015-07-22' dialect: Object converter: Function: convertsupportedFormats: '23andMe-2015-07-22'parseAsync: Function: parseAsync> rawData = fs; null // null is used to suppress output to the consolenull> snpsPromise = snparserPromise <pending>> snpsPromisePromise <pending>> 960614> snpsPromisePromise <pending>> alleles: 'G' 'G'chromosome: 1referenceAssembly: 'GRCh37'rsid: 'rs3737728'position: 1021415strand: '+'
All contributions are welcome.
If you have any problem or suggestions, please open an issue here.
This project is not associated with or endorsed in any way by 23andMe.
23andMe is a registered trademark of 23andMe, Inc — https://www.23andMe.com