omicverse.datasets.create_mock_dataset

omicverse.datasets.create_mock_dataset#

omicverse.datasets.create_mock_dataset(n_cells=2000, n_genes=1500, n_cell_types=6, with_clustering=False, random_state=42)[源代码]#

Create a mock single-cell dataset for testing statistical functions.

参数:
  • n_cells (int) – Number of cells simulated in mock dataset.

  • n_genes (int) – Number of genes simulated in mock dataset.

  • n_cell_types (int) – Number of synthetic cell types.

  • with_clustering (bool) – Whether to run lightweight preprocessing and clustering-like fields.

  • random_state (int) – Random seed for deterministic dataset generation.

返回:

Simulated AnnData with expression matrix and basic metadata fields.

返回类型:

AnnData