SC2Spa.me.DEEI_sub

SC2Spa.me.DEEI_sub(ij: list, Count_excl: array, Prob_excl: array, A_S: array, A_E: array, genes: list, n_cell: int, p_coef: int)

Calculate Balanced Mutual exclusivity and Directed exclusively express index (subprocess)

Parameters

ij

indices of gene pairs

Count_excl

Count matrix of exclusive events. Prob_excl[i, j]: the probability that gene i is expressed

but gene j is not expressed

Prob_excl

Probability matrix of exclusive events. Count_excl[i, j]: number of occurrence that gene i is expressed

but gene j is not expressed

A_S

boolean matrix, True if a gene is suppressed in one cell. Shape is (cell, gene).

A_E

boolean matrix, True if a gene is expressed in one cell. Shape is (cell, gene).

genes

A list of genes

n_cell

number of cells

p_coef

penalty factor

Returns

DEEI

Mutual exclusivity statistics for given gene pairs ij