Skip to content

clarify derived state / metadata[derived states] distinction for mutations #676

Description

@petrelharp

Thanks to #665, now the SLiM IDs of mutations carried by a tskit mutation are recorded in two places: the mutation's derived_state, and in it's metdata["derived_states"]. Ideally, when reading things back in, we would ignore the former and only use the latter, but this is complicated because we're using the tsk_variant machinery, which returns alleles. So to use the metadata instead we'd need to either extend the tsk_variant behavior or write our own. This would be fine but also not top priority.

So currently, to read in the file we need the derived_state column to have the comma-separated list of mutations IDs in it. Are there any requirements on the metadata? Does the code check that these agree? We should record this in treerec/implementation.md and in the manual if it's not there already (I'm only partway through checking).

Activity

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