@gmod/bbi
Version:
Parser for BigWig/BigBed files
20 lines (19 loc) • 767 B
TypeScript
import AbortablePromiseCache from '@gmod/abortable-promise-cache';
import { BBI } from './bbi.ts';
import type { Feature, RequestOptions } from './types.ts';
interface Index {
type: number;
fieldcount: number;
offset: number;
field: number;
}
export declare function filterUndef<T>(ts: (T | undefined)[]): T[];
export declare class BigBed extends BBI {
readIndicesCache: AbortablePromiseCache<RequestOptions, Index[], string>;
readIndices(opts?: RequestOptions): Promise<Index[]>;
protected getView(_scale: number, opts?: RequestOptions): Promise<import("./block-view.ts").BlockView>;
private _readIndices;
private searchExtraIndexBlocks;
searchExtraIndex(name: string, opts?: RequestOptions): Promise<Feature[]>;
}
export {};