astheeggeggs / lshmm

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

Rework `check_inputs` #128

Closed szhan closed 1 week ago

szhan commented 1 week ago

Make check_inputs to do most of the work to prepare the data and parameters for the HMM algorithms. It now checks num_alleles; sets prob_recombination and prob_mutation; and calls the functions to get emission probability matrices. This leads to reduction in redundant code in the rest of api.py.

szhan commented 1 week ago

Note that set_emission_probabilities is removed.