scphylo.tl.partition_function#

scphylo.tl.partition_function(df_input, alpha, beta, n_samples, n_batches, muts, cells)[source]#

Calculate the probability of a mutation seeding particular cells.

Parameters
  • df_input (pandas.DataFrame) – Input genotype matrix.

  • alpha (float) – False positive error rate.

  • beta (float) – False negative error rate.

  • n_samples (int) – Number of samples to get from the distribution (suggest: 1000)

  • n_batches (int) – Number of batches to repeat the experiment (suggest: 100)

  • muts (list) – The list of mutations

  • cells (list) – The list of cells

Returns

A table of probabilities for every mutation and every batch.

Return type

pandas.DataFrame

Examples#

Reconstruct tree by Trisicell-PartF

Reconstruct tree by Trisicell-PartF