cor2An(mat1, mat2, lab, type.corr = c("pearson", "spearman"), cutoff_zval = 0)
'pearson'
or 'spearman'
mat1
and
mat2
, It must be taken into account by the user that if
cutoff_zval
is different from NULL or zero, the
computation will be slowler since each pair of component
is treated individually.
When cutoff_zval
is specified, for each pair of
components, genes that are included in the circle of
center 0 and radius cutoff_zval
are excluded from
the computation of the correlation between the gene
projection of the two components.
rcorr
, cor.test
, compareAn
cor2An(mat1=matrix(rnorm(10000),nrow=1000,ncol=10), mat2=matrix(rnorm(10000),nrow=1000,ncol=10),
lab=c("An1","An2"), type.corr="pearson")
Run the code above in your browser using DataLab