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

Add exit logic for modules that dont support conda #2657

Merged
merged 10 commits into from
Dec 14, 2022
5 changes: 5 additions & 0 deletions modules/nf-core/bases2fastq/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ process BASES2FASTQ {

container "elembio/bases2fastq:1.1.0"

// Exit if running this module with -profile conda / -profile mamba
if (workflow.profile.tokenize(',').intersect(['conda', 'mamba']).size() >= 1) {
exit 1, "BASES2FASTQ module does not support Conda. Please use Docker / Singularity / Podman instead."
}

input:
tuple val(meta), path(run_manifest), path(run_dir)

Expand Down
5 changes: 5 additions & 0 deletions modules/nf-core/bcl2fastq/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ process BCL2FASTQ {

container "nfcore/bcl2fastq:2.20.0.422"

// Exit if running this module with -profile conda / -profile mamba
if (workflow.profile.tokenize(',').intersect(['conda', 'mamba']).size() >= 1) {
exit 1, "BCL2FASTQ module does not support Conda. Please use Docker / Singularity / Podman instead."
}

input:
tuple val(meta), path(samplesheet), path(run_dir)

Expand Down
5 changes: 5 additions & 0 deletions modules/nf-core/bclconvert/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ process BCLCONVERT {

container "nfcore/bclconvert:4.0.3"

// Exit if running this module with -profile conda / -profile mamba
if (workflow.profile.tokenize(',').intersect(['conda', 'mamba']).size() >= 1) {
exit 1, "BCLCONVERT module does not support Conda. Please use Docker / Singularity / Podman instead."
}

input:
tuple val(meta), path(samplesheet), path(run_dir)

Expand Down
5 changes: 5 additions & 0 deletions modules/nf-core/cellranger/count/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ process CELLRANGER_COUNT {

container "nfcore/cellranger:7.0.0"

// Exit if running this module with -profile conda / -profile mamba
if (workflow.profile.tokenize(',').intersect(['conda', 'mamba']).size() >= 1) {
exit 1, "CELLRANGER_COUNT module does not support Conda. Please use Docker / Singularity / Podman instead."
}

input:
tuple val(meta), path(reads)
path reference
Expand Down
5 changes: 5 additions & 0 deletions modules/nf-core/cellranger/mkfastq/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ process CELLRANGER_MKFASTQ {

container "nfcore/cellrangermkfastq:7.0.0"

// Exit if running this module with -profile conda / -profile mamba
if (workflow.profile.tokenize(',').intersect(['conda', 'mamba']).size() >= 1) {
exit 1, "CELLRANGER_MKFASTQ module does not support Conda. Please use Docker / Singularity / Podman instead."
}

input:
path bcl
path csv
Expand Down
5 changes: 5 additions & 0 deletions modules/nf-core/cellranger/mkgtf/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ process CELLRANGER_MKGTF {

container "nfcore/cellranger:7.0.0"

// Exit if running this module with -profile conda / -profile mamba
if (workflow.profile.tokenize(',').intersect(['conda', 'mamba']).size() >= 1) {
exit 1, "CELLRANGER_MKGTF module does not support Conda. Please use Docker / Singularity / Podman instead."
}

input:
path gtf

Expand Down
5 changes: 5 additions & 0 deletions modules/nf-core/cellranger/mkref/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ process CELLRANGER_MKREF {

container "nfcore/cellranger:7.0.0"

// Exit if running this module with -profile conda / -profile mamba
if (workflow.profile.tokenize(',').intersect(['conda', 'mamba']).size() >= 1) {
exit 1, "CELLRANGER_MKREF module does not support Conda. Please use Docker / Singularity / Podman instead."
}

input:
path fasta
path gtf
Expand Down
5 changes: 5 additions & 0 deletions modules/nf-core/deepvariant/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ process DEEPVARIANT {

container "google/deepvariant:1.4.0"

// Exit if running this module with -profile conda / -profile mamba
if (workflow.profile.tokenize(',').intersect(['conda', 'mamba']).size() >= 1) {
exit 1, "DEEPVARIANT module does not support Conda. Please use Docker / Singularity / Podman instead."
}

input:
tuple val(meta), path(input), path(index), path(intervals)
path(fasta)
Expand Down
5 changes: 5 additions & 0 deletions modules/nf-core/fastk/fastk/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ process FASTK_FASTK {
// WARN: Version information not provided by tool on CLI. Please update version string below when bumping container versions.
container 'ghcr.io/nbisweden/fastk_genescopefk_merquryfk:1.2'

// Exit if running this module with -profile conda / -profile mamba
if (workflow.profile.tokenize(',').intersect(['conda', 'mamba']).size() >= 1) {
exit 1, "FASTK_FASTK module does not support Conda. Please use Docker / Singularity / Podman instead."
}

input:
tuple val(meta), path(reads)

Expand Down
5 changes: 5 additions & 0 deletions modules/nf-core/fastk/histex/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ process FASTK_HISTEX {
// WARN: Version information not provided by tool on CLI. Please update version string below when bumping container versions.
container 'ghcr.io/nbisweden/fastk_genescopefk_merquryfk:1.2'

// Exit if running this module with -profile conda / -profile mamba
if (workflow.profile.tokenize(',').intersect(['conda', 'mamba']).size() >= 1) {
exit 1, "FASTK_HISTEX module does not support Conda. Please use Docker / Singularity / Podman instead."
}

input:
tuple val(meta), path(histogram)

Expand Down
5 changes: 5 additions & 0 deletions modules/nf-core/fastk/merge/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ process FASTK_MERGE {
// WARN: Version information not provided by tool on CLI. Please update version string below when bumping container versions.
container 'ghcr.io/nbisweden/fastk_genescopefk_merquryfk:1.2'

// Exit if running this module with -profile conda / -profile mamba
if (workflow.profile.tokenize(',').intersect(['conda', 'mamba']).size() >= 1) {
exit 1, "FASTK_MERGE module does not support Conda. Please use Docker / Singularity / Podman instead."
}

input:
tuple val(meta), path(hist), path(ktab), path(prof)

Expand Down
5 changes: 5 additions & 0 deletions modules/nf-core/fcs/fcsadaptor/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ process FCS_FCSADAPTOR {
'https://ftp.ncbi.nlm.nih.gov/genomes/TOOLS/FCS/releases/0.2.3/fcs-adaptor.0.2.3.sif':
'ncbi/fcs-adaptor:0.2.3' }"

// Exit if running this module with -profile conda / -profile mamba
if (workflow.profile.tokenize(',').intersect(['conda', 'mamba']).size() >= 1) {
exit 1, "FCS_FCSADAPTOR module does not support Conda. Please use Docker / Singularity / Podman instead."
}

input:
tuple val(meta), path(assembly)

Expand Down
5 changes: 5 additions & 0 deletions modules/nf-core/fcs/fcsgx/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ process FCS_FCSGX {
'https://ftp.ncbi.nlm.nih.gov/genomes/TOOLS/FCS/releases/0.2.3/fcs-gx.0.2.3.sif':
'ncbi/fcs-gx:0.2.3' }"

// Exit if running this module with -profile conda / -profile mamba
if (workflow.profile.tokenize(',').intersect(['conda', 'mamba']).size() >= 1) {
exit 1, "FCS_FCSGX module does not support Conda. Please use Docker / Singularity / Podman instead."
}

input:
tuple val(meta), path(assembly)
path gxdb
Expand Down
5 changes: 5 additions & 0 deletions modules/nf-core/gatk4/cnnscorevariants/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ process GATK4_CNNSCOREVARIANTS {
//Conda is not supported at the moment: https://github.com/broadinstitute/gatk/issues/7811
container "broadinstitute/gatk:4.3.0.0" //Biocontainers is missing a package

// Exit if running this module with -profile conda / -profile mamba
if (workflow.profile.tokenize(',').intersect(['conda', 'mamba']).size() >= 1) {
exit 1, "GATK4_CNNSCOREVARIANTS module does not support Conda. Please use Docker / Singularity / Podman instead."
}

input:
tuple val(meta), path(vcf), path(tbi), path(aligned_input), path(intervals)
path fasta
Expand Down
5 changes: 5 additions & 0 deletions modules/nf-core/gatk4/determinegermlinecontigploidy/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ process GATK4_DETERMINEGERMLINECONTIGPLOIDY {

container "broadinstitute/gatk:4.3.0.0"

// Exit if running this module with -profile conda / -profile mamba
if (workflow.profile.tokenize(',').intersect(['conda', 'mamba']).size() >= 1) {
exit 1, "GATK4_DETERMINEGERMLINECONTIGPLOIDY module does not support Conda. Please use Docker / Singularity / Podman instead."
}

input:
tuple val(meta), path(counts), path(bed), path(exclude_beds)
path(contig_ploidy_table)
Expand Down
5 changes: 5 additions & 0 deletions modules/nf-core/genescopefk/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ process GENESCOPEFK {
// WARN: Version information not provided by tool on CLI. Please update version string below when bumping container versions.
container 'ghcr.io/nbisweden/fastk_genescopefk_merquryfk:1.2'

// Exit if running this module with -profile conda / -profile mamba
if (workflow.profile.tokenize(',').intersect(['conda', 'mamba']).size() >= 1) {
exit 1, "GENESCOPEFK module does not support Conda. Please use Docker / Singularity / Podman instead."
}

input:
tuple val(meta), path(fastk_histex_histogram)

Expand Down
5 changes: 5 additions & 0 deletions modules/nf-core/imputeme/vcftoprs/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ process IMPUTEME_VCFTOPRS {
'https://containers.biocontainers.pro/s3/SingImgsRepo/imputeme/vv1.0.7_cv1/imputeme_vv1.0.7_cv1.img' :
'biocontainers/imputeme:vv1.0.7_cv1' }"

// Exit if running this module with -profile conda / -profile mamba
if (workflow.profile.tokenize(',').intersect(['conda', 'mamba']).size() >= 1) {
exit 1, "IMPUTEME_VCFTOPRS module does not support Conda. Please use Docker / Singularity / Podman instead."
}

input:
tuple val(meta), path(vcf)

Expand Down
5 changes: 5 additions & 0 deletions modules/nf-core/merquryfk/katcomp/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ process MERQURYFK_KATCOMP {
// WARN: Version information not provided by tool on CLI. Please update version string below when bumping container versions.
container 'ghcr.io/nbisweden/fastk_genescopefk_merquryfk:1.2'

// Exit if running this module with -profile conda / -profile mamba
if (workflow.profile.tokenize(',').intersect(['conda', 'mamba']).size() >= 1) {
exit 1, "MERQURYFK_KATCOMP module does not support Conda. Please use Docker / Singularity / Podman instead."
}

input:
tuple val(meta), path(fastk1_hist), path(fastk1_ktab), path(fastk2_hist), path(fastk2_ktab)

Expand Down
5 changes: 5 additions & 0 deletions modules/nf-core/merquryfk/katgc/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ process MERQURYFK_KATGC {
// WARN: Version information not provided by tool on CLI. Please update version string below when bumping container versions.
container 'ghcr.io/nbisweden/fastk_genescopefk_merquryfk:1.2'

// Exit if running this module with -profile conda / -profile mamba
if (workflow.profile.tokenize(',').intersect(['conda', 'mamba']).size() >= 1) {
exit 1, "MERQURYFK_KATGC module does not support Conda. Please use Docker / Singularity / Podman instead."
}

input:
tuple val(meta), path(fastk_hist), path(fastk_ktab)

Expand Down
5 changes: 5 additions & 0 deletions modules/nf-core/merquryfk/merquryfk/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ process MERQURYFK_MERQURYFK {
// WARN: Version information not provided by tool on CLI. Please update version string below when bumping container versions.
container 'ghcr.io/nbisweden/fastk_genescopefk_merquryfk:1.2'

// Exit if running this module with -profile conda / -profile mamba
if (workflow.profile.tokenize(',').intersect(['conda', 'mamba']).size() >= 1) {
exit 1, "MERQURYFK_MERQURYFK module does not support Conda. Please use Docker / Singularity / Podman instead."
}

input:
tuple val(meta), path(fastk_hist), path(fastk_ktab), path(assembly)

Expand Down
5 changes: 5 additions & 0 deletions modules/nf-core/merquryfk/ploidyplot/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ process MERQURYFK_PLOIDYPLOT {
// WARN: Version information not provided by tool on CLI. Please update version string below when bumping container versions.
container 'ghcr.io/nbisweden/fastk_genescopefk_merquryfk:1.2'

// Exit if running this module with -profile conda / -profile mamba
if (workflow.profile.tokenize(',').intersect(['conda', 'mamba']).size() >= 1) {
exit 1, "MERQURYFK_PLOIDYPLOT module does not support Conda. Please use Docker / Singularity / Podman instead."
}

input:
tuple val(meta), path(fastk_hist), path(fastk_ktab)

Expand Down