Function mzdata::io::infer_format
source · pub fn infer_format<P: Into<PathBuf>>(
path: P
) -> Result<(MassSpectrometryFormat, bool)>
Expand description
Given a path, infer the file format and whether or not the file at that path is GZIP compressed, using both the file name and by trying to open and read the file header