Skip to content

Commit

Permalink
prevent execution with conda
Browse files Browse the repository at this point in the history
  • Loading branch information
d4straub committed Mar 18, 2024
1 parent 77e03b1 commit 8575090
Show file tree
Hide file tree
Showing 13 changed files with 52 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/local/sidle_align.nf
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ process SIDLE_ALIGN {
task.ext.when == null || task.ext.when

script:
// Exit if running this module with -profile conda / -profile mamba
if (workflow.profile.tokenize(',').intersect(['conda', 'mamba']).size() >= 1) {
error "Sidle in QIIME2 does not support Conda. Please use Docker / Singularity / Podman instead."
}
def args = task.ext.args ?: ''
def prefix = task.ext.prefix ?: "${meta.region}"
def primerfw = "${meta.fw_primer}"
Expand Down
4 changes: 4 additions & 0 deletions modules/local/sidle_dbextract.nf
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ process SIDLE_DBEXTRACT {
task.ext.when == null || task.ext.when

script:
// Exit if running this module with -profile conda / -profile mamba
if (workflow.profile.tokenize(',').intersect(['conda', 'mamba']).size() >= 1) {
error "Sidle in QIIME2 does not support Conda. Please use Docker / Singularity / Podman instead."
}
def args = task.ext.args ?: ''
def prefix = task.ext.prefix ?: "${meta.region}"
def primerfw = "${meta.fw_primer}"
Expand Down
4 changes: 4 additions & 0 deletions modules/local/sidle_dbfilt.nf
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ process SIDLE_DBFILT {
task.ext.when == null || task.ext.when

script:
// Exit if running this module with -profile conda / -profile mamba
if (workflow.profile.tokenize(',').intersect(['conda', 'mamba']).size() >= 1) {
error "Sidle in QIIME2 does not support Conda. Please use Docker / Singularity / Podman instead."
}
def args = task.ext.args ?: ''
def args2 = task.ext.args2 ?: ''
"""
Expand Down
4 changes: 4 additions & 0 deletions modules/local/sidle_dbrecon.nf
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ process SIDLE_DBRECON {
task.ext.when == null || task.ext.when

script:
// Exit if running this module with -profile conda / -profile mamba
if (workflow.profile.tokenize(',').intersect(['conda', 'mamba']).size() >= 1) {
error "Sidle in QIIME2 does not support Conda. Please use Docker / Singularity / Podman instead."
}
def args = task.ext.args ?: ''
def db_input = ""
// sort the input so that the regions are sorted by sequence
Expand Down
4 changes: 4 additions & 0 deletions modules/local/sidle_filttax.nf
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ process SIDLE_FILTTAX {
task.ext.when == null || task.ext.when

script:
// Exit if running this module with -profile conda / -profile mamba
if (workflow.profile.tokenize(',').intersect(['conda', 'mamba']).size() >= 1) {
error "Sidle in QIIME2 does not support Conda. Please use Docker / Singularity / Podman instead."
}
"""
#!/usr/bin/env Rscript
Expand Down
4 changes: 4 additions & 0 deletions modules/local/sidle_in.nf
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ process SIDLE_IN {
task.ext.when == null || task.ext.when

script:
// Exit if running this module with -profile conda / -profile mamba
if (workflow.profile.tokenize(',').intersect(['conda', 'mamba']).size() >= 1) {
error "Sidle in QIIME2 does not support Conda. Please use Docker / Singularity / Podman instead."
}
def args = task.ext.args ?: ''
def prefix = task.ext.prefix ?: "${meta.region}"
"""
Expand Down
4 changes: 4 additions & 0 deletions modules/local/sidle_indb.nf
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ process SIDLE_INDB {
task.ext.when == null || task.ext.when

script:
// Exit if running this module with -profile conda / -profile mamba
if (workflow.profile.tokenize(',').intersect(['conda', 'mamba']).size() >= 1) {
error "Sidle in QIIME2 does not support Conda. Please use Docker / Singularity / Podman instead."
}
"""
export XDG_CONFIG_HOME="./xdgconfig"
export MPLCONFIGDIR="./mplconfigdir"
Expand Down
4 changes: 4 additions & 0 deletions modules/local/sidle_indbaligned.nf
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ process SIDLE_INDBALIGNED {
task.ext.when == null || task.ext.when

script:
// Exit if running this module with -profile conda / -profile mamba
if (workflow.profile.tokenize(',').intersect(['conda', 'mamba']).size() >= 1) {
error "Sidle in QIIME2 does not support Conda. Please use Docker / Singularity / Podman instead."
}
def args = task.ext.args ?: ''
"""
export XDG_CONFIG_HOME="./xdgconfig"
Expand Down
4 changes: 4 additions & 0 deletions modules/local/sidle_seqrecon.nf
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ process SIDLE_SEQRECON {
task.ext.when == null || task.ext.when

script:
// Exit if running this module with -profile conda / -profile mamba
if (workflow.profile.tokenize(',').intersect(['conda', 'mamba']).size() >= 1) {
error "Sidle in QIIME2 does not support Conda. Please use Docker / Singularity / Podman instead."
}
"""
#https://q2-sidle.readthedocs.io/en/latest/reconstruction.html#reconstructing-the-phylogenetic-tree
#https://forum.qiime2.org/t/sidle-tutorial-missing-aligned-sequence-file/20604/4 for db_aligned_sequences
Expand Down
4 changes: 4 additions & 0 deletions modules/local/sidle_tablerecon.nf
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ process SIDLE_TABLERECON {
task.ext.when == null || task.ext.when

script:
// Exit if running this module with -profile conda / -profile mamba
if (workflow.profile.tokenize(',').intersect(['conda', 'mamba']).size() >= 1) {
error "Sidle in QIIME2 does not support Conda. Please use Docker / Singularity / Podman instead."
}
def args = task.ext.args ?: ''
def region_input = ""
// sort the input so that the regions are sorted by sequence
Expand Down
4 changes: 4 additions & 0 deletions modules/local/sidle_taxrecon.nf
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ process SIDLE_TAXRECON {
task.ext.when == null || task.ext.when

script:
// Exit if running this module with -profile conda / -profile mamba
if (workflow.profile.tokenize(',').intersect(['conda', 'mamba']).size() >= 1) {
error "Sidle in QIIME2 does not support Conda. Please use Docker / Singularity / Podman instead."
}
def args = task.ext.args ?: ''
"""
#https://q2-sidle.readthedocs.io/en/latest/reconstruction.html#taxonomic-reconstruction
Expand Down
4 changes: 4 additions & 0 deletions modules/local/sidle_treerecon.nf
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ process SIDLE_TREERECON {
task.ext.when == null || task.ext.when

script:
// Exit if running this module with -profile conda / -profile mamba
if (workflow.profile.tokenize(',').intersect(['conda', 'mamba']).size() >= 1) {
error "Sidle in QIIME2 does not support Conda. Please use Docker / Singularity / Podman instead."
}
"""
# https://q2-sidle.readthedocs.io/en/latest/reconstruction.html#reconstructing-the-phylogenetic-tree
# required: SEPP file https://forum.qiime2.org/t/sidle-tutorial-missing-aligned-sequence-file/20604/8
Expand Down
4 changes: 4 additions & 0 deletions modules/local/sidle_trim.nf
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ process SIDLE_TRIM {
task.ext.when == null || task.ext.when

script:
// Exit if running this module with -profile conda / -profile mamba
if (workflow.profile.tokenize(',').intersect(['conda', 'mamba']).size() >= 1) {
error "Sidle in QIIME2 does not support Conda. Please use Docker / Singularity / Podman instead."
}
def args = task.ext.args ?: ''
def prefix = task.ext.prefix ?: "${meta.region}"
def primerfw = "${meta.fw_primer}"
Expand Down

0 comments on commit 8575090

Please sign in to comment.