Learn R Programming

polymapR (version 1.0.17)

selSegtypeInfo: Restrict a list of segregation types to specified inheritance modes

Description

From a list of segregation types as produced by calcSegtypeInfo, this function selects only those segtypes that occur with polysomic, disomic and/or mixed inheritance if the corresponding parameters are set to TRUE, and from those segtypes only the parental dosages with the same restrictions are retained.

Usage

selSegtypeInfo(segtypeInfo, polysomic, disomic, mixed)

Arguments

segtypeInfo

a list as returned by calcSegtypeInfo

polysomic

If TRUE all segtypes with poly TRUE are retained, and from those segtypes all parental dosage combinations with parmode[,1] TRUE

disomic

If TRUE all segtypes with di TRUE are retained, and from those segtypes all parental dosage combinations with parmode[,2] TRUE

mixed

If TRUE all segtypes with mixed TRUE are retained, and from those segtypes all parental dosage combinations with parmode[,3] TRUE

Value

A list like segtypeInfo, modified as specified by parameters polysomic, disomic and mixed