View source: R/get_geno_with_covar.R
get_geno_with_covar | R Documentation |
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
)
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. |
Returns a genotype matrix with covariates appended.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.