Skip to content

ts: How will we encode individual IDs? #12

@gregorgorjanc

Description

@gregorgorjanc

Can we have just about any individual IDs in tskit tree sequences? I am asking because in AlphaSimR we have IDs as 1:n by default, growing forwards in time. Note though the pop@id and pop@iid (the later being integer) ... (I have not used this much so I am not 100% up to speed here.)

I think we will get 1:nSampledIndividuals from msprime by default, which could just be used in AlphaSimR as input and then we grow IDs from that point onwards. There is a glitch though where this approach will just work when we have nSampledIndividuals from the current population, but if we say use pedigree option in msprime then we will have 1:nSampledIndividuals oriented backwards in time and we will continue with nSampledIndividuals:(nSampledIndividuals+nAdditionalIndividuals) in AlphaSimR. I think this will all work well due to pop@id and pop@iid, but we should be mindful of this ...

Not sure what does SLiM do regarding individual IDs. @LynxJinyangii can you please check and report here?

@gaynorr can you advise what would be the best way forward here?

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