-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chewbbaca batch input #2
Chewbbaca batch input #2
Conversation
modules/chewbbaca/main.nf
Outdated
path input | ||
|
||
output: | ||
path("${output}") | ||
tuple val(sampleName), path("${output}") | ||
|
||
script: | ||
id = "${input.simpleName}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need line 86? Which seems to have the wrong name anyways (simpleName)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
simpleName is a nextflow function that strips extension and filepath base. Regardless, it should be removed as it is old code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The file locking is not global on a multi-node cluster and would only work on a single machine, unless localTempDir is supposed to be a global temp dir.
modules/chewbbaca/main.nf
Outdated
trainingFile = trainingFile ? "--ptf ${trainingFile}" : "" | ||
flockfile = file(params.localTempDir + '/chewbbaca.lock') | ||
flocking = flockfile.exists() ? "flock -e $flockfile \\" : "" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only a local lock on a single node? Would fail with multiple nodes I think
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not think the file lock works as supposed. Have a look into that.
The following changes were made: