0.1.1 • Published 4 years ago

@adntro/raw-dna-dtc-parser v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

@adntro/raw-dna-dtc-parser

DNA file reader (in DTC formats) and parser

npm version

Getting started

Install as a dependency

npm i -S @adntro/raw-dna-dtc-parser

Usage

const { RawFormatNormalizerTransform, EVENTS } = require('@adntro/raw-dna-dtc-parser')
const split2 = require('split2')
const { createReadStream, createWriteStream } = require('fs')

const rawNormalizer = new RawFormatNormalizerTransform();

createReadStream('genome_test_v5.txt', 'utf-8')  // 23andme file
  .pipe(split2) //line by line
  .pipe(rawNormalizer)
  .pipe(createWriteStream('out.txt'))

rawNormalizer.on(EVENTS.HEADER, header => console.log('File header -> ', header))
rawNormalizer.on(EVENTS.INFO, snpInfo => console.log('File SNP info -> ', snpInfo))

License

MIT


Made with ❤️ by the Adntro Genetics Developer Team.

NOTE: This is not an official Adntro product.

0.1.1

4 years ago

0.1.0

4 years ago

0.0.12

4 years ago

0.0.11

4 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago