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

Fix CNV conensus call workflow #984

Merged

Conversation

jashapiro
Copy link
Member

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!

@jashapiro jashapiro requested a review from kgaonkar6 April 5, 2021 15:00
Copy link
Collaborator

@kgaonkar6 kgaonkar6 left a comment

Choose a reason for hiding this comment

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

Worked for me, thanks!

@jashapiro jashapiro merged commit 6bdd22b into AlexsLemonade:master Apr 5, 2021
@jashapiro jashapiro deleted the jashapiro/consensus-shell-fix branch April 5, 2021 19:32
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.

2 participants