sample_bed_file

Function sample_bed_file 

Source
pub fn sample_bed_file<AnyPath0>(
    bed_path: AnyPath0,
) -> Result<PathBuf, Box<BedErrorPlus>>
where AnyPath0: AsRef<Path>,
Expand description

Returns the local path to a sample .bed file. If necessary, the file will be downloaded.

The .fam and .bim files will also be downloaded, if they are not already present. SHA256 hashes are used to verify that the files are correct. The files will be in a directory determined by environment variable BED_READER_DATA_DIR. If that environment variable is not set, a cache folder, appropriate to the OS, will be used.