Skip to content

Interface for making mutations SLiM compatible #509

Closed

Description

@jeromekelleher

From @bhaller in #507

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.

Activity

  1. petrelharp commented on Jun 6, 2018

    @petrelharp
    Contributor

    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?

  2. jeromekelleher commented on Jun 6, 2018

    @jeromekelleher
    MemberAuthor

    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)!

  3. petrelharp commented on Jun 6, 2018

    @petrelharp
    Contributor

    I think a separate package, but under tskit-dev is the way to go.

    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. =)

  4. jeromekelleher commented on Jun 6, 2018

    @jeromekelleher
    MemberAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions