pub fn read_spans_locus(
start: i64,
end: i64,
loci: &HashSet<(String, i64, i64)>,
) -> Result<bool, String>
Expand description
Checks if a given genomic range spans any of the loci in the provided set.
§Arguments
start
- The start position of the genomic range.end
- The end position of the genomic range.loci
- A reference to aHashSet
of tuples representing the loci.
§Returns
A Result
containing true
if the range spans any loci, false
otherwise. Returns an error if the positions are negative.
§Errors
Returns an error if the start or end positions are negative.
§Panics
This function does not panic.