INNER CODE UNIT · Rust

stop

google/best · src/bed.rs:48

            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()
                .map(|(k, v)| (k, Lapper::new(v)))

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…