astheeggeggs / lshmm

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

Modify set_emission_probabilities #60

Closed szhan closed 1 month ago

szhan commented 1 month ago

Modify set_emission_probabilities to take num_alleles as a required parameter rather than a variable calculated from reference_panel and query. The functions forwards, backwards, viterbi, and path_loglik have to be modified accordingly. The tests have to be modified as well. The result of this is that either form of reference panel and query (as haplotypes or genotypes encoded as allele dosages) can be passed to the API functions without needing to pass in both forms when running the diploid implementations.