Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(gprofiler2_gost): define the database archive for reproducibility #7450

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions modules/nf-core/gprofiler2/gost/templates/gprofiler2_gost.R
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ opt <- list(
domain_scope = 'annotated',
min_diff = 1,
round_digits = -1,
palette_name = 'Blues'
palette_name = 'Blues',
archive = 'gprofiler'
)

opt_types <- lapply(opt, class)
Expand Down Expand Up @@ -235,7 +236,9 @@ if (nrow(de.genes) > 0) {
} else if (!is.null(opt\$organism)) {

# Next, check if organism was provided. Get the GMT file from gprofiler and save both the full file as well as the filtered one to metadata
gmt_url <- paste0("https://biit.cs.ut.ee/gprofiler//static/gprofiler_full_", opt\$organism, ".ENSG.gmt")
base_url <- paste0("https://biit.cs.ut.ee/", opt\$archive)
gmt_url <- paste0(base_url, "//static/gprofiler_full_", opt\$organism, ".ENSG.gmt")
set_base_url(base_url)
tryCatch(
{
gmt_path <- paste0("gprofiler_full_", opt\$organism, ".ENSG.gmt")
Expand Down
3 changes: 2 additions & 1 deletion modules/nf-core/gprofiler2/gost/tests/main.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ nextflow_process {
((params.gprofiler2_token == null) ? '' : "--token \"${params.gprofiler2_token}\""),
((params.gprofiler2_organism == null) ? '' : "--organism \"${params.gprofiler2_organism}\""),
((params.gprofiler2_background_column == null) ? '' : "--background_column \"${params.gprofiler2_background_column}\""),
((params.gprofiler2_sources == null) ? '' : "--sources \"${params.gprofiler2_sources}\"")
((params.gprofiler2_sources == null) ? '' : "--sources \"${params.gprofiler2_sources}\""),
"--archive gprofiler_archive3/e111_eg58_p18"
].join(' ').trim()
}
process {
Expand Down
2 changes: 1 addition & 1 deletion modules/nf-core/gprofiler2/gost/tests/nextflow.config
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
process {
ext.args = params.module_args
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ process {
"--round_digits 4",
"--palette_name Blues",
"--de_id_column gene_id",
"--organism mmusculus"
"--organism mmusculus",
"--archive gprofiler_archive3/e111_eg58_p18"
].join(' ').trim()
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ process {
"--round_digits 4",
"--palette_name Blues",
"--de_id_column gene_id",
"--organism mmusculus"
"--organism mmusculus",
"--archive gprofiler_archive3/e111_eg58_p18"
].join(' ').trim()
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ process {
"--round_digits 4",
"--palette_name Blues",
"--de_id_column gene_id",
"--organism mmusculus"
"--organism mmusculus",
"--archive gprofiler_archive3/e111_eg58_p18"
].join(' ').trim()
}
}
Loading