Skip to main content

parse_locus

Function parse_locus 

Source
pub fn parse_locus(name: &str) -> Option<(Box<str>, u64, u64)>
Expand description

Parse a row name as (chr, start, end). Accepts either chr1:1000-2000, 1:1000-2000, chr1_1000_2000, or 1_1000_2000. Returns None for anything that doesn’t match — those names pass through the overlap pass untouched.