calcNumPops: Function 'calcNumPops' in Package 'flowType'

Description Usage Arguments Value Author(s) See Also Examples

View source: R/calcNumPop.R

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

1
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

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

flowType documentation built on April 28, 2020, 8:32 p.m.