Skip to content

Initial infrastructure for mutation model verification - #1014

Merged
jeromekelleher merged 2 commits into
tskit-dev:masterfrom
mcveanlab:verify-jc69
May 12, 2020
Merged

jeromekelleher merged 2 commits into
tskit-dev:masterfrom
mcveanlab:verify-jc69

Conversation

@jeromekelleher

Copy link
Copy Markdown
Member

A reasonable approach to verifying mutation models would seem to be to compare with the output of Seq-Gen which is the standard software for phylogenetic models. This adds Seq-Gen to the local list of programs that we use for statistical comparisons and some basic plumbing for setting up verification tests.

We probably won't get this fully done here as I don't have time to work on this any more, and I'm hoping that Gertjan can help fill this out. So, this PR should be seen as an initial framework rather than something finished.

Does anyone disagree with the basic approach of comparing with Seq-Gen?

@codecov

codecov Bot commented May 11, 2020 •

Copy link
Copy Markdown

Codecov Report

Merging #1014 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1014   +/-   ##
=======================================
  Coverage   88.24%   88.24%           
=======================================
  Files          18       18           
  Lines        8819     8819           
  Branches     1846     1846           
=======================================
  Hits         7782     7782           
  Misses        512      512           
  Partials      525      525           
Flag Coverage Δ
#C 88.24% <ø> (ø)
#python 98.07% <ø> (?)
Impacted Files Coverage Δ
lib/msprime.c 84.12% <0.00%> (ø)
msprime/ancestry.py 96.73% <0.00%> (ø)
msprime/likelihood.py 100.00% <0.00%> (ø)
lib/fenwick.c 89.36% <0.00%> (ø)
lib/recomb_map.c 96.96% <0.00%> (ø)
lib/object_heap.c 79.31% <0.00%> (ø)
msprime/exceptions.py 100.00% <0.00%> (ø)
lib/likelihood.c 88.98% <0.00%> (ø)
lib/interval_map.c 94.00% <0.00%> (ø)
lib/mutgen.c 84.94% <0.00%> (ø)
... and 8 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 70961b7...bf5b570. Read the comment docs.

@petrelharp

petrelharp commented May 11, 2020 •

Copy link
Copy Markdown
Contributor

Sounds good. I see that seq-gen doesn't do microsats, so if we implement a microsat model we may want to pull in something different for that.

Note that tests/test_mutgen.py already does some statistical testing, and could easily do more, e.g. checking for the right stationary distribution.

@jeromekelleher

jeromekelleher commented May 11, 2020 •

Copy link
Copy Markdown
Member Author

Note that tests/test_mutgen.py already does some statistical testing, and could easily do more, e.g. checking for the right stationary distribution; these ought to be just as good, really, as comparing to another implementation.

A bit of redundancy is no harm here I think - always good to be able to point to another program that's widely used as a believable verification.

Also, we don't want to blur the line too much between statistical and unit testing.

@jeromekelleher

Copy link
Copy Markdown
Member Author

OK, just chatted with @GertjanBisschop and we're going to merge this much to give him a base to work on. I'll follow up with some more issues to track what needs doing from here.

@jeromekelleher
jeromekelleher merged commit 44a1abb into tskit-dev:master May 12, 2020
@jeromekelleher
jeromekelleher deleted the verify-jc69 branch May 12, 2020 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants