Learn R Programming

SRTsim (version 0.99.7)

createSRT: Create simSRT object

Description

Create simSRT object

Usage

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

Value

Returns a spatialExperiment-based object

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.

Examples

Run this code

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

## Explore the object
toySRT 

Run the code above in your browser using DataLab