Mock up a mosaic data list using simulated data, for use in documentation examples.
character vector of mock datasets.
integer vector of cells in each mock dataset.
list containing integer vectors of features measured in each mock dataset.
name of function to simulate data, default "rnorm".
further arguments passed to `fun`.
assay_list a list of data matrices with rownames (features) specified.
set.seed(2021)
assay_list = mockMosaicData()
lapply(assay_list, dim)
#> $D1
#> [1] 150 50
#>
#> $D2
#> [1] 150 50
#>
#> $D3
#> [1] 150 50
#>
# simulate data from another distribution
assay_list = mockMosaicData(fun = "rnbinom", size = 5, prob = 0.5)
lapply(assay_list, dim)
#> $D1
#> [1] 150 50
#>
#> $D2
#> [1] 150 50
#>
#> $D3
#> [1] 150 50
#>