deviationsCovariability: deviationsCovariability

Description Usage Arguments Details Value Examples

View source: R/kmers.R

Description

deviationsCovariability

Usage

1

Arguments

object

deviations result

Details

Returns the 'covariability' between motifs/kmers/peaksets. Covariability' is defined as covariance between Z-scores divided by variance of Z-scores for one motif/kmer/peakset (the row).

Value

'covariability' matrix

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
# load very small example data
data(mini_counts, package = "chromVAR")
motifs <- getJasparMotifs()
library(motifmatchr)
motif_ix <- matchMotifs(motifs, mini_counts, 
  genome = BSgenome.Hsapiens.UCSC.hg19::BSgenome.Hsapiens.UCSC.hg19)

# computing deviations
dev <- computeDeviations(object = mini_counts, 
                         annotations = motif_ix)
                         
# get covariability for just first three motifs                         
devcov <- deviationsCovariability(dev[1:3,])                         

GreenleafLab/chromVAR documentation built on Aug. 20, 2019, 11:39 a.m.