static SOLO.create_doublets(adata, doublet_ratio, indices=None, seed=1)[source]

Simulate doublets.

adata : AnnDataAnnData

AnnData object setup with setup_anndata().

doublet_ratio : intint

Ratio of generated doublets to produce relative to number of cells in adata or length of indices, if not None.

indices : Sequence[int] | NoneOptional[Sequence[int]] (default: None)

Indices of cells in adata to use. If None, all cells are used.

seed : intint (default: 1)

Seed for reproducibility

Return type