scripts/60a_mixomics.Rnw
Version 1

_p_VinskaTrta/_I_EnViRoS/_S_01_Integ/_A_01_Desc-R/

SEEK ID: https://testing.sysmo-db.org/documents/560?version=1

Filename: scripts/60a_mixomics.Rnw  Download

Format: Plain text document

Size: 1.08 KB

% -*- TeX:Rnw:UTF-8 -*-
% ----------------------------------------------------------------
% .R knitr file  ************************************************
% ----------------------------------------------------------------
%%
<<echo=FALSE>>=
###############################################
##                                           ##
## (c) Andrej Blejec (andrej.blejec@nib.si)  ##
##                                           ##
###############################################
@
<<echo=FALSE,results='hide'>>=
options(width=70)
@

\section{Canonical correlation - rCCA}

Dimensionality of the problem requires regularized Canonical correlation analysis (rCCA). We will follow the methods implemented in the package \pkg{mixOmics}. For explanation see \url{http://mixomics.org/methods/rcca/}.

<<>>=
library(mixOmics)
@

Check colinearity of covariance matrices

Metabolites
<<>>=
covM <- cov(M)
det(covM)
heatmap(covM)
@

Transcripts, small submatrix, determinant almost zero
<<>>=
covT <- cov(T[,sample(1:ncol(T), min(50, ncol(T)))])
det(covT)
heatmap(covT)
@
help Creators and Submitter
Creator
Submitter
Activity

Views: 784   Downloads: 41

Created: 7th Nov 2021 at 15:25

Last updated: 7th Nov 2021 at 15:25

help Tags
help Attributions

None

Version History

Version 1 (earliest) Created 7th Nov 2021 at 15:25 by Andrej Blejec

No revision comments

Powered by
(v.1.18.0)