Learn R Programming

flowType (version 2.10.0)

calcNumPops: 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.

See Also

calcMemUse, flowType

Examples

Run this code
calcNumPops(c(2,2,3,2,2,4), 5)

Run the code above in your browser using DataLab