From 87fa2734592e4074ac64822054836815db2646db Mon Sep 17 00:00:00 2001 From: Lara Ianov Date: Wed, 28 Aug 2024 16:56:19 -0500 Subject: [PATCH 1/2] set custom home mount to isoquant --- modules/local/isoquant.nf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/local/isoquant.nf b/modules/local/isoquant.nf index 673bc3c..f215d0c 100644 --- a/modules/local/isoquant.nf +++ b/modules/local/isoquant.nf @@ -7,6 +7,9 @@ process ISOQUANT { 'https://depot.galaxyproject.org/singularity/isoquant:3.5.0--hdfd78af_0' : 'biocontainers/isoquant:3.5.0--hdfd78af_0' }" + // setting custom home mount (see issue #30) + containerOptions "--bind ${task.workDir}:/home" + input: tuple val(meta), path(bam), path(bai) tuple val(meta_gtf), path(gtf) From 9baef2ac66cf612e8c925d707cb22ad08ef433b0 Mon Sep 17 00:00:00 2001 From: Lara Ianov Date: Thu, 29 Aug 2024 16:12:41 -0500 Subject: [PATCH 2/2] swapped container option to exporting home in IsoQuant's process (issue #30) --- modules/local/isoquant.nf | 8 +++++--- nextflow.config | 4 ++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/modules/local/isoquant.nf b/modules/local/isoquant.nf index f215d0c..5317a4a 100644 --- a/modules/local/isoquant.nf +++ b/modules/local/isoquant.nf @@ -7,9 +7,6 @@ process ISOQUANT { 'https://depot.galaxyproject.org/singularity/isoquant:3.5.0--hdfd78af_0' : 'biocontainers/isoquant:3.5.0--hdfd78af_0' }" - // setting custom home mount (see issue #30) - containerOptions "--bind ${task.workDir}:/home" - input: tuple val(meta), path(bam), path(bai) tuple val(meta_gtf), path(gtf) @@ -29,8 +26,11 @@ process ISOQUANT { def args = task.ext.args ?: '' def prefix = task.ext.prefix ?: "${meta.id}" + // setting custom home via export (see issue #30) if ( !group_category?.trim() ){ """ + export HOME=\$(pwd) + isoquant.py ${args} \\ --threads $task.cpus \\ --datatype nanopore \\ @@ -49,6 +49,8 @@ process ISOQUANT { """ } else { """ + export HOME=\$(pwd) + isoquant.py ${args} \\ --threads $task.cpus \\ --data_type nanopore \\ diff --git a/nextflow.config b/nextflow.config index 0fa07f7..de5ba81 100644 --- a/nextflow.config +++ b/nextflow.config @@ -146,10 +146,10 @@ profiles { shifter.enabled = false charliecloud.enabled = false apptainer.enabled = false - docker.runOptions = '-u $(id -u):$(id -g) -e HOME=$(pwd)' + docker.runOptions = '-u $(id -u):$(id -g)' } arm { - docker.runOptions = '-u $(id -u):$(id -g) --platform=linux/amd64 -e HOME=$(pwd)' + docker.runOptions = '-u $(id -u):$(id -g) --platform=linux/amd64' } singularity { singularity.enabled = true