RecMap library for reading and working with recombination maps in Rust
RecMap objects can be created from reading in a HapMap-formatted
recombination map. Note that since the HapMap recombination format does
not include the chromosome lengths, this must be specified too.
A convenience function read_seqlens is provided to read in TSV-formatted
"genome" files of the chromosome names and lengths.
Here is a example which loads a recombination map from a HapMap-formatted recombination map and calculates the total map lengths.
use *;
let seqlens = read_seqlens
.expect;
let rec_map = from_hapmap
.expect;
for in rec_map.iter
This example can be run on the command line with:
use *;
let seqlens = read_seqlens
.expect;
let rec_map = from_hapmap
.expect;
let positions = vec!;
rec_map.interpolate_map_positions;