sccoda.util.data_generation.b_w_from_abs_change

sccoda.util.data_generation.b_w_from_abs_change(counts_before=array([200, 200, 200, 200, 200]), abs_change=array([50, 0, 0, 0, 0]), n_total=1000)

Calculates intercepts and slopes from a starting count and an absolute change for the first cell type

Parameters
counts_before : ndarrayndarray (default: array([200, 200, 200, 200, 200]))

cell counts for control samples

abs_change : ndarrayndarray (default: array([50,  0,  0,  0,  0]))

change of first cell type in terms of cell counts

n_total : intint (default: 1000)

number of cells per sample. This stays constant over all samples!!!

Return type

Tuple[ndarray, ndarray]Tuple[ndarray, ndarray]

Returns

  • Returns an intercept and an effect array

  • intercepts – intercept parameters

  • slopes – slope parameters