getSampleCorrelation: getSampleCorrelation

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/clustering.R

Description

Get correlation between samples based on bias corrected deviations

Usage

1
getSampleCorrelation(object, threshold = 1.5)

Arguments

object

deviations result

threshold

threshold for variability

Details

This function will compute the correlation between samples based on the normalized deviations. It will first remove correlated motifs/peak sets. Then the pearson correlation coefficient will be computed and returned.

Value

correlation matrix between samples

Author(s)

Alicia Schep

See Also

getSampleDistance

Examples

1
2
3
4
5
6
7
# Load very small example results from computeDeviations
data(mini_dev, package = "chromVAR")
sample_cor <- getSampleCorrelation(mini_dev, threshold = 0.8)  
# setting very low variabilitiy threshold because this is mini data set
# threshold should generally be above 1
# Use plotVariability to get a sense of an appropriate threshold
# As this is mini data set, results probably not meaningful!

chromVAR documentation built on Nov. 8, 2020, 6:46 p.m.