Skip to content

Commit 38a70b3

Browse files
Fix snapshots
1 parent 7b974eb commit 38a70b3

File tree

3 files changed

+8
-18
lines changed

3 files changed

+8
-18
lines changed

assets/differentialabundance_report.qmd

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ library(yaml)
3939
library(shinyngs)
4040
library(plotly)
4141
library(DT)
42-
library(ggplot2)
4342
```
4443

4544
<!-- Define some functions -->
@@ -875,7 +874,7 @@ cat(differential_summary_string)
875874
876875
# Display all warnings related to number of rows
877876
if (length(warnings_list) > 0) {
878-
for (warning in warnings_list) cat(warning)
877+
for (warning in warnings_list) { cat(warning) }
879878
}
880879
881880
for (i in 1:nrow(contrasts)){
@@ -895,11 +894,7 @@ for (i in 1:nrow(contrasts)){
895894
full_de <- differential_results[[i]]
896895
full_de <- subset(full_de, (! is.na(full_de[[params$meta$params$differential_fc_column]])) & (! is.na(full_de[[params$meta$params$differential_qval_colum]])) )
897896
898-
up_tbl <- sig_differential[[pvt]][[i]][["up"]]
899-
if (!is.null(up_tbl) && nrow(up_tbl) > 0) {
900-
up_tbl$Direction <- "Up"
901-
parts[["Up"]] <- up_tbl
902-
}
897+
# We'll color by whether features are differential according to supplied thresholds
903898
904899
p_value_types <- list(Adjusted = params$meta$params$differential_qval_column, Unadjusted = params$meta$params$differential_pval_column)
905900
p_value_thresholds <- list(Adjusted = params$meta$params$differential_max_qval, Unadjusted = params$meta$params$differential_max_pval)
@@ -953,11 +948,8 @@ for (i in 1:nrow(contrasts)){
953948
cat(paste0("<i>", zero_p, " feature", ifelse(zero_p>1, "s are", " is"), " not shown because of p value = 0; please refer to the results tables.</i><br><br>"))
954949
}
955950
956-
# Put Direction first, prettify col names, then optional global rounding
957-
first_cols <- c("Direction", setdiff(colnames(combined), "Direction"))
958-
combined <- combined[, first_cols, drop = FALSE]
959-
colnames(combined) <- prettifyVariablename(colnames(combined))
960-
combined <- round_dataframe_columns(combined, digits = params$round_digits)
951+
p <- do.call(plotly_scatterplot, plot_args) %>%
952+
layout(xaxis = list(range=list(-max_fc, max_fc)))
961953
962954
print(htmltools::tagList(p))
963955
cat("\n\n")
@@ -996,8 +988,10 @@ for (i in 1:nrow(contrasts)){
996988
} else {
997989
cat("Column 'Gene biotype' does not exist. Skipping plot.\n")
998990
}
999-
} else {
1000-
cat("No significantly differential genes in either direction.\n\n")
991+
}else{
992+
cat(paste0("No significantly differential '", dir, "' genes.\n\n"))
993+
}
994+
}
1001995
}
1002996
cat(":::")
1003997
}

tests/default.nf.test.snap

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,6 @@
196196
"meta": {
197197
"nf-test": "0.9.2",
198198
"nextflow": "25.04.7"
199-
"nextflow": "25.04.7"
200199
},
201200
"timestamp": "2025-10-07T00:31:22.619820413"
202201
},
@@ -397,7 +396,6 @@
397396
"meta": {
398397
"nf-test": "0.9.2",
399398
"nextflow": "25.04.7"
400-
"nextflow": "25.04.7"
401399
},
402400
"timestamp": "2025-10-07T00:29:07.200586401"
403401
},

tests/test_maxquant.nf.test.snap

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,6 @@
134134
"meta": {
135135
"nf-test": "0.9.2",
136136
"nextflow": "25.04.7"
137-
"nextflow": "25.04.7"
138137
},
139138
"timestamp": "2025-10-03T11:22:52.89133229"
140139
},
@@ -273,7 +272,6 @@
273272
"meta": {
274273
"nf-test": "0.9.2",
275274
"nextflow": "25.04.7"
276-
"nextflow": "25.04.7"
277275
},
278276
"timestamp": "2025-10-03T11:26:23.319716354"
279277
}

0 commit comments

Comments
 (0)