fasta-to-object-parser

1.4.15 • Public • Published

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',
  },
]

Package Sidebar

Install

npm i fasta-to-object-parser

Weekly Downloads

5

Version

1.4.15

License

MIT

Unpacked Size

19.2 kB

Total Files

10

Last publish

Collaborators

  • oprogramador