For pairwise testing, cape appends the covariates to the genotype matrix. This function performs that task.
get_geno_with_covar(
data_obj,
geno_obj = NULL,
g_covar = TRUE,
p_covar = TRUE,
for_pairscan = TRUE
)
Returns a genotype matrix with covariates appended.
The cape object. See Cape
.
A genotype object.
A logical value indicating whether to append genotype-derived covariates to the final matrix. Defaults to TRUE.
A logical value indicating whether to append phenotype-derived covariates to the final matrix. Defaults to TRUE.
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.