View source: R/Functions_L0_auxilary.R
| isCsdHeterozygous | R Documentation |
Level 0 function that returns if individuals of a population are
heterozygous at the csd locus. See SimParamBee for more
information about the csd locus.
isCsdHeterozygous(pop, simParamBee = NULL)
pop |
|
simParamBee |
|
We could expand isCsdHeterozygous to work also with
Colony-class and MultiColony-class if needed
logical
founderGenomes <- quickHaplo(nInd = 8, nChr = 1, segSites = 100)
SP <- SimParamBee$new(founderGenomes)
basePop <- createVirginQueens(founderGenomes)
drones <- createDrones(x = basePop[1], nInd = 1000)
droneGroups <- pullDroneGroupsFromDCA(drones, n = 10, nDrones = nFathersPoisson)
# Create a Colony class
colony <- createColony(x = basePop[2])
colony <- cross(colony, drones = droneGroups[[1]])
colony <- buildUp(x = colony, nWorkers = 6, nDrones = 3)
colony <- addVirginQueens(x = colony, nInd = 4)
# Use isCsdHeterozygous on a Population
isCsdHeterozygous(getQueen(colony))
isCsdHeterozygous(getWorkers(colony))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.