aggregateFemales: Aggregate Female Output by Genotype

Description Usage Arguments Examples

View source: R/MGDrivE-Auxiliary.R

Description

Aggregate over male mate genotype to convert female matrix output into vector output.

Usage

1
2
3
4
5
6
7
aggregateFemales(
  readDir,
  writeDir = NULL,
  genotypes,
  remFile = TRUE,
  verbose = TRUE
)

Arguments

readDir

Directory to read input from

writeDir

Directory to write output to. Default is readDir

genotypes

Character vector of possible genotypes; found in driveCube$genotypesID

remFile

Boolean flag to remove original (unaggregated) file

verbose

Chatty? Default is TRUE

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
## Not run: 
# This example assumes user has already run MGDrivE and generated output.
#  This also assumes that the user has already split output by patch.
# See vignette for complete example.

# set read/write directory
fPath <- "path/to/data/containing/folder"

# Need genotypes from the cube run in the simulation
#  This is dependent on the simulation run
#  Using Mendelian cube for this example
cube <- cubeMendelian()

# no return value from function
aggregateFemales(readDir= fPath, writeDir = NULL, genotypes = cube$genotypesID,
                 remFile = TRUE)

## End(Not run)

MGDrivE documentation built on Oct. 23, 2020, 7:28 p.m.