Skip to content

Commit 244f57e

Browse files
committed
fix bam issue
1 parent 5d0ce31 commit 244f57e

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

rust/bioscript-cli/src/report_observations.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,10 @@ fn deletion_copy_number_display(
127127
if !matches!(manifest.spec.kind, Some(bioscript_core::VariantKind::Deletion)) {
128128
return None;
129129
}
130-
if row.get("backend").map(String::as_str) != Some("cram") {
130+
if !matches!(
131+
row.get("backend").map(String::as_str),
132+
Some("cram" | "bam")
133+
) {
131134
return None;
132135
}
133136
if manifest.spec.reference.as_deref().unwrap_or_default().len() <= 1 {

rust/bioscript-wasm/src/report_helpers.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,10 @@ pub(super) fn deletion_copy_number_display(
435435
if !matches!(manifest.spec.kind, Some(VariantKind::Deletion)) {
436436
return None;
437437
}
438-
if row.get("backend").map(String::as_str) != Some("cram") {
438+
if !matches!(
439+
row.get("backend").map(String::as_str),
440+
Some("cram" | "bam")
441+
) {
439442
return None;
440443
}
441444
if manifest.spec.reference.as_deref().unwrap_or_default().len() <= 1 {

0 commit comments

Comments
 (0)