This repository has been archived by the owner on Jun 21, 2023. It is now read-only.
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.
Purpose/implementation Section
What scientific question is your analysis addressing?
In #964 (comment) @kgaonkar6 ran into some trouble with the CNV consensus workflow, and specifically the merge step. I confirmed the bug, and guessed that it might be due to the very long list of arguments to
cat
in that step of the workflow.What was your approach?
To address the error, I converted the
merge_all
step to use a python loop and append to the output file rather than trying to pass the long file list to the shell. This seemed to solve the problem. It is probably a bit less efficient, but definitely not anything noticeable in the workflow as a whole.Results did not change, except for a single small ordering change on one line (not sure why that happened, but the new order is actually in order, so 🤷🏼).
Directions for reviewers. Tell potential reviewers what kind of feedback you are soliciting.
Which areas should receive a particularly close look?
Confirm that this fixes the bug for others, not just me.
Is there anything that you want to discuss further?
If it works, I don't think so!