Skip to content
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

sv_classifier.py crash at calc_params if no del in training data. #321

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

Conversation

jasonbhn
Copy link

@jasonbhn jasonbhn commented May 2, 2022

Hi,
I was trying to modify sv-pipeline to be able to classify variant calls of a smaller cohort. calc_params would fail if deletions are not present in the naive Bayes training call set, contradicting the post-merge WDL script's logic. Edits are made so this could run classifications of svtypes other than deletions without crashing due to an empty deletion dataframe. Please review. Thanks
Bohan

svtools classify cannot handle cases where input vcf has no deletions. Added conditions to skip deletion length adjustment if no deletions is present.
updated sv_classifier.py to fit into sv-pipeline
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant