fulcrumgenomics / fqtk

Fast FASTQ sample demultiplexing in Rust.
MIT License
54 stars 1 forks source link

Better error when the sample barcode lengths in the meta do not match the barcode lengths in the read structure #31

Open nh13 opened 1 year ago

nh13 commented 1 year ago
[2023-06-26T21:00:03Z INFO  fqtk::commands::demux] Created sample and unmatched writers.
thread 'main' panicked at 'assertion failed: `(left == right)`
  left: `40`,
 right: `60`: observed_bases: 40, expected_bases: 60', src/lib/barcode_matching.rs:74:9
brendes commented 6 months ago

By "better error" do you mean simply make it use plainer/more obvious language for the end user, or something more?

nh13 commented 6 months ago

Exactly, provide an error message and perhaps even suggestion that does not require inspecting the code but provides something actionable to the end-user.