Closed jaclew closed 9 months ago
I added a commit with input-checking of SNPs. It checks if there are multiple SNPs reported at the same position. When working with a workflow that automatically discovers novel CanSNPs, I sometimes had a SNP-candidates reported by two (or more) subclades which caused the program to hang (multiprocessing stalled at .join() for CanSNPer2.py in function find_snps_multiproc). Obviously, such SNPs are not desired. Still, it is helpful if CanSNPer2 can tell when an input is not compatible.
I made a database with added custom SNPs that were not called as expected. I identified the bug to be due to a presumably unintented break in the loop that iterates SNPs in each alignment.