0.1.1 • Published 3 years ago

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

Weekly downloads
-
License
MIT
Repository
github
Last release
3 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

3 years ago

0.1.0

3 years ago

0.0.12

3 years ago

0.0.11

3 years ago

0.0.10

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago