INNER CODE UNIT · Rust

read_bcf_impl

abdenlab/oxbow · r-oxbow/src/rust/src/lib.rs:417

pub fn read_bcf_impl(
    path: &str,
    region: Option<String>,
    index: Option<String>,
    fields: Option<Vec<String>>,
    info_fields: Option<Vec<String>>,
    genotype_fields: Option<Vec<String>>,
    genotype_by: Option<String>,
    samples: Option<Vec<String>>,
    samples_nested: bool,
) -> Vec<u8> {
    let compressed = true;
    let reader = std::fs::File::open(path)
        .map(|f| BufReader::with_capacity(BUFFER_SIZE_BYTES, f))
        .unwrap();
    let genotype_by = match genotype_by.unwrap().as_str() {
        "sample" => GenotypeBy::Sample,
        "field" => GenotypeBy::Field,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…