rust_htslib::bgzf

Function is_bgzip

Source
pub fn is_bgzip<P: AsRef<Path>>(path: P) -> Result<bool, Error>
Expand description

Test if a file is a Bgzip compressed file

§Arguments

  • path - the path to test.

§Returns:

Will return Ok(true) or Ok(false) if the file at path is BGZIP compressed. Will return an Err in cases where no testing is possible.