SimParam_setTrackPed {AlphaSimR} | R Documentation |
Sets pedigree tracking for the simulation.
By default pedigree tracking is turned off. When turned on,
the pedigree of all individuals created will be tracked,
except those created by hybridCross
. Turning
off pedigree tracking will turn off recombination tracking
if it is turned on.
isTrackPed |
should pedigree tracking be on. |
force |
should the check for a running simulation be ignored. Only set to TRUE if you know what you are doing. |
SP$setTrackPed(isTrackPed, force = FALSE)
#Create founder haplotypes founderPop = quickHaplo(nInd=10, nChr=1, segSites=10) #Set simulation parameters SP = SimParam$new(founderPop) SP$setTrackPed(TRUE)