$ npm install --save @gmod/faidx
Operates on a readStream/writeStream
import { generateFastaIndex } from "@gmod/faidx";
const write = fs.createWriteStream("out.fa.fai");
const read = fs.createReadStream("out.fa");
await generateFastaIndex(write, read);
This package was written with funding from the NHGRI as part of the JBrowse project. If you use it in an academic project that you publish, please cite the most recent JBrowse paper, which will be linked from jbrowse.org.
MIT © Colin Diesh