Learn R Programming

segtest (version 2.0.0)

n_pp_mix: Number of mixture components

Description

The number of disomic inheritance patterns for a given ploidy and a given parental dosage. See also seg for the list of all possible disomic inheritance patterns for even ploidies up to 20.

Usage

n_pp_mix(g, ploidy)

Value

The number of mixture components.

Arguments

g

parent genotype

ploidy

parent ploidy

Examples

Run this code
n_pp_mix(g = 0, ploidy = 4)
n_pp_mix(g = 1, ploidy = 4)
n_pp_mix(g = 2, ploidy = 4)
n_pp_mix(g = 3, ploidy = 4)
n_pp_mix(g = 4, ploidy = 4)

n_pp_mix(g = 0, ploidy = 6)
n_pp_mix(g = 1, ploidy = 6)
n_pp_mix(g = 2, ploidy = 6)
n_pp_mix(g = 3, ploidy = 6)
n_pp_mix(g = 4, ploidy = 6)
n_pp_mix(g = 5, ploidy = 6)
n_pp_mix(g = 6, ploidy = 6)

Run the code above in your browser using DataLab