get_geno_with_covar {cape} | R Documentation |
Return the genotype matrix with covariates added.
Description
For pairwise testing, cape appends the covariates to the genotype matrix. This function performs that task.
Usage
get_geno_with_covar(
data_obj,
geno_obj = NULL,
g_covar = TRUE,
p_covar = TRUE,
for_pairscan = TRUE
)
Arguments
data_obj |
The cape object. See |
geno_obj |
A genotype object. |
g_covar |
A logical value indicating whether to append genotype-derived covariates to the final matrix. Defaults to TRUE. |
p_covar |
A logical value indicating whether to append phenotype-derived covariates to the final matrix. Defaults to TRUE. |
for_pairscan |
If TRUE, the function returns the genotype matrix already designated for the pairscan. Otherwise it returns the full genotype matrix as specified by data_obj$geno_names. |
Value
Returns a genotype matrix with covariates appended.
[Package cape version 3.1.2 Index]