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

View source: R/fitPolyTools.R

selSegtypeInfoR Documentation

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,
selfing=FALSE)

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

selfing

if TRUE only segtypes are retained that can be the result of a selfing, i.e. both parental dosages equal (although it allows disomic segtypes where the parental distribution of alleles over the subgenomes is different, e.g. aa/bb x ab/ab -> 121_1); default FALSE

Value

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


fitPoly documentation built on April 3, 2025, 8:58 p.m.