-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomers
Description
Issue is line 127 in src/commands.rs:
// 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);
if let Some(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.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomers