createSRT: Create simSRT object

View source: R/createSRT.R

createSRTR Documentation

Create simSRT object

Description

Create simSRT object

Usage

createSRT(count_in, loc_in, refID = "ref1")

Arguments

count_in

A gene expression count matrix

loc_in

A location dataframe with colnames x,y,label

refID

A character reference sample identifier. Default = ref1.

Value

Returns a spatialExperiment-based object

Examples


## Create a simSRT object
toySRT  <- createSRT(count_in=toyData$toyCount,loc_in = toyData$toyInfo)

## Explore the object
toySRT 

SRTsim documentation built on Jan. 13, 2023, 5:12 p.m.