sccoda.util.helper_functions.sample_size_estimate

sccoda.util.helper_functions.sample_size_estimate(mcc_desired, increase, lf_increase)

calculates the estimated number of required samples for fixed MCC, absolute increase and log2-fold change using the fitted linear model from Büttner, Ostner et al., 2020

Linear model parameters:

  • (Intercept): -1.3675613850217

  • total_samples: 0.0193158965178381

  • log_fold_increase: 0.704729538709909

  • log_increase: 0.315857162659738

  • log_fold_increase: -0.0927955725385892

Parameters
mcc_desired : floatfloat

desired MCC value

increase : floatfloat

mean absolute increase of cells between the groups

lf_increase : floatfloat

mean log2-fold increase of cells from one group to the other

Return type

intint

Returns

  • sample size estimate

  • n_samples – int – estimated number of required samples