UNPKG

@gmod/bbi

Version:

Parser for BigWig/BigBed files

32 lines (31 loc) 1.04 kB
import AbortablePromiseCache from '@gmod/abortable-promise-cache'; import { BBI } from './bbi.ts'; import type { 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<{ field: number | undefined; offset?: number; chromId?: number; start: number; end: number; score?: number; rest?: string; minScore?: number; maxScore?: number; summary?: boolean; uniqueId?: string; }[]>; } export {};