50% off | Unlimited Data & AI Learning

Last chance! 50% off unlimited learning

Sale ends in


cape (version 2.0.2)

get.geno.with.covar: Retrieve the genotype matrix with the covariates appended.

Description

This function is similar to get.geno, but it returns the genotype matrix with covariates appended for greater ease of testing all marker pairs including covariates. Covariates derived from genetic markers are placed in the appropriate location based on chromosome coordinates.

Usage

get.geno.with.covar(data.obj, geno.obj = NULL, g.covar = TRUE, p.covar = TRUE, for.pairscan = TRUE)

Arguments

data.obj
The object in which all results are stored. See read.population.
geno.obj
The object in which genotype data are stored. See read.geno.
g.covar
A logical value indicating whether covariates derived from genetic markers should be included.
p.covar
A logical value indicating whether covariates derived from phenotypes should be included.
for.pairscan
A logical value indicating if the full genotype matrix should be returned, or only the markers being evaluated in the pairscan.

Value

Returns a matrix of genotype values for the individuals and markers specified in the data object with any covariates included.

See Also

get.geno