mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-22 11:08:17 +00:00
Fix DeepARG depenency issue with singularity containers (#1397)
* fix: remove left-over unnecessary code * Adds --fakeroot option for singularity usage with DeepARG as workaround for broken conda dependency * Update modules/deeparg/downloaddata/main.nf Co-authored-by: Moritz E. Beber <midnighter@posteo.net> * Update modules/deeparg/predict/main.nf Co-authored-by: Moritz E. Beber <midnighter@posteo.net> * Apply suggestions from code review * Update main.nf * Update main.nf * Update main.nf * Update main.nf * Go back to original logic Co-authored-by: Moritz E. Beber <midnighter@posteo.net>
This commit is contained in:
parent
df60a58426
commit
f469045a95
2 changed files with 11 additions and 0 deletions
|
@ -7,6 +7,12 @@ process DEEPARG_DOWNLOADDATA {
|
|||
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
||||
'https://depot.galaxyproject.org/singularity/deeparg:1.0.2--pyhdfd78af_1' :
|
||||
'quay.io/biocontainers/deeparg:1.0.2--pyhdfd78af_1' }"
|
||||
/*
|
||||
We have to force singularity to run with --fakeroot to allow reading of a problematic file with borked read-write permissions in an upstream dependency (theanos).
|
||||
This flag may not be available on all systems and may be considered a security problem. so please document and /or warn for this in your pipeline!
|
||||
*/
|
||||
containerOptions { "${workflow.containerEngine}" == 'singularity' ? '--fakeroot' : '' }
|
||||
|
||||
|
||||
input:
|
||||
|
||||
|
|
|
@ -8,6 +8,11 @@ process DEEPARG_PREDICT {
|
|||
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
||||
'https://depot.galaxyproject.org/singularity//deeparg:1.0.2--pyhdfd78af_1' :
|
||||
'quay.io/biocontainers/deeparg:1.0.2--pyhdfd78af_1' }"
|
||||
/*
|
||||
We have to force singularity to run with --fakeroot to allow reading of a problematic file with borked read-write permissions in an upstream dependency (theanos).
|
||||
This flag may not be available on all systems and may be considered a security problem. so please document and /or warn for this in your pipeline!
|
||||
*/
|
||||
containerOptions { "${workflow.containerEngine}" == 'singularity' ? '--fakeroot' : '' }
|
||||
|
||||
input:
|
||||
tuple val(meta), path(fasta), val(model)
|
||||
|
|
Loading…
Reference in a new issue