CellScope.fm._diff_mean
CellScope.fm. _diff_mean (fea_1 : np.ndarray, fea_2 : np.ndarray, selected_number : int)
The _diff_mean function calculates the differential mean expression of genes between two clusters
and selects the top genes with the highest mean differences, based on the specified number of genes to select.
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 differential mean.
marker_values (
ndarray):Differential mean values of the selected markers.