getCounts: getCounts

Description Usage Arguments Value Examples

View source: R/helperFunctions.R

Description

Convenient helper function to extract the normalized expression matrix from the SummarizedExperiment

Usage

1
getCounts(DATA)

Arguments

DATA

An object of class SummarizedExperiment that contains expression data and metadata

Value

A matrix which contains the expression data where genes/features are in rows and samples are in columns

Examples

1
2
3
4
 m1 <- matrix(c(c(rnorm(50,5,1),sort(rnorm(50, 15, 5))), rnorm(100, 50,10)), 2, 100, TRUE)
 ExampleData <- 
 SummarizedExperiment::SummarizedExperiment(assays=list("Counts"=m1))
 myData <- getCounts(ExampleData)

Trendy documentation built on Nov. 8, 2020, 8:10 p.m.