You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Create the parsing iterator, and detect which variant we need based on// column number of the first entry.let bedlike_iterator = BedlikeIterator::new(bedfile)?;// If we don't need to sort, use iterator-based streaming processing.for record in bedlike_iterator {let range = record?;let seqname = &range.seqname;let length = *genome
.get(seqname).ok_or(GRangesError::MissingSequence(seqname.to_string()))?;let possibly_adjusted_range = adjust_range(range, -both, both, length);ifletSome(range_adjusted) = possibly_adjusted_range {
writer.serialize(range_adjusted)?;}else{
skipped_ranges += 1;}if skipped_ranges > 0{
report.add_issue(format!("{} ranges were removed because their widths after adjustment were ≤ 0",
skipped_ranges
))}
This uses BedlikeIterator which iterates through GenomicRangeRecord<U> entries. But BED3 are a special case, and need to be detected. The issue is that if not, the CSV crate's serialization routine will add an empty column. This section needs to be rewritten like the block below it, handing the BED3 special case.
The text was updated successfully, but these errors were encountered:
Issue is line 127 in
src/commands.rs
:This uses
BedlikeIterator
which iterates throughGenomicRangeRecord<U>
entries. But BED3 are a special case, and need to be detected. The issue is that if not, the CSV crate's serialization routine will add an empty column. This section needs to be rewritten like the block below it, handing the BED3 special case.The text was updated successfully, but these errors were encountered: