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?
Can we have just about any individual IDs in
tskittree sequences? I am asking because inAlphaSimRwe have IDs as1:nby default, growing forwards in time. Note though thepop@idandpop@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:nSampledIndividualsfrommsprimeby default, which could just be used inAlphaSimRas input and then we grow IDs from that point onwards. There is a glitch though where this approach will just work when we havenSampledIndividualsfrom the current population, but if we say use pedigree option inmsprimethen we will have1:nSampledIndividualsoriented backwards in time and we will continue withnSampledIndividuals:(nSampledIndividuals+nAdditionalIndividuals)inAlphaSimR. I think this will all work well due topop@idandpop@iid, but we should be mindful of this ...Not sure what does
SLiMdo regarding individual IDs. @LynxJinyangii can you please check and report here?@gaynorr can you advise what would be the best way forward here?