We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5b7ed16 + 5623e93 commit 073fe50Copy full SHA for 073fe50
src/main.rs
@@ -170,6 +170,11 @@ fn _main(cli_args: Vec<String>) {
170
tmp_bams.push(&c.out_bam_file);
171
}
172
173
+ if metrics.kept_reads == 0 {
174
+ error!("Zero alignments were kept. Does your BAM contain the cell barcodes and/or tag you chose?");
175
+ process::exit(2);
176
+ }
177
+
178
// just copy the temp file over
179
if cores == 1 {
180
fs::copy(tmp_bams[0], out_bam_file).unwrap();
@@ -426,7 +431,6 @@ mod tests {
426
431
let fh = fs::File::open(&out_file).unwrap();
427
432
let d = sha256_digest(fh).unwrap();
428
433
let d = HEXUPPER.encode(d.as_ref());
429
- println!("{}", d);
430
434
assert_eq!(d, "65061704E9C15BFC8FECF07D1DE527AF666E7623525262334C3FDC62F366A69E");
435
436
0 commit comments