expr_cancor | R Documentation |
This function takes in a list of cluster-level PCA matrices as input and generates canonical correlation and p-value based on permutation test.
expr_cancor(
pca.ls,
sample_meta,
response_variable,
analysis_type,
num_permutations,
alternative,
component_id = 1,
ncores
)
pca.ls |
A list of cell cluster-specific PCA matrices |
sample_meta |
Sample-level metadata, where each row is a sample. Must contain 'sample' column and additional variables such as covariates or outcome of interest. |
response_variable |
A vector of response variables. |
analysis_type |
Either 'cancor' (canonical correlation) or 'regression' (F-statistic). |
num_permutations |
Number of permutations (by default: 1000). |
alternative |
A character string specifying the alternative hypothesis, must be one of "two.sided" (default), "greater" or "less". |
ncores |
Number of cores |
componen_id |
An index to extract canonical correlation component (by default: 1). |
A data frame for summary statistic (canonical correlation or F-stat), p-value and adjusted p-value for each node.
Boyang Zhang <bzhang34@jhu.edu>, Hongkai Ji
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.