Skip to contents

Create an example SummarizedExperiment object with spatial data

Usage

example_sce(
  n_row = 10,
  n_col = 10,
  n_gene = 1000,
  lambda = 2,
  frac_sparse = 0.95
)

Arguments

n_row

integer; number of simulated spatial pixel rows

n_col

integer; number of simulated spatial pixel columns

n_gene

integer; number of simulated genes

lambda

numeric; poisson parameter

frac_sparse

numeric; fraction of 0s.

Value

SummarizedExperiment object

Examples


example_sce()
#> class: SummarizedExperiment 
#> dim: 1000 100 
#> metadata(0):
#> assays(2): counts logcounts
#> rownames(1000): Feature 1 Feature 2 ... Feature 999 Feature 1000
#> rowData names(0):
#> colnames(100): Pixel 1 Pixel 2 ... Pixel 99 Pixel 100
#> colData names(2): row col