Skip to contents

mergeSignalMatrices: aggregates two or more signal matrices.

Usage

mergeSignalMatrices(ml, aggregation = c("mean", "sum", "median"), assay = 1L)

Arguments

ml

A named list of signal matrices or an EnrichmentSE object as produced by signal2Matrix

aggregation

The method to aggregate matrices

assay

Assay to use (ignored unless `ml` is an ESE object), defaults to the first assay.

Value

A single `normalizedMatrix` object.

Examples

# we first get an EnrichmentSE object:
data(exampleESE)
# we merge the two tracks:
merged <- mergeSignalMatrices(exampleESE)
# we could then plot the merge (not run):
# plotEnrichedHeatmaps(merged)