Skip to content

Commit

Permalink
Add mock config for container detection.
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthiasZepper committed Jun 29, 2023
1 parent fd3f641 commit cdf620e
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions tests/data/mock_config_containers/nextflow.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@


// example from methylseq 1.0
params.container = 'nfcore/methylseq:1.0'

// example from methylseq 1.4 [Mercury Rattlesnake]
process.container = 'nfcore/methylseq:1.4'

process {

// example from Sarek 2.5

withName:Snpeff {
container = {(params.annotation_cache && params.snpEff_cache) ? 'nfcore/sarek:dev' : "nfcore/sareksnpeff:dev.${params.genome}"}
errorStrategy = {task.exitStatus == 143 ? 'retry' : 'ignore'}
}
withLabel:VEP {
container = {(params.annotation_cache && params.vep_cache) ? 'nfcore/sarek:dev' : "nfcore/sarekvep:dev.${params.genome}"}
errorStrategy = {task.exitStatus == 143 ? 'retry' : 'ignore'}
}

// example from differentialabundance 1.2.0

withName: RMARKDOWNNOTEBOOK {
conda = "bioconda::r-shinyngs=1.7.1"
container = { "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ? 'https://depot.galaxyproject.org/singularity/r-shinyngs:1.7.1--r42hdfd78af_1':'quay.io/biocontainers/r-shinyngs:1.7.1--r42hdfd78af_1' }" }
}

}

0 comments on commit cdf620e

Please sign in to comment.