harrispopgen / mutyper

Ancestral k-mer mutation types for SNP data
https://harrispopgen.github.io/mutyper/
MIT License
7 stars 3 forks source link

issue 36: dealing with missing genotypes with mutyper variants #37

Closed Lukez-pi closed 1 year ago

Lukez-pi commented 1 year ago

Some major changes that I have made: Test cases: • Added a unit test for variants alongside a new VCF file that tests for missing genotypes specifically for the variants command (strict + non-strict) Also modified the variants implementation in cli.py: • Used print statements to create new VCF file instead of VCFWriter to allow stdout be captured and unit-tested • Fixed the bug where missing genotype gets converted to a 0 when the ancestral allele maps to the alternate allele Closes #36