Skip to content
This repository has been archived by the owner on Aug 11, 2023. It is now read-only.

oprogramador/fasta-to-object-parser

Repository files navigation

fasta-to-object-parser

MIT License Build Status

NPM status

How to install?

npm install --save fasta-to-object-parser

How to use?

    const fasta = `
>gi|528476511|ref|NW_004929286.1| Homo sapiens chromosome 1 genomic scaffold, alternate assembly CHM1_1.1
TAACCCTA
CCTAA
    `;
    const data = readFASTA(fasta);

It returns data in the following format:

[
  {
    chromosome: '1',
    description: 'Homo sapiens chromosome 1 genomic scaffold, alternate assembly CHM1_1.1',
    gi: '528476511',
    ref: 'NW_004929286.1',
    sequence: 'TAACCCTACCTAA',
    specie: 'Homo sapiens',
  },
]

About

DNA parser of FASTA format

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •