spatialvi.data.synthetic_scrna

spatialvi.data.synthetic_scrna#

spatialvi.data.synthetic_scrna(n_cells=2000, n_genes=200, n_cell_types=5, n_batches=1, library_size_mean=10000, library_size_std=3000, dropout_rate=0.3, seed=None)[source]#

Generate synthetic single-cell RNA-seq data.

Creates an AnnData object suitable for use as a reference for spatial deconvolution methods.

Parameters:
  • n_cells (int) – Number of cells to generate.

  • n_genes (int) – Number of genes.

  • n_cell_types (int) – Number of cell types.

  • n_batches (int) – Number of batches.

  • library_size_mean (float) – Mean library size.

  • library_size_std (float) – Standard deviation of library size.

  • dropout_rate (float) – Rate of dropout (zero inflation).

  • seed (int | None) – Random seed for reproducibility.

  • n_cells (int)

  • n_genes (int)

  • n_cell_types (int)

  • n_batches (int)

  • library_size_mean (float)

  • library_size_std (float)

  • dropout_rate (float)

  • seed (int | None)

Return type:

AnnData

Returns:

AnnData object with synthetic scRNA-seq data.