View source: R/CCA_from_file.R
CCA_from_file | R Documentation |
Input: matrix A (ex. rows as genes, cols as samples) Input: matrix B (ex. rows as genes, cols as samples) Output: writes to file scores and loadings of decomposed matrices that maximize the correlation between A and B, as well as p-values for each component
CCA_from_file(file1, file2, rank, pval_method)
file1 |
file for A matrix (.txt file) |
file2 |
file for B matrix |
rank |
rank for the decompostiton |
pval_method |
default = "Wilks". Method for testing signficance of components (Wilks, Hotelling,Pillai,Roy) |
standardize |
default = T |
WARNING - script will internally convert all colnames to alphanumeric only.
Returns cca object, number of significant canonical dimensions (can be smaller than #of vars in smaller set)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.