Get correlation between samples based on bias corrected deviations

getSampleCorrelation(object, threshold = 1.5)

Arguments

object

deviations result

threshold

threshold for variability

Value

correlation matrix between samples

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.

See also

getSampleDistance

Examples

# NOT RUN {
# 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!
# }