SE2DGEList: SummarizedExperiment to DGEList

Description Usage Arguments Details Value Author(s) Examples

View source: R/SE2DGEList.R

Description

Given any SummarizedExperiment data object, extract basic information needed and convert it into a DGEList object.

Usage

1
SE2DGEList(object)

Arguments

object

a SummarizedExperiment object. Must have counts in its assay component.

Details

This function takes a SummarizedExperiment data object as input. The counts of the assay component of the input SummarizedExperiment data object is extracted and used as the counts component of the output DGEList object. The rowRanges or rowData of the input is converted into a data.frame and used as genes in the output. The colData of the input is also converted into a data.frame and used as the sample information in the output.

Value

A DGEList object.

Author(s)

Yunshun Chen and Gordon Smyth

Examples

1
2
3
4
5
6
## Not run: 
library(SummarizedExperiment)
example(SummarizedExperiment)
y <- SE2DGEList(se)

## End(Not run)

hiraksarkar/edgeR_fork documentation built on Dec. 20, 2021, 3:52 p.m.