Dear Ryan,
I am trying to infer the demographic history of two hybridizing plants, and I had a couple questions about the models I’ve been fitting. We’ve fitted and compared several models already, including IM, SC, PSC, AM and SI. Additionally we’ve incorporated other parameters into each of these model families, such as heterogeneous migration rates and population growth.
I want to make sure we’re implementing these models correctly and that our interpretation of the time parameters are correct. Would you mind taking a look at the model for secondary contact, both with and without a period of population expansion?
Here is what I have for secondary contact without population expansion:
# phi for the equilibrium ancestral population
phi = dadi.PhiManip.phi_1D(xx)
# Now do the divergence event
phi = dadi.PhiManip.phi_1D_to_2D(xx, phi)
# We set the population sizes after the split to nu1 and nu2 and the migration rate to zero
phi = dadi.Integration.two_pops(phi, xx, Ts, nu1, nu2, m12=0, m21=0)
# We keep the population sizes after the split to nu1 and nu2 and set the migration rates to m12 and m21
phi = dadi.Integration.two_pops(phi, xx, Tsc, nu1, nu2, m12=m12, m21=m21)
And then this is my model with expansion:
# phi for the equilibrium ancestral population
phi = dadi.PhiManip.phi_1D(xx)
# Now do the divergence event
phi = dadi.PhiManip.phi_1D_to_2D(xx, phi)
# Population growth
nu1_func = lambda t: numpy.exp(numpy.log(nu1) * t/Tg)
nu2_func = lambda t: numpy.exp(numpy.log(nu2) * t/Tg)
# We set the population sizes after the split to nu1 and nu2 and the migration rate to zero
phi = dadi.Integration.two_pops(phi, xx, Ts, nu1_func, nu2_func, m12=0, m21=0)
# We keep the population sizes after the split to nu1 and nu2 and set the migration rates to m12 and m21
phi = dadi.Integration.two_pops(phi, xx, Tsc, nu1_func, nu2_func, m12=m12, m21=m21)
In this case Ts = Scaled time between split and population growth
Tg = Scaled time between expansion and secondary contact
Tsc = Scaled time between secondary contact and the present
Is this correct?
I’ve also attached our spectrum. Intuitively does it give you a sense of what kind of history of gene flow you might expect?
On Nov 14, 2016, at 4:23 PM, Madee Chase <madee...@gmail.com> wrote:
Dear Ryan,I am trying to infer the demographic history of two hybridizing plants, and I had a couple questions about the models I’ve been fitting. We’ve fitted and compared several models already, including IM, SC, PSC, AM and SI. Additionally we’ve incorporated other parameters into each of these model families, such as heterogeneous migration rates and population growth.I want to make sure we’re implementing these models correctly and that our interpretation of the time parameters are correct. Would you mind taking a look at the model for secondary contact, both with and without a period of population expansion?Here is what I have for secondary contact without population expansion:# phi for the equilibrium ancestral populationphi = dadi.PhiManip.phi_1D(xx)# Now do the divergence eventphi = dadi.PhiManip.phi_1D_to_2D(xx, phi)# We set the population sizes after the split to nu1 and nu2 and the migration rate to zerophi = dadi.Integration.two_pops(phi, xx, Ts, nu1, nu2, m12=0, m21=0)# We keep the population sizes after the split to nu1 and nu2 and set the migration rates to m12 and m21phi = dadi.Integration.two_pops(phi, xx, Tsc, nu1, nu2, m12=m12, m21=m21)
And then this is my model with expansion:# phi for the equilibrium ancestral populationphi = dadi.PhiManip.phi_1D(xx)# Now do the divergence eventphi = dadi.PhiManip.phi_1D_to_2D(xx, phi)# Population growthnu1_func = lambda t: numpy.exp(numpy.log(nu1) * t/Tg)nu2_func = lambda t: numpy.exp(numpy.log(nu2) * t/Tg)# We set the population sizes after the split to nu1 and nu2 and the migration rate to zerophi = dadi.Integration.two_pops(phi, xx, Ts, nu1_func, nu2_func, m12=0, m21=0)# We keep the population sizes after the split to nu1 and nu2 and set the migration rates to m12 and m21phi = dadi.Integration.two_pops(phi, xx, Tsc, nu1_func, nu2_func, m12=m12, m21=m21)In this case Ts = Scaled time between split and population growthTg = Scaled time between expansion and secondary contactTsc = Scaled time between secondary contact and the present
Is this correct?I’ve also attached our spectrum. Intuitively does it give you a sense of what kind of history of gene flow you might expect?
--
You received this message because you are subscribed to the Google Groups "dadi-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dadi-user+...@googlegroups.com.
To post to this group, send email to dadi...@googlegroups.com.
Visit this group at https://groups.google.com/group/dadi-user.
For more options, visit https://groups.google.com/d/optout.
<ry_noDLR_85.pdf>
--
You received this message because you are subscribed to the Google Groups "dadi-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dadi-user+...@googlegroups.com.
To post to this group, send email to dadi...@googlegroups.com.
Visit this group at https://groups.google.com/group/dadi-user.
For more options, visit https://groups.google.com/d/optout.
result of Model 4:
result of Model 5:
I want to know what should i do with expansion model of multiple stages.
Best wishes!
Yours,
Kun
--
You received this message because you are subscribed to the Google Groups "dadi-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dadi-user+...@googlegroups.com.
To post to this group, send email to dadi...@googlegroups.com.
Visit this group at https://groups.google.com/group/dadi-user.
For more options, visit https://groups.google.com/d/optout.
<dadi.plot.gz>