averageReplicates: Average Assays Across Replicates

Description Usage Arguments Value Examples

View source: R/averageReplicates.R

Description

This function takes a list of SummarizedExperiment objects. It averages the requested assay between all input objects and returns a new single SummarizedExperiment object with the averaged assay.

Usage

1
averageReplicates(list, assay.type = "matrix")

Arguments

list

A list of SummarizedExperiment objects.

assay.type

Name the assay to average between all samples.

Value

A SummarizedExperiment object with the averaged assay.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# Prepare example data ----

sample_names <- c("A", "B", "C")

se_list <- generateDeeptoolsExperiments(20, 10, sample_names)
se_list

# Usage ----

averageReplicates(se_list)

kevinrue/deeperTools documentation built on Feb. 28, 2020, 7:45 p.m.