Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Fixes #303 #311

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

dweemx
Copy link
Contributor

@dweemx dweemx commented Feb 15, 2021

No description provided.

Comment on lines +477 to +515
process MAKE_UNIQUE_FILENAME {

label 'compute_resources__minimal'

input:
tuple \
val(tag), \
path(f), \
val(stashedParams)
val(fileOutputSuffix)
val(toolName)
val(isParameterExplorationModeOn)

output:
tuple \
val(tag), \
path(outputFileName), \
val(stashedParams)

script:
outputFileName = getOutputFileName(
params,
tag,
f,
fileOutputSuffix,
isParameterExplorationModeOn,
stashedParams
)
/* avoid cases where the input and output files have identical names:
Move the input file to a unique name, then create a link to
the input file */
"""
mv $f tmp
if [ ! -f ${outputFileName} ]; then
ln -L tmp "${outputFileName}"
fi
"""
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't we discuss using the stageAs option from nextflow for this kind of issue? It seems redundant to use a link and all the moving when nextflow is able to do this. I know that some functions use the name of the original file to determine some information, but then it seems that maybe this could just be passed as an argument to those processes.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So you would remove this NXF process and use stageAs in the process where the output should be groupTubled ?

@cflerin cflerin added this to the 0.27.0 milestone Jun 29, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants