INNER CODE UNIT · Rust

run

google/best · src/main.rs:55

fn run(
    input_path: String,
    reference_path: String,
    stats_prefix: String,
    bin_types: Option<Vec<BinType>>,
    intervals_types: Vec<IntervalsType>,
    name_column: Option<String>,
    output_per_aln_stats: bool,
) {
    // read reference sequences from fasta file
    let mut ref_reader = {
        let f = File::open(&reference_path).unwrap();
        let r: Box<dyn Read> = if reference_path.ends_with(".gz") {
            Box::new(MultiGzDecoder::new(f))
        } else {
            Box::new(f)
        };
        fasta::Reader::new(BufReader::new(r))

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…