Function parse_loci

Source
pub fn parse_loci(
    loci_list: &Vec<String>,
    padding: u64,
) -> LinkedHashSet<(String, u64, u64, String)>
Expand description

Parse a list of loci strings into a HashSet of formatted loci. If a locus string is a file on disk, read its contents and parse each line as a locus.

§Arguments

  • loci_list - A list of strings representing loci.
  • padding - A u64 representing the amount to extend the start and stop positions by.

§Returns

A HashSet of formatted loci.

§Errors

This function returns an error if it cannot parse a given locus.

§Panics

This function will panic if it cannot parse a given locus. It will also panic if it cannot read a given file path.