Description Usage Arguments Value Examples
View source: R/covariateAssociationCheck.R
Check the association between sample covariates and independent/principal components.
1 2 | covarAssociationCheck(input_list = NULL, covars = NULL, col_names = NULL,
cor_threshold = 0.05)
|
input_list |
ICA or PCA object generated by |
covars |
A dataframe of covariates with each row for a sample and each column for a covariate. |
col_names |
Column names of |
cor_threshold |
Bonferroni threshold that is going to be used for identifying significant associations. |
The output will be the input_list
with additional entries
comp_cov, covars, covar_threshold, covar_pvals
.
comp_cov
will contain a list with entries for each component
showing the associated covariate and p-value.
covars
will contain a copy of sample_info to keep all
the data in one place.
covar_threshold
will record the threshold
used to call significant associations.
covar_pvals
will contain the matrix of p-values
for all covariate and component pairs.
1 2 3 4 5 | data(expr_data, sample_info)
pca_result <- runPCA(expr_data)
pca_result <- covarAssociationCheck(pca_result, covars = sample_info)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.