dot-SummarizedExperiment: Subtract two SummarizedExperiments

-.SummarizedExperimentR Documentation

Subtract two SummarizedExperiments

Description

Subtracts the values from each of the underlying assay values for 2 se's.

Usage

## S3 method for class 'SummarizedExperiment'
se1 - se2

Arguments

se1, se2

SummarizedExperiments for which se2 values will be subtracted from se1 values. Need to have the same rowData and colData

Value

A SummarizedExperiment after the subtract operation

Examples

#create subset se's for time == 0 and time == 4. Then subtract their values.
#remove time to make colData the same
data(seq_se)
t0 <- seq_se %>% filter(col, time == 0) %>% select(col, -time)
t4 <- seq_se %>% filter(col, time == 4) %>% select(col, -time)
t4 - t0

martijnvanattekum/cleanse documentation built on Nov. 20, 2023, 8:28 p.m.