calcNumPops {flowType}R Documentation

Function calcNumPops in Package flowType

Description

Compute the number of populations that will be produced by running flowType with a given set of parameters. This is especially useful for estimating memory but is also used internally to determine the size of return objects to pass down to C++. This may also be useful for determining the cutoff for number of markers to use to make phenotypes (in terms of statistical power for later testing).

Usage

calcNumPops(PartitionsPerMarker, MaxMarkersPerPop)

Arguments

PartitionsPerMarker

Integer vector specifying the number of partitions for each marker, in order.

MaxMarkersPerPop

Integer speciying the threshold chosen

Value

Integer specifying the number of populations the given paramters would produce.

Author(s)

Kieran O'Neill

See Also

calcMemUse, flowType

Examples

calcNumPops(c(2,2,3,2,2,4), 5)

[Package flowType version 2.22.0 Index]