cljam.util.whole-genome
Utilities for conversions between chromosomal positions and whole-genome
positions.
->chr-and-pos
(->chr-and-pos offset->ref wg-pos)
Transforms a whole-genome position to a vector of a chromosome name and a
position in the chromosome.
->regions
(->regions offset->ref start end)
Transforms a region in whole-genome coordinate into a sequence of chromosomal
regions.
->whole-genome-coord
(->whole-genome-coord chr->offset chr pos)
Transforms a position in a chromosome into a whole-genome position.
chr-to-whole-genome-index
(chr-to-whole-genome-index refs)
Creates a map of [chromosome-name offset&length] from refs.
whole-genome-to-chr-index
(whole-genome-to-chr-index refs)
Creates a sorted-map of [offset chromosome-name&length] from refs.