Skip to content

Commit

Permalink
specified subworkflow:process name inside modules.config
Browse files Browse the repository at this point in the history
  • Loading branch information
suzannejin committed Oct 22, 2024
1 parent 7560a55 commit f08aa0b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
5 changes: 2 additions & 3 deletions conf/modules.config
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ process {
].join(' ').trim() }
}

withName: GPROFILER2_GOST {
withName: 'NFCORE_DIFFERENTIALABUNDANCE:DIFFERENTIALABUNDANCE:GPROFILER2_GOST' {
publishDir = [
[
path: { "${params.outdir}/tables/gprofiler2/${meta.id}/" },
Expand Down Expand Up @@ -581,8 +581,7 @@ process {
]
}

// TODO name this based on the subworkflow:process
withName: GPROFILER2_GOST_EXPERIMENTAL {
withName: 'NFCORE_DIFFERENTIALABUNDANCE:DIFFERENTIALABUNDANCE:EXPERIMENTAL:ENRICHMENT:GPROFILER2_GOST' {
tag = { [
"$meta.id",
(meta.contrast ? "$meta.contrast" : ''),
Expand Down
4 changes: 2 additions & 2 deletions subworkflows/local/enrichment/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//
include { MYGENE } from "../../../modules/nf-core/mygene/main.nf"
include { PROPR_GREA as GREA } from "../../../modules/local/propr/grea/main.nf"
include { GPROFILER2_GOST as GPROFILER2_GOST_EXPERIMENTAL } from "../../../modules/nf-core/gprofiler2/gost/main.nf"
include { GPROFILER2_GOST } from "../../../modules/nf-core/gprofiler2/gost/main.nf"

workflow ENRICHMENT {
take:
Expand Down Expand Up @@ -70,7 +70,7 @@ workflow ENRICHMENT {
}
.set{ ch_enrichment_gprofiler2 }

GPROFILER2_GOST_EXPERIMENTAL(
GPROFILER2_GOST(
ch_enrichment_gprofiler2.de,
ch_enrichment_gprofiler2.gmt,
ch_enrichment_gprofiler2.background
Expand Down
2 changes: 2 additions & 0 deletions workflows/differentialabundance.nf
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,8 @@ workflow DIFFERENTIALABUNDANCE {
ch_processed_matrices = ch_norm
.map{ it.tail() }
.first()

// TODO the experimental branch should be independent from this file
} else if (params.study_type == 'experimental') {

// Convert the samplesheet.csv in a channel with the proper format
Expand Down

0 comments on commit f08aa0b

Please sign in to comment.