sample_bed_url

Function sample_bed_url 

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

Returns the cloud location of a sample .bed file as a URL string.

Behind the scenes, the “cloud location” will actually be local. 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.