Arguments
comp1
The first component, a vector of projections or contributions indexed by labels
comp2
The second component, a vector of projections or contributions indexed by labels
type.corr
Type of correlation to be computed, either 'pearson'
or 'spearman'
plot
if TRUE
, plot comp1
vs comp2
cutoff_zval
either NULL or 0 (default) if all genes are used to compute the correlation between the components, or a threshold to compute the correlation on the genes that have at least a scaled projection higher than cutoff_zval.
test
if TRUE the correlation test p-value is returned instead of the correlation value
alreadyTreat
if TRUE comp1 and comp2 are considered as being already treated (i.e scaled and restricted to common elements)