You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Interface for making mutations SLiM compatible #509
We will eventually want to be able to open a .trees file with overlaid mutations back up in SLiM, to run further simulation on it, I think; to do that the overlaid mutations will need to get the appropriate metadata added to them, which I believe @petrelharp has a plan for...? That SLiMification process would also involve rounding off site positions to integers and merging mutations at the same site into stacked mutations with the appropriate stacked derived state, so it will be a bit of an adventure to do right.
I had imagined the tools for dealing with SLiM data being a separate package, but it need not be if others are interested. Would you like it all in one place, @jeromekelleher?
I had imagined the tools for dealing with SLiM data being a separate package, but it need not be if others are interested. Would you like it all in one place, @jeromekelleher?
I hadn't thought of that option actually, that's a good idea. I'll leave it up to you guys, whichever you think is more appropriate.
Maybe a "pySLiM" package is a good idea. It could start out as utilities needed for dealing with metadata like this and eventually provide a Python interface to SLiM. It'd be pretty neat if you could embed Eidos code in a Python script, and then do something like ts = pyslim.simulate(code)!
I think a separate package, but under tskit-dev is the way to go.
Agreed.
It could start out as utilities needed for dealing with metadata like this and eventually provide a Python interface to SLiM.
Maybe! But not by me. =)
Haha! If it used an existing installation of SLiM and just ran simulations by subprocess.call with tempfiles it would be pretty simple to do though (not that I'm volunteering!).
OK, going to close this one here so. We can discuss the tskit-dev/??SLiM?? repo elsewhere.
Activity
petrelharp commentedon Jun 6, 2018
I had imagined the tools for dealing with SLiM data being a separate package, but it need not be if others are interested. Would you like it all in one place, @jeromekelleher?
jeromekelleher commentedon Jun 6, 2018
I hadn't thought of that option actually, that's a good idea. I'll leave it up to you guys, whichever you think is more appropriate.
Maybe a "pySLiM" package is a good idea. It could start out as utilities needed for dealing with metadata like this and eventually provide a Python interface to SLiM. It'd be pretty neat if you could embed Eidos code in a Python script, and then do something like
ts = pyslim.simulate(code)!petrelharp commentedon Jun 6, 2018
I think a separate package, but under
tskit-devis the way to go.Maybe! But not by me. =)
jeromekelleher commentedon Jun 6, 2018
Agreed.
Haha! If it used an existing installation of SLiM and just ran simulations by
subprocess.callwith tempfiles it would be pretty simple to do though (not that I'm volunteering!).OK, going to close this one here so. We can discuss the tskit-dev/??SLiM?? repo elsewhere.