Carries out a sparse canonical correlation analysis
mPhen.cca(genoData, phenoObject, opts =mPhen.options("regression"),
subinds = 1:(dim(genoData)[1]),
vs.G = opts$mPhen.variable.selection,
vs.P = opts$mPhen.variable.selection
)
A 2 dimensional array. The first dimension (rows) corresponds to individuals, and row.names are inidividual IDs. The second dimension corresponds to SNPS, with col.names equal to the snp identifiers. The entries are either genotypes, or expected genotypes.
A phenotype object prepared by mPhen.preparePheno.
A list of options, which is obtained from mPhen.options("regression"). To get more information about these options, type mPhen.options("regression",descr=TRUE).
If true performs variable selection on genotypes. Is equal to opts$mPhen.variable_selection by default
If true performs variable selection on phenotypes. Is equal to opts$mPhen.variable_selection by default
This indicates the indices of individuals to include in the analysis. It is possible to have repeat indices (i.e. for bootstrap)
A list with following elements
Phenotype weights
Genotype weights
Single (combined) phenotype analysis results against all genotypes
Multiple phenotype analysis results against single (combined) genotype