Obtaining the object representation of a command-line simulation

10 views
Skip to first unread message

Armando Arredondo

unread,
Feb 4, 2021, 10:26:13 AM2/4/21
to msprime-users

I understand that msprime can be invoked via a ms-compatible command-line interface using the mspms program. Is there a way to obtain the Python object representation of such simulation?

What I would like to have is an object similar to that returned by the msprime.simulate() function, obtained by specifying the model using the mspms command-line syntax.

Thanks in advance,
Armando Arredondo.

Jerome Kelleher

unread,
Feb 5, 2021, 5:03:37 AM2/5/21
to msprim...@googlegroups.com
Hi Armando,

This isn't accessible, I'm afraid, as the details of parsing the ms
command line and the output are bound up together. We are working on an
ms parser for the "demes" project, though, which will take an ms command
line and turn it into Python object model that can be used to run an
msprime simulation. It needs some work, though:

https://github.com/popsim-consortium/demes-python/pull/102

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/20a4888f-84df-49af-a176-afcfc56d6a41n%40googlegroups.com
> <https://groups.google.com/d/msgid/msprime-users/20a4888f-84df-49af-a176-afcfc56d6a41n%40googlegroups.com?utm_medium=email&utm_source=footer>.
Reply all
Reply to author
Forward
0 new messages