motifCounts: motifCounts

Description Usage Arguments Value Methods (by class) Examples

Description

get motif counts from SummarizedExperiment object

Usage

1
2
3
4
motifCounts(object)

## S4 method for signature 'SummarizedExperiment'
motifCounts(object)

Arguments

object

SummarizedExperiment object with counts assay

Value

matrix with counts

Methods (by class)

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
data(example_motifs, package = "motifmatchr")

# Make a set of peaks
peaks <- GenomicRanges::GRanges(seqnames = c("chr1","chr2","chr2"),
                ranges = IRanges::IRanges(start = c(76585873,42772928,
                                          100183786),
                                          width = 500))

# Get motif matches for example motifs
motif_ix <- matchMotifs(example_motifs, peaks,
                         genome = "BSgenome.Hsapiens.UCSC.hg19",
                         out = "scores")

motifCounts(motif_ix)

motifmatchr documentation built on Nov. 1, 2018, 3:51 a.m.