-
Notifications
You must be signed in to change notification settings - Fork 87
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
Initial outline for Trajectory refactoring #1808
base: main
Are you sure you want to change the base?
Initial outline for Trajectory refactoring #1808
Conversation
62830be
to
618e786
Compare
Codecov Report
@@ Coverage Diff @@
## main #1808 +/- ##
==========================================
- Coverage 90.92% 90.90% -0.02%
==========================================
Files 20 20
Lines 10511 10538 +27
Branches 2226 2231 +5
==========================================
+ Hits 9557 9580 +23
- Misses 497 498 +1
- Partials 457 460 +3
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
This looks like it is on the right track. One source of confusion, for me at least, is how msprime's "new" ploidy argument gets handled here? This came up in the review of the other PR from @andrewkern -- the neutral fixation time being tested was 2n instead of 4n, and it wasn't clear (to me) why. Presumably, these trajectories should be considering an effective size of ploidy*n? |
We don't have ploidy in the Python version @molpopgen, but we probably should. But yes, I think it would be best if we did things in the general case with arbitrary ploidy. |
Yeah, seems prudent to iron out any wrinkles ASAP |
Here's a rough outline for what I'm thinking the low-level C will look like. I think it's worth getting things right here in the Python version before looking at the C --- it's much faster to try different things out here.
As discussed in #1803
Does this look like roughly the right design @andrewkern, @molpopgen?
Looks like we're missing quite a bit of stuff from the Python version though @andrewkern?