We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ad9727 commit 5244c1dCopy full SHA for 5244c1d
1 file changed
bigtools/src/utils/cli/bedtobigbed.rs
@@ -119,11 +119,13 @@ pub fn bedtobigbed(args: BedToBigBedArgs) -> anyhow::Result<()> {
119
let infile = File::open(&bedpath)
120
.with_context(|| format!("Failed to open bed file `{}`", &bedpath))?;
121
let mut vals_iter = BedFileStream::from_bed_file(infile);
122
- crate::bed::autosql::bed_autosql(&vals_iter.next().unwrap().unwrap().1.rest)
+ vals_iter
123
+ .next()
124
+ .map(|v| crate::bed::autosql::bed_autosql(&v.unwrap().1.rest))
125
}
- Some(file) => std::fs::read_to_string(file)?,
126
+ Some(file) => Some(std::fs::read_to_string(file)?),
127
};
- outb.autosql = Some(autosql);
128
+ outb.autosql = autosql;
129
130
131
.with_context(|| format!("Failed to open bed file `{}`.", &bedpath))?;
0 commit comments