Skip to content

Commit

Permalink
🧹 clean up output message
Browse files Browse the repository at this point in the history
  • Loading branch information
migbro committed Feb 2, 2024
1 parent 650687b commit 08ceffc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/commands/annotate_cmd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,12 @@ pub fn annotate_main(
n += 1;
// First check if the variant is *, skip those
if String::from_utf8_lossy(record.alleles()[1]) == "*" {
let rid = record.rid().unwrap();
let chrom = std::str::from_utf8(oheader_view.rid2name(rid).unwrap()).unwrap();
eprintln!(
"alt has * value, skipping annotation for {:?}",
&record
"contig {} pos {} alt has * value, skipping annotation, outputting entry as-is",
&chrom,
record.pos() + 1
);
ovcf.write(&record).expect("failed to write record");
continue;
Expand Down

0 comments on commit 08ceffc

Please sign in to comment.