sccoda.util.data_generation.counts_from_first

sccoda.util.data_generation.counts_from_first(b_0=200, n_total=1000, K=5)

Calculates a count vector from a given first entry, length and sum. The entries 2…K will get the same value.

Parameters
b_0 : intint (default: 200)

size of first entry

n_total : intint (default: 1000)

total sum of all entries

K : intint (default: 5)

length of output vector (number of cell types)

Return type

ndarrayndarray

Returns

  • An intercept array

  • b – count vector (not necessarily integer), size K