subsetSRT | R Documentation |
Subset SRT object based on domain labels of interest
subsetSRT(simsrt, sel_label = NULL)
simsrt |
A SRTsim object |
sel_label |
A vector of selected domain labels used for the data generation |
Returns a spatialExperiment-based object
## Create a simSRT object
toySRT <- createSRT(count_in=toyData$toyCount,loc_in = toyData$toyInfo)
set.seed(1)
## Only Keep the Spatial Locations labelled as "A" in the reference data
subtoySRT <- subsetSRT(toySRT,sel_label = "A")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.