Skip to contents

Generate random example data for testing TorchDecon functionality. Creates a simple Seurat object and bulk expression data.

Usage

GenerateExampleData(
  n_cells = 500L,
  n_genes = 200L,
  n_celltypes = 5L,
  n_bulk_samples = 20L,
  seed = 42L
)

Arguments

n_cells

Integer. Number of cells in scRNA-seq data. Default is 500.

n_genes

Integer. Number of genes. Default is 200.

n_celltypes

Integer. Number of cell types. Default is 5.

n_bulk_samples

Integer. Number of bulk samples. Default is 20.

seed

Integer. Random seed. Default is 42.

Value

A list containing:

seurat

A Seurat object with random scRNA-seq data

bulk_data

Matrix of bulk expression data (genes x samples)

Examples

if (FALSE) { # \dontrun{
example_data <- GenerateExampleData()
seurat_obj <- example_data$seurat
bulk_data <- example_data$bulk_data
} # }