run_cca | R Documentation |
Input: matrix A (rows as samples, cols as variables(drugs, genes)) matrix B (rows as samples, cols as variables(drugs, genes))
run_cca(df1, df2, ncomp, save_cca.obj = F, savename)
df1 |
numeric dataframe/matrix A |
df2 |
numeric dataframe/matrix B |
ncomp |
int, numbers of components to output |
save_cca.obj |
logical, default = F; option to save cca object |
savename |
string, name of the output file |
Note: 1) matrix A and B need to be matched by samples 2) both matrices should be numeric - so sample names should be rownames or removed, not the first column 3) numbers of variables (columns) > numbers of samples (rows)
Output: saves cca object from mixOmics package (optional) writes to file average variate scores and projected loadings of decomposed matrices that maximize the correlation between A and B
cca object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.