Skip to content

Where to store the meaning of node times #375

Closed

Description

@hyanwong

It would be useful for tsdate to know whether tables.nodes.time is means to represent generations (as in msprime simulations), years, average mutation rates, or something arbitrary like the "frequency count" values output by tsinfer.

This feels like a sort of metadata field, but one associated with the entire tree sequence. Where should this be stored?

Activity

  1. petrelharp commented on Sep 30, 2019

    @petrelharp
    Contributor

    Yes, definately. Perhaps in metadata/time_units?

  2. hyanwong commented on Sep 30, 2019

    @hyanwong
    MemberAuthor

    I'm not sure we have metadata for the entire tree sequence, do we? I've only seen it e.g. for nodes, and we wouldn't want to redundantly store the same thing for every node in the ts.

    @jeromekelleher suggests that an alternative is to store it somehow in the provenance, although I'm not sure how easy that would then be to pull out (e.g. which provenance item would it be associated with?)

  3. jeromekelleher commented on Sep 30, 2019

    @jeromekelleher
    Member

    I think we discussed the need for tree sequence level metadata at some point, and it's clearly something we want. This is probably where time_units belongs. However, I think we should wait until we've got a handle on metadata schemas and automatic decoding before doing this (see #57). This will be one of the things tskit's new engineer will work on first, I think.

  4. jeromekelleher commented on Mar 24, 2020

    @jeromekelleher
    Member

    So, I think it's clear this will go into the tree sequence metadata, possibly becoming one of a set of standardised values that can be expected. Shall we close this issue, or open up a more general one where we discuss what a (minimal) set of standardised metadata keys would look like?

    Closing this discussion here in favout of #495, which is slightly broader.

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