INNER CODE UNIT · Rust

start

google/best · src/bed.rs:47

            let start = fields.next().unwrap().parse::<usize>().unwrap() + 1;
            let stop = fields.next().unwrap().parse::<usize>().unwrap() + 1;
            let feature = fields.next().unwrap_or("none").to_owned();

            intervals
                .entry(chrom)
                .or_insert_with(|| Vec::<FeatureInterval>::new())
                .push(Interval {
                    start,
                    stop,
                    val: feature.clone(),
                });
            features.insert(feature);
        }

        Self {
            intervals: intervals
                .into_iter()

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…