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

Mutation model conditioned on specific ancestral sequence #1087

Open
jeromekelleher opened this issue Jul 3, 2020 · 1 comment
Open

Mutation model conditioned on specific ancestral sequence #1087

jeromekelleher opened this issue Jul 3, 2020 · 1 comment
Milestone

Comments

@jeromekelleher
Copy link
Member

For some applications it will be useful to condition on a specific ancestral sequence. This should basically be the same as the MatrixMutationModel, except it takes as first parameter the ancestral_sequence. This should be a string (or maybe a numpy array) of length equal to the sequence length of the tree sequence we call mutate on. It is an error to use this mutation model if discrete is False.

We can add an option to this model also to add in sites at which no mutations occur. Ideally, I guess, we should also add in the ancestral sequence itself like SLiM does, but we don't have support for this in tskit yet, so that can wait.

I'm putting the 1.1 milestone on this for now, as there's already too much lined up for 1.0, but I'm happy to bump it up if someone would like to work on it.

@jeromekelleher jeromekelleher added this to the 1.1 milestone Jul 3, 2020
@jeromekelleher jeromekelleher modified the milestones: 1.2.0, 1.3.0 Feb 23, 2022
@jeromekelleher
Copy link
Member Author

Related: #2012

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

No branches or pull requests

1 participant