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

Simpler lineage struct #2296

Merged
merged 3 commits into from
Jul 30, 2024

Conversation

jeromekelleher
Copy link
Member

@jeromekelleher jeromekelleher commented Jul 23, 2024

Work towards #2294

Work on adding a lineage struct that we store in the algorithm state in preference to using just segments. This does the initial bit where we just define this structure minimally in C and Python. Actually using it to some advantage can be done in follow-ups.

Copy link

codecov bot commented Jul 23, 2024

Codecov Report

Attention: Patch coverage is 83.42857% with 29 lines in your changes missing coverage. Please review.

Project coverage is 90.96%. Comparing base (ad3f625) to head (8ee8cb1).

Files Patch % Lines
lib/msprime.c 83.42% 18 Missing and 11 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2296      +/-   ##
==========================================
- Coverage   91.09%   90.96%   -0.14%     
==========================================
  Files          20       20              
  Lines       11921    12003      +82     
  Branches     2435     2444       +9     
==========================================
+ Hits        10860    10919      +59     
- Misses        581      598      +17     
- Partials      480      486       +6     
Flag Coverage Δ
C 90.96% <83.42%> (-0.14%) ⬇️
python 98.70% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Cover all the easy cases

Get SMCK working

Add a "lineage" attr to Segment and fixup sweeps code

Basic DTWF seems to work

Fixup algorithms minimally
Make some progress. Disable DTWF tests for now

Minimal changes to get smck working

Fix DTWF simulations

Fixup incorrectly failing test

Make results reproducible by seed

Revert back to old seed for failing test

Skip segfaulting pedigree and sweep tests

Fix sweeps

Fix pedigree sims

Keep track of lineages
Newer versions of jsonschema emit a DeprecationWarning
@jeromekelleher jeromekelleher marked this pull request as ready for review July 25, 2024 12:45
@jeromekelleher
Copy link
Member Author

I think this is the basic changes needed to start with. Would you mind having a quick look over to see if I've made any obvious mistakes (like keeping an msp_verify() left over from debugging etc) please @GertjanBisschop?

@jeromekelleher
Copy link
Member Author

I'm going to go ahead and merge this, there's no point in keeping a big diff like this lying around. Sorry to anyone who's code is clobbered!

@jeromekelleher jeromekelleher merged commit 89f8770 into tskit-dev:main Jul 30, 2024
13 of 14 checks passed
@jeromekelleher jeromekelleher deleted the simpler-lineage-struct branch July 30, 2024 15:19
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.

1 participant