UNPKG

@gmod/indexedfasta

Version:

read indexed fasta and bgzipped fasta formats

24 lines (23 loc) 746 B
import type { GenericFilehandle } from 'generic-filehandle2'; declare function parseSmallFasta(text: string): { id: string; description: string; sequence: string; }[]; declare class FetchableSmallFasta { fasta: GenericFilehandle; data: Promise<{ id: string; description: string; sequence: string; }[]>; constructor({ fasta, path }: { fasta?: GenericFilehandle; path?: string; }); fetch(id: string, start: number, end: number): Promise<string>; getSequenceNames(): Promise<string[]>; } export { FetchableSmallFasta, parseSmallFasta }; export { default as BgzipIndexedFasta } from './bgzipIndexedFasta.ts'; export { default as IndexedFasta } from './indexedFasta.ts';