Skip to content

Commit

Permalink
conda-safe containers, assuming nextflow pulls from docker.io happily
Browse files Browse the repository at this point in the history
  • Loading branch information
blex-max committed Nov 6, 2024
1 parent 1fc5d7a commit 26c30f3
Show file tree
Hide file tree
Showing 12 changed files with 11 additions and 204 deletions.
68 changes: 0 additions & 68 deletions modules/local/crispresso2/functions.nf

This file was deleted.

41 changes: 0 additions & 41 deletions modules/local/crispresso2/main.nf

This file was deleted.

49 changes: 0 additions & 49 deletions modules/local/crispresso2/meta.yml

This file was deleted.

7 changes: 2 additions & 5 deletions modules/local/cutadapt/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,8 @@ process CUTADAPT {
saveAs: { filename -> saveFiles(filename:filename, options:params.options, publish_dir:getSoftwareName(task.process), meta:meta, publish_by_meta:['id']) }

conda (params.enable_conda ? 'bioconda::cutadapt=4.4' : null)
if (workflow.containerEngine == 'singularity' && !params.singularity_pull_docker_container) {
container 'https://depot.galaxyproject.org/singularity/cutadapt:4.4--py39hf95cd2a_1'
} else {
container 'quay.io/biocontainers/cutadapt:4.4--py39hf95cd2a_1'
}
container 'quay.io/biocontainers/cutadapt:4.4--py39hf95cd2a_1'


input:
tuple val(meta), path(reads)
Expand Down
6 changes: 1 addition & 5 deletions modules/local/flash2/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,7 @@ process FLASH2 {
mode: params.publish_dir_mode,
saveAs: { filename -> saveFiles(filename:filename, options:params.options, publish_dir:getSoftwareName(task.process), meta:meta, publish_by_meta:['id']) } conda (params.enable_conda ? "bioconda::flash=2.2.00" : null)

if (workflow.containerEngine == 'singularity' && !params.singularity_pull_docker_container) {
container "https://depot.galaxyproject.org/singularity/flash2:2.2.00--h5bf99c6_3"
} else {
container "quay.io/biocontainers/flash2:2.2.00--h5bf99c6_3"
}
container "quay.io/biocontainers/flash2:2.2.00--h5bf99c6_3"

input:
tuple val(meta), path(reads)
Expand Down
6 changes: 1 addition & 5 deletions modules/local/pyquest/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,7 @@ process PYQUEST {

// Keep for when container is public
/*
if (workflow.containerEngine == 'singularity' && !params.singularity_pull_docker_container) {
container "https://depot.galaxyproject.org/singularity/flash2:2.2.00--h5bf99c6_3"
} else {
container "quay.io/biocontainers/flash2:2.2.00--h5bf99c6_3"
}
container "quay.io/biocontainers/flash2:2.2.00--h5bf99c6_3"
*/
container "quay.io/wtsicgp/pyquest:1.1.0"

Expand Down
8 changes: 2 additions & 6 deletions modules/local/pyquest_library_converter/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,8 @@ process TRANSFORM_LIBRARY_FOR_PYQUEST {
mode: params.publish_dir_mode,
saveAs: { filename -> saveFiles(filename:filename, options:params.options, publish_dir:'pyquest', meta:meta, publish_by_meta:['id']) } conda (params.enable_conda ? null : null)

conda (params.enable_conda ? "conda-forge::python=3.8.3" : null)
if (workflow.containerEngine == 'singularity' && !params.singularity_pull_docker_container) {
container "https://depot.galaxyproject.org/singularity/python:3.8.3"
} else {
container "quay.io/biocontainers/python:3.8.3"
}
conda (params.enable_conda ? "conda-forge::python=3.12.7" : null)
container "docker.io/python:3.12.7-alpine3.20"

input:
path(oligo_library)
Expand Down
4 changes: 1 addition & 3 deletions modules/local/samtools/bam2fq/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ process SAMTOOLS_BAM2FQ {
label 'process_low'

conda (params.enable_conda ? "bioconda::samtools=1.15" : null)
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
'https://depot.galaxyproject.org/singularity/samtools:1.15--h1170115_1' :
'quay.io/biocontainers/samtools:1.15--h1170115_1' }"
container 'quay.io/biocontainers/samtools:1.15--h1170115_1'

input:
tuple val(meta), path(inputbam)
Expand Down
7 changes: 1 addition & 6 deletions modules/local/seqkit_seq/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,7 @@ process SEQKIT_SEQ {
saveAs: { filename -> saveFiles(filename:filename, options:params.options, publish_dir:getSoftwareName(task.process)+'_seq', meta:meta, publish_by_meta:['id']) }

conda (params.enable_conda ? "bioconda::seqkit=0.15.0" : null)

if (workflow.containerEngine == 'singularity' && !params.singularity_pull_docker_container) {
container "https://depot.galaxyproject.org/singularity/seqkit:0.15.0--0"
} else {
container "quay.io/biocontainers/seqkit:0.15.0--0"
}
container "quay.io/biocontainers/seqkit:0.15.0--0"

input:
tuple val(meta), path(reads)
Expand Down
7 changes: 1 addition & 6 deletions modules/local/seqkit_stats/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,7 @@ process SEQKIT_STATS {
saveAs: { filename -> saveFiles(filename:filename, options:params.options, publish_dir:getSoftwareName(task.process)+'_stats', meta:meta, publish_by_meta:['id']) }

conda (params.enable_conda ? "bioconda::seqkit=0.15.0" : null)

if (workflow.containerEngine == 'singularity' && !params.singularity_pull_docker_container) {
container "https://depot.galaxyproject.org/singularity/seqkit:0.15.0--0"
} else {
container "quay.io/biocontainers/seqkit:0.15.0--0"
}
container "quay.io/biocontainers/seqkit:0.15.0--0"

input:
tuple val(meta), path(reads)
Expand Down
6 changes: 1 addition & 5 deletions modules/local/seqprep/adapter_trimming/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,7 @@ process SEQPREP {
mode: params.publish_dir_mode,
saveAs: { filename -> saveFiles(filename:filename, options:params.options, publish_dir:getSoftwareName(task.process), meta:meta, publish_by_meta:['id']) } conda (params.enable_conda ? "bioconda::seqprep=1.3.2" : null)

if (workflow.containerEngine == 'singularity' && !params.singularity_pull_docker_container) {
container "https://depot.galaxyproject.org/singularity/seqprep:1.3.2--h5bf99c6_5"
} else {
container "quay.io/biocontainers/seqprep:1.3.2--h5bf99c6_5"
}
container "quay.io/biocontainers/seqprep:1.3.2--h5bf99c6_5"

input:
tuple val(meta), path(reads)
Expand Down
6 changes: 1 addition & 5 deletions modules/local/seqprep/read_merging/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,7 @@ process SEQPREP {
mode: params.publish_dir_mode,
saveAs: { filename -> saveFiles(filename:filename, options:params.options, publish_dir:getSoftwareName(task.process), meta:meta, publish_by_meta:['id']) } conda (params.enable_conda ? "bioconda::seqprep=1.3.2" : null)

if (workflow.containerEngine == 'singularity' && !params.singularity_pull_docker_container) {
container "https://depot.galaxyproject.org/singularity/seqprep:1.3.2--h5bf99c6_5"
} else {
container "quay.io/biocontainers/seqprep:1.3.2--h5bf99c6_5"
}
container "quay.io/biocontainers/seqprep:1.3.2--h5bf99c6_5"

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

0 comments on commit 26c30f3

Please sign in to comment.