Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This branch was created to fix a bug in the pipeline, that only occurred on resubmissions of the same job, if there was a global variable that was reassigned to a new value in the first task attempt. For example, in https://github.com/TARGENE/targene-pipeline/blob/main/modules/confounders.nf#L19-L20 :
When this process runs the first time, it executes this line and reassigns the value of qc_file from the value in the input channel (which is a file) to the outcome of this logic (with is a string). Therefore when it retries the process, the value of the variable qc_file is no longer a file, but a string. The task fails to resubmit because .getName() cannot execute on a string.
This happened in filterBED as well as some processes in the extract_traits.nf modules. Please see the referenced issue for clarification.