DGEListToLongTable: Convert a DGEList object to a long data.frame containing...

DGEListToLongTableR Documentation

Convert a DGEList object to a long data.frame containing expression, feature annotation, and sample annotation

Description

Convert a DGEList object to a long data.frame containing expression, feature annotation, and sample annotation

Usage

DGEListToLongTable(x, exprsFun = function(dgeList) cpm(dgeList, log = TRUE))

Arguments

x

A DGEList object

exprsFun

A function to convert counts to expression data. Default: logCPM

Note

Columns with empty names will be discard.

Examples

mat <- matrix(rnbinom(100, mu=5, size=2), ncol=10)
rownames(mat) <- sprintf("gene%d", 1:nrow(mat))
y <- edgeR::DGEList(counts=mat, group=rep(1:2, each=5))
DGEListToLongTable(y)


bedapub/ribiosNGS documentation built on Feb. 10, 2025, 12:34 a.m.