Skip to content

Conversation

@hyanwong
Copy link
Member

@hyanwong hyanwong commented Dec 3, 2025

Also fixes #1157

As per discussion below:

Jerome: I regard the record_migrations option in msprime to be a legacy feature that has been superseded by the additional nodes feature, which provides the same information as nodes explicitly marking migrations and edges, and is much simpler.

@codecov
Copy link

codecov bot commented Dec 3, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.76%. Comparing base (c81a38d) to head (8de2994).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3348   +/-   ##
=======================================
  Coverage   89.76%   89.76%           
=======================================
  Files          29       29           
  Lines       31292    31292           
  Branches     5738     5738           
=======================================
  Hits        28089    28089           
  Misses       1794     1794           
  Partials     1409     1409           
Flag Coverage Δ
c-tests 86.77% <ø> (ø)
lwt-tests 80.38% <ø> (ø)
python-c-tests 87.12% <ø> (ø)
python-tests 98.85% <ø> (ø)
python-tests-no-jit 33.51% <ø> (ø)
python-tests-numpy1 50.28% <ø> (ø)

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

Can you check what msprime actually does here, please?

@jeromekelleher
Copy link
Member

Honestly I'm not sure it's worth clarifying this - it's basically a very rarely used feature of msprime which we wouldn't bother putting in now (having been made redundant by tracking migration nodes).

@jeromekelleher
Copy link
Member

I would vote for just saying this is a legacy thing that was tied to an old version of msprime, which may be removed from the data model entirely at some point. We do nothing at all with these in tskit.

@hyanwong
Copy link
Member Author

hyanwong commented Dec 3, 2025

I would be +1 for removing it. But I think if it is in there we should probably clarify what src and dest actually mean, right? This was my attempt to do so, but I got it wrong, I think (which speaks to how confusing it is at the moment).

Should we put a marker into the table definition to say that this is something that could be removed from the tskit data model (which would solve a number of other issues, I think, such as migrations not being supported in various methods, most notably simplify()

@jeromekelleher
Copy link
Member

Should we put a marker into the table definition to say that this is something that could be removed from the tskit data model (which would solve a number of other issues, I think, such as migrations not being supported in various methods, most notably simplify()

I think so yeah. We can also just put in a seealso link to the documentation in msprime, which should be definitive.

@hyanwong hyanwong force-pushed the migrations-clarification branch from 8cf49c6 to b3af51e Compare December 3, 2025 18:06
@hyanwong
Copy link
Member Author

hyanwong commented Dec 3, 2025

Great points about marking-as-legacy and also linking to the extensive section(s) in the msprime pages, which have much more info. I have done both of these in the latest commit, and corrected my source/dest confusion (with a link to the definition of time section in the msprime docs).

I'm really very happy with marking this as an part of the data model that could be removed, and I think it's good to give people warning of that.

@hyanwong hyanwong force-pushed the migrations-clarification branch from b3af51e to 90bdafb Compare December 3, 2025 18:13
@jeromekelleher
Copy link
Member

So to be clear, I regard the record_migrations option in msprime to be a legacy feature that has been superseded by the additional nodes feature, which provides the same information as nodes explicitly marking migrations and edges, and is much simpler.

@hyanwong hyanwong changed the title Clarify forward-time definition of src/dest migrations Clarify backward-time definition of src/dest migrations Dec 4, 2025
@hyanwong hyanwong force-pushed the migrations-clarification branch from a52129b to 595fa50 Compare December 4, 2025 14:02
This was referenced Dec 4, 2025
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.

typo

@hyanwong hyanwong force-pushed the migrations-clarification branch from 6f0dbeb to 8de2994 Compare December 4, 2025 14:27
@hyanwong hyanwong changed the title Clarify backward-time definition of src/dest migrations Document migrations as a legacy feature, and tidy those docs Dec 5, 2025
@hyanwong hyanwong added this pull request to the merge queue Dec 5, 2025
Merged via the queue into tskit-dev:main with commit 25a26a7 Dec 5, 2025
18 checks passed
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.

Clarify Migrations

3 participants