structboost.SimulationResult¶
- class structboost.SimulationResult(counts, stage_labels, stage_sizes, marker_mask, gene_means, size_factors, batch_labels, params, gene_level=None, leaf_paths=None, hierarchy=None)[source]¶
Bases:
objectSimulated counts together with the ground truth used to generate them.
- Parameters:
marker_mask (numpy.ndarray)
- counts¶
Integer UMI counts, shape (n, n_genes).
- Type:
NDArray[np.int32]
- stage_labels¶
Stage index per cell, shape (n,).
-1marks leftover background cells that belong to no stage (possible whennis not divisible bystageno).- Type:
NDArray[np.intp]
- stage_sizes¶
Number of cells per stage, shape (stageno,).
- Type:
NDArray[np.intp]
- gene_level¶
Shape
(n_genes,). Which level of the cell-type hierarchy each gene marks —0is the broadest — or-1for a noise gene. Withhierarchy=Noneevery marker is level0.- Type:
NDArray[np.intp]
- leaf_paths¶
Shape
(stageno, n_levels). Ancestry of each leaf population, soleaf_paths[k, d]is the node index of populationkat depthd. These become the per-level cell labels in the AnnData wrapper.- Type:
NDArray[np.intp]
- marker_mask¶
Boolean marker indicator, shape (stageno, n_genes).
marker_mask[k, j]is True when gene j is a marker of stage k. Genes in the overlap between two consecutive stages are True in both rows.- Type:
BoolArray
- gene_means¶
Baseline expression mean per gene (lambda_j), shape (n_genes,).
- Type:
NDArray[np.float64]
- size_factors¶
Per-cell library size factor, shape (n,). All exactly 1.0 when
lib_size_sd == 0.- Type:
NDArray[np.float64]
- batch_labels¶
Batch index per cell, shape (n,).
- Type:
NDArray[np.intp]
- params¶
Scalar simulation parameters. Contains no
Nonevalues so it can be stored inadata.unsand round-tripped through h5ad.
Methods
__init__(counts, stage_labels, stage_sizes, ...)Attributes
Genes that are a marker of at least one stage, shape (n_genes,).
- property marker_genes: numpy.ndarray¶
Genes that are a marker of at least one stage, shape (n_genes,).