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 :
ndarray
ndarray
(default:array([200, 200, 200, 200, 200])
) cell counts for control samples
- abs_change :
ndarray
ndarray
(default:array([50, 0, 0, 0, 0])
) change of first cell type in terms of cell counts
- n_total :
int
int
(default:1000
) number of cells per sample. This stays constant over all samples!!!
- counts_before :
- Return type
- Returns
Returns an intercept and an effect array
intercepts – intercept parameters
slopes – slope parameters