Module: cell_type_general

class cytomulate.cell_type_general.GeneralCellType(label, cell_id, n_markers)[source]

Bases: object

sample_cell(n_samples)[source]

Draw random samples from the cell type model

Parameters:

n_samples (int) – Number of samples

Return type:

Tuple[ndarray, ndarray]

Returns:

  • X (np.ndarray) – The actual expression matrix

  • expressed_index (np.ndarray: and) – An index array of positive values which will be used during the actual sample function in the CytofData object