UNPKG

higlass

Version:

HiGlass Hi-C / genomic / large data viewer

12 lines (11 loc) 692 B
export default dataToGenomicLoci; export type GenomicLoci = [startChromName: string, startChromPos: number, endChromName: string, endChromPos: number]; /** @typedef {[startChromName: string, startChromPos: number, endChromName: string, endChromPos: number]} GenomicLoci */ /** * Convert a pair of data coordinates to genomic coordinates. * @param {number} x0 - The first data coordinate. * @param {number} x1 - The second data coordinate. * @param {import('../types').ChromInfo} chromInfo - The chromosome info object. * @returns {GenomicLoci} The genomic coordinates. */ declare function dataToGenomicLoci(x0: number, x1: number, chromInfo: import("../types").ChromInfo): GenomicLoci;