mpcross: Create object of class mpcross

Description Usage Arguments Details Value

View source: R/mpcross.R

Description

Create object of class mpcross

Usage

1
2
3
4
5
6
7

Arguments

founders

The genetic data for the founding lines of the population, represented as an integer matrix.

finals

The genetic data for the final lines of the population, represented as an integer matrix.

pedigree

An object of class pedigree

hetData

Information about how marker heterozygotes have been encoded. Can be an object of class hetData, or a function generating such an object from the previous three inputs.

fixCodingErrors

Should we automatically fix data errors, by changing invalid values to missing?

Details

This function constructs an object of class mpcross representing a multi-parent population. It takes in genetic data about the founding lines and final population line, a pedigree, and information about how marker heterozygotes have been encoded.

Parameter founders is the genetic data about the founding lines of the population. It must be an integer matrix, with rows representing genetic lines, and columns representing genetic markers. Parameter finals is a similar matrix, representing data for the final genetic lines in the population.

Parameter pedigree stores information about how the final lines in the population were generated from the founding lines.

Parameter hetDat must be an object of class hetData containing information about how marker heterozygotes have been encoded, OR a function which generates such an object. The function must take as arguments founders, finals and pedigree. See infiniteSelfing for an example of such a function.

Value

An object of class mpcross, constructed from the arguments.


rohan-shah/mpMap2 documentation built on July 21, 2020, 8:58 p.m.