Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added QC for duck/mallard (AnaPla) #1021

Merged
merged 1 commit into from
Oct 4, 2021

Conversation

igronau
Copy link
Contributor

@igronau igronau commented Oct 3, 2021

The Demographic model implemented for Black duck and Mallard. See Original Model QC Issue #921

I reviewed the demographic parameters reported by Lavretsky et al. (2019) (Figure 6), and added the ancestral population size reported to @petrelharp in personal communication. I used these values to implement a demographic model and ran the unit tests. All seems good.

Regarding @petrelharp 's comment about the migration rate, I'm pretty sure that the rate we use in the model is consistent with what Lavretsky and colleagues infer using dadi. The raw dadi estimates (after scaled by N_anc) should be equivalent to the per-generation rate used by the coalescent simulator of msprime. To confirm this with 100%, one may wish to generate data using this model and run dadi on the data to see if the expected values are indeed inferred.

@codecov
Copy link

codecov bot commented Oct 3, 2021

Codecov Report

Merging #1021 (6d2f9ef) into main (e4daeb1) will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1021      +/-   ##
==========================================
+ Coverage   98.62%   98.63%   +0.01%     
==========================================
  Files          85       86       +1     
  Lines        2845     2867      +22     
  Branches      341      341              
==========================================
+ Hits         2806     2828      +22     
  Misses         31       31              
  Partials        8        8              
Impacted Files Coverage Δ
stdpopsim/qc/AnaPla.py 100.00% <100.00%> (ø)
stdpopsim/qc/__init__.py 100.00% <100.00%> (ø)

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 e4daeb1...6d2f9ef. Read the comment docs.

Copy link
Member

@jeromekelleher jeromekelleher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@grahamgower grahamgower merged commit 4324b69 into popsim-consortium:main Oct 4, 2021
@petrelharp
Copy link
Contributor

Late to the party here, but: awesome, thanks @igronau!

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.

None yet

4 participants