GenerateMigrationIndividuals: Generate a migrationArray

Description Usage Arguments Note Author(s)

View source: R/phrapl-utilities.R

Description

This function produces an array of all possible demographic models given a number of populations (specified by popVector), a maximum number of free parameters (maxK), and other optional filtering criteria.

Usage

1
2
3
GenerateMigrationIndividuals(popVector, maxK = SetMaxK(popVector), maxMigrationK = 2, 
    maxN0K = 1, forceSymmetricalMigration = TRUE, forceTree = FALSE, 
    verbose = FALSE, parallelRep = NULL) 

Arguments

popVector

A vector that gives the number of samples for each population in a dataset. The model set generated by this function is based on the number of populations under consideration (indicated by length(popVector)).

maxK

The maximum number of free parameters to be incorporated into the model set. The default is calculated based on the number of samples in popVector.

maxMigrationK

The maximum number of migration rate parameters to be incorporated into the model set.

maxN0K

The maximum number of n0 parameters to be incorporated into the model set.

forceSymmetricalMigration

If TRUE, migration rate indexes between populations are forced to be equal.

forceTree

If TRUE, only models with fully resolved topologies are included in the model set.

verbose

If TRUE, prints out status updates

parallelRep

If running the function through loop in parallel on a cluster, this argument is assigned a replicate number.

Note

For more information, please see the user manual.

Author(s)

Brian O'Meara


phrapl documentation built on May 2, 2019, 4:52 p.m.