Learn R Programming

SIMplyBee (version 0.4.1)

isFathersPresent: Are fathers present (=queen mated)

Description

Level 0 function that returns fathers presence status (are they present or not, which means the queen is mated).

Usage

isFathersPresent(x, simParamBee = NULL)

areFathersPresent(x, simParamBee = NULL)

Value

logical, named by colony id when x is

MultiColony-class

Arguments

x

Colony-class or MultiColony-class

simParamBee

SimParamBee, global simulation parameters

Functions

  • areFathersPresent(): Are fathers present

Examples

Run this code
founderGenomes <- quickHaplo(nInd = 8, nChr = 1, segSites = 100)
SP <- SimParamBee$new(founderGenomes)
SP$nThreads = 1L
basePop <- createVirginQueens(founderGenomes)

drones <- createDrones(x = basePop[1], nInd = 1000)
droneGroups <- pullDroneGroupsFromDCA(drones, n = 10, nDrones = nFathersPoisson)

# Create a Colony and a MultiColony class
colony <- createColony(x = basePop[2])
isFathersPresent(colony)
apiary <- createMultiColony(basePop[3:4], n = 2)
isFathersPresent(apiary)

colony <- cross(colony, drones = droneGroups[[1]])
isFathersPresent(removeDrones(colony))

apiary <- cross(apiary, drones = droneGroups[c(2, 3)])
isFathersPresent(removeDrones(apiary))

Run the code above in your browser using DataLab