# NOT RUN {
# This assumes user has run MGDrivE and output is in fPath.
# See vignette for examples on how to run MGDrivE
# read/write dirs
fPath <- "folder/containing/output"
oPath <- "folder/to/write/stuff"
# first, split output by patch and aggregate females by mate genotype
# remember, cube is for example and changes with simulation
# landscape aggregation will work if females are not aggregated, but it's slower
cube <- cubeMendelian()
splitOutput(readDir = fPath, writeDir = NULL, remFile = TRUE)
aggregateFemales(readDir= fPath, writeDi = NULL, genotypes = cube$genotypesID,
remFile = TRUE)
# aggregate mosquitoes over entire landscape
# no return value
aggregateOutput(readDir = fPath, writeDir = NULL)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab