Skip to content

Commit

Permalink
stop occurrence of empty allelic plots
Browse files Browse the repository at this point in the history
  • Loading branch information
sigven committed Oct 21, 2024
1 parent 70c9e82 commit 834f095
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ bslib::page_fillable(

```{r prep_vaf_plot}
#| echo: false
#| eval: !expr as.logical(pcg_report$settings$conf$somatic_snv$allelic_support$tumor_af_tag == "_NA_") == FALSE
#| eval: !expr as.logical(pcg_report$settings$conf$somatic_snv$allelic_support$tumor_af_tag == "_NA_") == FALSE & as.logical(any(is.na(pcg_report$content$snv_indel$callset$variant$VAF_TUMOR))) == FALSE
### VAF plot
vaf_dist_tumor <- pcgrr::af_distribution(
Expand Down Expand Up @@ -205,11 +205,10 @@ vaf_plot_plotly$x$layout$legend$title$text <- ""
```

<br>

```{r vaf_plot}
#| echo: false
#| eval: !expr as.logical(pcg_report$settings$conf$somatic_snv$allelic_support$tumor_af_tag == "_NA_") == FALSE
#| eval: !expr as.logical(pcg_report$settings$conf$somatic_snv$allelic_support$tumor_af_tag == "_NA_") == FALSE & as.logical(any(is.na(pcg_report$content$snv_indel$callset$variant$VAF_TUMOR))) == FALSE
bslib::card(
height = "330px",
Expand Down

0 comments on commit 834f095

Please sign in to comment.