Sample cells to reconstruct spot expression
Usage
cpp_fast_sampling(
spot_ndata,
sc_ndata_mat,
cell_indices_by_type,
spot_celltypes,
iter_num = 200L,
tolerance = 0.001,
seed = 123L
)Arguments
- spot_ndata
Spot expression vector
- sc_ndata_mat
Single-cell expression matrix
- cell_indices_by_type
List of cell indices for each cell type
- spot_celltypes
Cell types to sample for this spot
- iter_num
Maximum number of iterations
- tolerance
Convergence tolerance (unused, kept for API compatibility)
- seed
Random seed for reproducibility