Skip to content

give example of matching individuals to something written to metadata #56

Open

Description

@petrelharp

Say you want to output something about individuals within SLiM (say, a tag that is not stored in metadata, or a computed, random phenotype), and match it up to the individuals in the tree sequence. This could be stored in top-level metadata, as a vector (if for presently-alive individuals) or a dictionary (more generally, with pedigreeID as keys). We should have an example of this, as discussed in #198 .

Activity

  1. changed the title [-]give example of using `pedigree_id` property to match within slim to output[/-] [+]give example of matching individuals to something written to metadata[/+] on Sep 20, 2021
  2. petrelharp commented on Sep 25, 2023

    @petrelharp
    ContributorAuthor

    There's an example of this in tskit-dev/tskit#2842

  3. bhaller commented on Sep 25, 2023

    @bhaller
    Collaborator

    There is an example of it in the SLiM manual for SLiM 5.0, too.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions