-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
Hi @vsbuffalo, thanks for the super useful crate. I'm working on a small project calculating some stats from a VCF, and am processing records in parallel using rayon::iter::par_bridge and would like to make a GRanges object from this parallel iterator.
For example:
let records = reader
.records()
.par_bridge()
.map(|result| {
let record = result.expect("failed to read VCF record");
// Do something with record and get data; get chrom, position
Ok(GenomicRangeRecord::new(chrom.to_string(), position, position+1, data))
});
// Make GRanges from records parallel iteratorI'm still fairly new to rust but would be happy to look into implementing this if you're open to it and some pointers on where to start.
Metadata
Metadata
Assignees
Labels
No labels