Skip to content

Commit 87efd6f

Browse files
committed
fix gprofiler links
1 parent 6a08e27 commit 87efd6f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

assets/differentialabundance_report.Rmd

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1025,10 +1025,11 @@ if (!is.null(params$functional_method)){
10251025
ifelse(params$gprofiler2_significant, paste0(" Enrichment was only considered if significant, i.e. adjusted p-value <= ", params$gprofiler2_max_qval, "."), "Enrichment was also considered if not significant."), "\n"))
10261026
10271027
# Make sure to grab only non-empty files
1028-
for (name in differential_names) {
1028+
for (i in seq_along(differential_names)) {
1029+
name <- differential_names[i]
10291030
cat(paste0("\n##### ", name, "\n"))
10301031
1031-
table <- paste0(name, ".gprofiler2.all_enriched_pathways.tsv")
1032+
table <- paste0(contrasts$id[i], ".gprofiler2.all_enriched_pathways.tsv")
10321033
table_path <- file.path(params$input_dir, table)
10331034
if (!file.exists(table_path) || file.size(table_path) == 0){
10341035
cat(paste0("No ", ifelse(params$gprofiler2_significant, "significantly", ""), " enriched pathways were found for this contrast."))

0 commit comments

Comments
 (0)