CCA_from_file: Do Canonical correlation analysis

Description Usage Arguments Details

View source: R/CCA_from_file.R

Description

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

Usage

1
CCA_from_file(file1, file2, rank, pval_method)

Arguments

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

Details

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)


KSheu/ksheu.lib documentation built on Oct. 14, 2020, 11:55 p.m.