Skip to content

Commit

Permalink
adding params in config
Browse files Browse the repository at this point in the history
  • Loading branch information
Joon-Klaps committed Oct 30, 2024
1 parent db70200 commit 34dc6e5
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 3 deletions.
6 changes: 6 additions & 0 deletions nf_core/pipeline-template/conf/test.config
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,10 @@ params {
// Genome references
genome = 'R64-1-1'
{%- endif %}

{% if downstream_samplesheets -%}
// Downstream samplesheets
generate_downstream_samplesheets = true
generate_pipeline_samplesheets = 'rnaseq'
{%- endif %}
}
6 changes: 6 additions & 0 deletions nf_core/pipeline-template/conf/test_full.config
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,10 @@ params {
// Fasta references
fasta = params.pipelines_testdata_base_path + 'viralrecon/genome/NC_045512.2/GCF_009858895.2_ASM985889v3_genomic.200409.fna.gz'
{%- endif %}

{% if downstream_samplesheets -%}
// Downstream samplesheets
generate_downstream_samplesheets = true
generate_pipeline_samplesheets = 'rnaseq'
{%- endif %}
}
7 changes: 7 additions & 0 deletions nf_core/pipeline-template/nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ params {
{% if citations %}multiqc_methods_description = null{% endif %}
{%- endif %}

{% if downstream_samplesheet -%}
// Downstream samplesheet generation
generate_downstream_samplesheets = false
generate_pipeline_samplesheets = null
generate_pipeline_samplesheets_format = 'csv'
{%- endif %}

// Boilerplate options
outdir = null
{% if modules %}publish_dir_mode = 'copy'{% endif %}
Expand Down
8 changes: 5 additions & 3 deletions nf_core/pipeline-template/workflows/pipeline.nf
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,11 @@ workflow {{ short_name|upper }} {
//
// SUBWORKFLOW: Generate downstream samplesheets
//
GENERATE_DOWNSTREAM_SAMPLESHEETS(
ch_samplesheet
)
if (params.generate_downstream_samplesheets) {
GENERATE_DOWNSTREAM_SAMPLESHEETS(
ch_samplesheet
)
}
{% endif %}

//
Expand Down

0 comments on commit 34dc6e5

Please sign in to comment.