New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@adntro/raw-dna-dtc-parser

Package Overview
Dependencies
Maintainers
4
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@adntro/raw-dna-dtc-parser

DNA file reader (in DTC formats) and parser

0.0.8
Source
npm
Version published
Weekly downloads
43
Maintainers
4
Weekly downloads
 
Created
Source

@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.

FAQs

Package last updated on 13 Oct 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts