Skip to content

Commit

Permalink
change warning when no (phased) reads found
Browse files Browse the repository at this point in the history
  • Loading branch information
wdecoster committed Jul 4, 2024
1 parent 26c39e5 commit dfa4d95
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "STRdust"
version = "0.8.5"
version = "0.8.6"
edition = "2021"


Expand Down
5 changes: 3 additions & 2 deletions src/parse_bam.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
use log::warn;
use rust_htslib::bam;
use rust_htslib::bam::ext::BamRecordExtensions;
use rust_htslib::bam::record::Aux;
Expand Down Expand Up @@ -78,9 +79,9 @@ pub fn get_overlapping_reads(
if seqs.is_empty() {
// error/warning message depends on whether we are looking for phased reads or not
if unphased {
eprintln!("Cannot genotype {repeat}: no reads found");
warn!("Cannot genotype {repeat}: no reads found");
} else {
eprintln!("Cannot genotype {repeat}: no phased reads found");
warn!("Cannot genotype {repeat}: no phased reads found. Use --unphased to genotype unphased reads.");
}
None
} else {
Expand Down

0 comments on commit dfa4d95

Please sign in to comment.