SC2Spa.me.calc_BME_sub

SC2Spa.me.calc_BME_sub(ij: list, A: array, genes: list, n_resamples: int)

Calculate Balanced Mutual exclusivity (subprocess)

Parameters

ij

indices of gene pairs

A

gene expression matrix. Shape is (cell, gene).

genes

A list of genes. The order of genes matches with A.

n_resamples

The number of resamples performed to form the bootstrap distribution of the statistic

Returns

BME_score

Mutual exclusivity statistics for given gene pairs ij