lineage.HMM.M_step ================== .. py:module:: lineage.HMM.M_step Functions --------- .. autoapisummary:: lineage.HMM.M_step.sum_nonleaf_gammas lineage.HMM.M_step.get_all_zetas Module Contents --------------- .. py:function:: sum_nonleaf_gammas(leaves_idx, gammas) Sum of the gammas of the cells that are able to divide, that is, sum the of the gammas of all the nonleaf cells. It is used in estimating the transition probability matrix. This is an inner component in calculating the overall transition probability matrix. This is downward recursion. :param leaves_idx: leaf cell indices of the lineage tree :param gammas: the gamma values for each lineage :return: the sum of gamma values for each state for non-leaf cells. .. py:function:: get_all_zetas(tree, beta_array, MSD_array, gammas, T) Sum of the list of all the zeta parent child for all the parent cells for a given state transition pair. This is an inner component in calculating the overall transition probability matrix. :param tree: CSR array representing the lineage tree :param beta_array: beta values. The conditional probability of states, given observations of the sub-tree rooted in cell_n :param MSD_array: marginal state distribution :param gammas: gamma values. The conditional probability of states, given the observation of the whole tree :param T: transition probability matrix :return: numerator for calculating the transition probabilities