Skip to content

Commit

Permalink
Merge pull request #31 from U-BDS/dev
Browse files Browse the repository at this point in the history
Closing issue #30 by exporting home in process
  • Loading branch information
lianov authored Aug 30, 2024
2 parents ddb0c28 + 9baef2a commit af8cf74
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions modules/local/isoquant.nf
Original file line number Diff line number Diff line change
Expand Up @@ -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 \\
Expand All @@ -46,6 +49,8 @@ process ISOQUANT {
"""
} else {
"""
export HOME=\$(pwd)
isoquant.py ${args} \\
--threads $task.cpus \\
--data_type nanopore \\
Expand Down
4 changes: 2 additions & 2 deletions nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit af8cf74

Please sign in to comment.