fedarko / strainFlye

Pipeline for analyzing (rare) mutations in metagenome-assembled genomes
BSD 3-Clause "New" or "Revised" License
8 stars 1 forks source link

Use an approximation for the coldspot gap p-value computation #49

Closed fedarko closed 2 years ago

fedarko commented 2 years ago

We currently use the "exact" method given in Naus 1982 (which is really from Bateman 1948) -- but this method, as the paper explains, becomes "tedious" in certain cases. (Turns out that in practice "tedious" means "Python will vomit up a few runtime warnings and then return NaN.")

image

Naus 1982 gives some approximations which would probably help get around this problem.