fasta-tools

0.2.1 • Public • Published

fasta-tools

Tools for working with FASTA/FASTQ files (Bioinformatics).

npm npm

Install

Install using npm:

npm install fasta-tools

Import in your project:

var fasta_tools = require('fasta-tools');

FASTA and FASTQ formats

The FASTA format

The FASTQ format

The FASTA Object format

the FASTQ Object format

API

fasta_tools.read(file, cb)

Read a FASTA/FASTQ file.

fasta_tools.write(file, obj, cb)

Write a FASTA/FASTQ file.

fastq_obj = fasta_tools.toFastQ(fasta_obj, quality)

Converts a FASTA Object to a FASTQ Object assuming a quality score of quality.

fasta_obj = fasta_tools.toFasta(fastq_obj)

Converts a FASTQ Object to a FASTA Object by removing the quality value of each read.

License

MIT LICENSE © Josemi Juanes.

Package Sidebar

Install

npm i fasta-tools

Weekly Downloads

1

Version

0.2.1

License

MIT

Last publish

Collaborators

  • jmjuanes