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

No mutation rate for OutOfAfricaArchaicAdmixture_5R19 #117

Closed
silastittes opened this issue Jun 6, 2024 · 5 comments
Closed

No mutation rate for OutOfAfricaArchaicAdmixture_5R19 #117

silastittes opened this issue Jun 6, 2024 · 5 comments

Comments

@silastittes
Copy link
Contributor

Production pipeline is failing simulations. I think because the demographic model we're currently using doesn't have a mutation rate associated with it. Is this an issue for the catalogue itself? Happy to add an issue there too.

The tiny config uses OutOfAfrica_3G09. Perhaps we should just switch to that demography?

import stdpopsim
species = stdpopsim.get_species("HomSap")
species.get_demographic_model("OutOfAfricaArchaicAdmixture_5R19").mutation_rate #returns None
@silastittes
Copy link
Contributor Author

Reading more, seems like the lack of mutation rate in this model is intentional, but still problematic for our purposes here.

@lntran26
Copy link
Member

lntran26 commented Jun 6, 2024

I ran into this in #109 . The first paper used OutOfAfricaArchaicAdmixture_5R19 and the mean species mutation rate. I believe we decided to stick with OutOfAfricaArchaicAdmixture_5R19 instead of OutOfAfrica_3G09 to be consistent with the first paper. In my run I added a little if-else loop to handle this model like so:

        elif wildcards.demog == 'OutOfAfricaArchaicAdmixture_5R19':
            model = species.get_demographic_model(wildcards.demog)
            mutation_rate = species.genome.mean_mutation_rate

Not super elegant, but it should run.

@andrewkern
Copy link
Member

hey Silas-- so in the case where a demographic model isn't associated with a mutation rate, we should just use the species default mutation rate. so in this case that would look something like

import stdpopsim as std

hs = std.get_species("HomSap")
mut_rate = hs.get_contig("1").mutation_rate # or whatever contig

@silastittes
Copy link
Contributor Author

Sounds good. Thanks team!

@silastittes
Copy link
Contributor Author

closed by #114

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

3 participants