Level 0 function that returns virgin queen(s) presence status.
isVirginQueensPresent(x, simParamBee = NULL)
isVirginQueenPresent(x, simParamBee = NULL)
areVirginQueensPresent(x, simParamBee = NULL)
SimParamBee
, global simulation parameters
isVirginQueenPresent()
: Are virgin queen(s) present
areVirginQueensPresent()
: Are virgin queen(s) present
founderGenomes <- quickHaplo(nInd = 8, nChr = 1, segSites = 100)
SP <- SimParamBee$new(founderGenomes)
SP$nThreads = 1L
basePop <- createVirginQueens(founderGenomes)
#> Error in get(x = "SP", envir = .GlobalEnv): object 'SP' not found
drones <- createDrones(x = basePop[1], nInd = 1000)
#> Error in get(x = "SP", envir = .GlobalEnv): object 'SP' not found
droneGroups <- pullDroneGroupsFromDCA(drones, n = 10, nDrones = nFathersPoisson)
#> Error in get(x = "SP", envir = .GlobalEnv): object 'SP' not found
# Create a Colony and a MultiColony class
colony <- createColony(x = basePop[2])
#> Error in get(x = "SP", envir = .GlobalEnv): object 'SP' not found
colony <- cross(colony, drones = droneGroups[[1]])
#> Error in get(x = "SP", envir = .GlobalEnv): object 'SP' not found
colony <- addVirginQueens(x = colony, nInd = 4)
#> Error in get(x = "SP", envir = .GlobalEnv): object 'SP' not found
isVirginQueenPresent(colony)
#> Error in get(x = "SP", envir = .GlobalEnv): object 'SP' not found
isVirginQueenPresent(pullVirginQueens(colony)$remnant)
#> Error in get(x = "SP", envir = .GlobalEnv): object 'SP' not found
isVirginQueenPresent(removeQueen(colony))
#> Error in get(x = "SP", envir = .GlobalEnv): object 'SP' not found
apiary <- createMultiColony(basePop[3:4], n = 2)
#> Error in get(x = "SP", envir = .GlobalEnv): object 'SP' not found
apiary <- cross(apiary, drones = droneGroups[c(2, 3)])
#> Error in get(x = "SP", envir = .GlobalEnv): object 'SP' not found
apiary <- buildUp(x = apiary, nWorkers = 100, nDrones = 10)
#> Error in get(x = "SP", envir = .GlobalEnv): object 'SP' not found
isVirginQueenPresent(apiary)
#> Error in get(x = "SP", envir = .GlobalEnv): object 'SP' not found
tmp <- swarm(x = apiary)
#> Error in get(x = "SP", envir = .GlobalEnv): object 'SP' not found
isVirginQueenPresent(tmp$swarm)
#> Error in get(x = "SP", envir = .GlobalEnv): object 'SP' not found
isVirginQueenPresent(tmp$remnant)
#> Error in get(x = "SP", envir = .GlobalEnv): object 'SP' not found