astheeggeggs / lshmm

code to run Li and Stephens
MIT License
3 stars 3 forks source link

Rework `check_inputs` to take user-specified ploidy instead of inferring it from input #130

Closed szhan closed 1 week ago

szhan commented 1 week ago

It should produce more user-friendly API functions. Once reworked, num_alleles will not need to be passed to the API functions anymore, which is currently needed to scale mutation rates before computing the emission probability matrix.

Also, all the API functions will then take reference haplotypes as the reference panel when running the diploid algorithms, not the genotypes.