Skip to content

allow generate_nucleotides to only generate nucleotides for some mutation types? #436

Open

Description

@petrelharp

@bhaller writes that

It might be useful to add a mutation_type parameter here. Sometimes people want some mutations to have nucleotides, and others (marker mutations indicating chromosomal inversion points, for example) not to. So being able to attach nucleotides to some mutation types and not others would perhaps be helpful for some.

I'm not sure if this would really fix the potential issue, because these mutations would still show up in VCF output

Activity

  1. bhaller commented on Aug 23, 2026

    @bhaller
    Collaborator

    Yeah. Various ways to cope with that, but they are additional work of course. I can imagine:

    • a pyslim write_vcf() method that lets you select mutation type(s) or mutations by mutation ID, etc.

    OR

    • extending the tskit write_vcf() to allow a list of mutation (tskit) ids to be passed in, plus a pyslim method that looks up tskit mutation ids corresponding to SLiM mutation type(s) or SLiM mutation IDs.

    But maybe not worth the trouble, at least until someone asks for it. Feel free to close this if you think it is going nowhere. :->

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