hall-lab / svtools

Tools for processing and analyzing structural variants.
MIT License
149 stars 54 forks source link

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

Open jasonbhn opened 2 years ago

jasonbhn commented 2 years ago

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