getCounts: getCounts

View source: R/helperFunctions.R

getCountsR Documentation

getCounts

Description

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

Usage

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

 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)

rhondabacher/Trendy documentation built on Oct. 26, 2023, 3:46 a.m.