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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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: