Simulations with specified number of segregating sites

16 views
Skip to first unread message

megan...@gmail.com

unread,
Mar 18, 2020, 10:53:03 AM3/18/20
to msprime-users
Hi everyone,

In Hudson's ms, it was possible to simulate data with a fixed number of segregating sites (the -s option). Is this possible in msprime? Thanks in advance!

Sincerely,
Megan Smith

Jerome Kelleher

unread,
Mar 18, 2020, 1:14:59 PM3/18/20
to msprim...@googlegroups.com
Hi Megan!

This is something a lot of people ask for. The short answer is "no",
because it's actually quite tricky. Theres's discussion here on github:

https://github.com/tskit-dev/msprime/issues/68

and some further discussion on the list here:

https://groups.google.com/forum/#!searchin/msprime-users/SNP%7Csort:date/msprime-users/Tbr7vnglELs/fDGoeH25CQAJ

Hope this helps!

Cheers,
Jerome
> --
> You received this message because you are subscribed to the Google
> Groups "msprime-users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to msprime-user...@googlegroups.com
> <mailto:msprime-user...@googlegroups.com>.
> To view this discussion on the web, visit
> https://groups.google.com/d/msgid/msprime-users/f86dfdf3-0ffb-49bf-8e7b-fa21f2f9c793%40googlegroups.com
> <https://groups.google.com/d/msgid/msprime-users/f86dfdf3-0ffb-49bf-8e7b-fa21f2f9c793%40googlegroups.com?utm_medium=email&utm_source=footer>.

Peter Ralph

unread,
Mar 18, 2020, 1:45:56 PM3/18/20
to msprim...@googlegroups.com
Follow-up question: why do you want to do this? (I'm asking to know how to talk about it in the documentation.)

To unsubscribe from this group and stop receiving emails from it, send an email to msprime-user...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/msprime-users/9b676884-8be6-cb77-e8cc-d394cd6e9701%40ndm.ox.ac.uk.

megan...@gmail.com

unread,
Mar 18, 2020, 2:52:36 PM3/18/20
to msprime-users
Thanks, Jerome! That's helpful. Peter, I want to simulate linked SNPs in this case; I just want to simulate data that matches an observed single-locus dataset (mitochondrial sequence) in terms of the number of segregating sites. I think that your suggestion on the last thread (setting the mutation rate high enough and then subsampling) should work fine. Thanks!

Sincerely,
Megan


On Wednesday, March 18, 2020 at 1:45:56 PM UTC-4, Peter Ralph wrote:
Follow-up question: why do you want to do this? (I'm asking to know how to talk about it in the documentation.)

On Wed, Mar 18, 2020 at 10:15 AM Jerome Kelleher wrote:
Hi Megan!

This is something a lot of people ask for. The short answer is "no",
because it's actually quite tricky. Theres's discussion here on github:

https://github.com/tskit-dev/msprime/issues/68

and some further discussion on the list here:

https://groups.google.com/forum/#!searchin/msprime-users/SNP%7Csort:date/msprime-users/Tbr7vnglELs/fDGoeH25CQAJ

Hope this helps!

Cheers,
Jerome



On 18/03/2020 14:53, megan...@gmail.com wrote:
> Hi everyone,
>
> In Hudson's ms, it was possible to simulate data with a fixed number of
> segregating sites (the -s option). Is this possible in msprime? Thanks
> in advance!
>
> Sincerely,
> Megan Smith
>
> --
> You received this message because you are subscribed to the Google
> Groups "msprime-users" group.
> To unsubscribe from this group and stop receiving emails from it, send
To unsubscribe from this group and stop receiving emails from it, send an email to msprim...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages