Skip to content

Record SLiM mutation model parameters before simulation - #2554

Closed
rpinho wants to merge 2 commits into
tskit-dev:mainfrom
rpinho:fix-slim-provenance
Closed

rpinho wants to merge 2 commits into
tskit-dev:mainfrom
rpinho:fix-slim-provenance

Conversation

@rpinho

@rpinho rpinho commented Nov 18, 2026 •

Copy link
Copy Markdown

An overlay using a SLiM mutation model loses the mutation ID and metadata settings needed for provenance replay. Run sim_mutations with a SLiM model whose next_id is set, then replay the overlay from its provenance. The patch records the model parameters before the model generates mutations. The test reuses each SLiM model for two overlays and compares the tables after replay.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LKxc9GKLwnyeV2jaZBxH9N

@jeromekelleher

Copy link
Copy Markdown
Member

Thanks for the interest in contributing to msprime @rpinho. Before we get into the details here and in #2556 and #2555, can I just ask what your motivation in these contributions is? Mainly, are these issues that you have hit through your usage of msprime, or are the "gaps" that have been spotted through code analysis?

If they are genuine problems that you are hitting then of course we'd be delighted to accept fixes.

@rpinho

rpinho commented Nov 19, 2026 •

Copy link
Copy Markdown
Author

Thanks for asking. Code analysis, not usage. I'm trying to play around with AI for science. I built an open harness of research agents, rstack, where one agent searches, another referees. I'm doing this with AI agents, so if these aren't useful, I'll close them.

@jeromekelleher

Copy link
Copy Markdown
Member

Thanks @rpinho - changes are welcome, but really only if solving bugs that users will hit as there is an overhead here in my time.

@rpinho

rpinho commented Nov 19, 2026

Copy link
Copy Markdown
Author

Makes sense. We would be glad to help in any way we can. What would be helpful for you? What's a hard problem?

@rpinho

rpinho commented Nov 20, 2026

Copy link
Copy Markdown
Author

Thanks, makes sense. I don't think anyone has hit these, I didn't see any issues. I'll close #2555, #2556 and this one, unless you want to keep one.

@jeromekelleher

Copy link
Copy Markdown
Member

Generally, tskit and particularly msprime, are stable software, doing their job for a community of users without the expectation that there will be much new development. So, there isn't really any major problem that we're trying to solve here, we just want to keep the lights on and keep our users productively using proven software with as little maintainer input as possible. Maintainers are busy with many other responsibilities, so unless the contributions are fixes to real bugs in users workflows, this type of contribution is seem as a net negative.

So, I do appreciate the willingness to help, but I think the effort and tokens would be better spent on other more actively developed projects.

@rpinho

rpinho commented Nov 22, 2026

Copy link
Copy Markdown
Author

That makes sense, thank you. I closed #2555 and #2556.

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