fasta-to-object-parser
v1.4.15
Published
DNA parser of FASTA format
Downloads
59
Readme
fasta-to-object-parser
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',
},
]