extract_counts: Extract counts matrix from different types of expression...

Description Usage Arguments Value

View source: R/extract_counts.R

Description

This is a helper function to extract the counts matrix from different gene expression object classes. It is used by many other functions to enable counts being input as matrices, data.frames, EList or DGEList objects. It determines the class of the object and returns the counts as a data.frame (default) or matrix.

Usage

1
extract_counts(counts, return_class=NULL)

Arguments

counts

an object from which counts can be extracted. May be of class matrix, data.frame, EList, DGElist, ExpressionSet, eSet.

return_class

optional, the class for the object to be returned. Defaults to NULL, which causes the counts portion of the object to be returned as-is.

Value

A matrix or data frame.


mjdufort/countSubsetNorm documentation built on Nov. 7, 2019, 6:37 p.m.