From c80cec0677a276bee8e972ee924d1055a1cc5edd Mon Sep 17 00:00:00 2001 From: Jonathan Manning Date: Mon, 4 Dec 2023 16:28:07 +0000 Subject: [PATCH] Fix volcano plot legend --- assets/differentialabundance_report.Rmd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/differentialabundance_report.Rmd b/assets/differentialabundance_report.Rmd index 828ebe03..30b92f51 100644 --- a/assets/differentialabundance_report.Rmd +++ b/assets/differentialabundance_report.Rmd @@ -780,7 +780,7 @@ for (i in 1:nrow(contrasts)){ de_fc <- abs(full_de[[params$differential_fc_column]]) >= log2(params$differential_min_fold_change) - de_fc_label <- paste("abs(logFC) >=", params$differential_min_fold_change) + de_fc_label <- paste("abs(logFC) >=", log2(params$differential_min_fold_change)) de_pval <- full_de[[pval_column]] <= p_value_thresholds[[pvt]] de_pval_label <- paste(pvt, "<=", p_value_thresholds[[pvt]]) @@ -957,4 +957,4 @@ print( htmltools::tagList(datatable(versions_table, caption = "Software versions ```{r, echo=FALSE, results='asis'} htmltools::includeMarkdown(params$citations) -``` \ No newline at end of file +```