diff --git a/modules/local/isoquant.nf b/modules/local/isoquant.nf index 673bc3c..5317a4a 100644 --- a/modules/local/isoquant.nf +++ b/modules/local/isoquant.nf @@ -26,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 \\ @@ -46,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