CellScope.fm._wilcoxon_parallel
CellScope.fm. _wilcoxon_parallel (fea_1 : np.ndarray, fea_2 : np.ndarray, selected_number : int)
The _wilcoxon_parallel function conducts a Wilcoxon rank-sum test [GE65] in parallel to evaluate differential gene expression between two clusters, selecting the specified number of top genes based on the smallest p-values.
Parameters
fea_1 (
np.ndarray):Feature matrix for the first cluster.
fea_2 (
np.ndarray):Feature matrix for the second cluster.
selected_number (
int):Number of top markers to select.
Return
marker_indices (
ndarray):Indices of the top markers based on Wilcoxon rank-sum test.
p_values (
ndarray):P-values of the selected markers.