Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

genoCombinations

Genotype combinations


Description

Returns the possible genotype combinations in a pedigree, given partial marker data. This function is mainly for internal use.

Usage

genoCombinations(x, partialmarker, ids, make.grid = TRUE)

Arguments

x

a ped() object.

partialmarker

a marker() object compatible with x.

ids

a vector with ID labels of one or more pedigree members.

make.grid

a logical indicating if the result should be simplified to a matrix.

Value

If make.grid = FALSE (the default) the function returns a list of integer vectors, one vector for each element of ids. Each integer represents a genotype, in the form of a row number of the matrix allGenotypes(n), where n is the number of alleles of the marker.

If make.grid = TRUE, the cartesian product of the vectors is taken, resulting in a matrix with one column for each element of ids.


pedprobr

Probability Computations on Pedigrees

v0.5.0
GPL-3
Authors
Magnus Dehli Vigeland [aut, cre] (<https://orcid.org/0000-0002-9134-4962>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.