CellScope.fm._diff_pct

CellScope.fm. _diff_pct (fea_1 : np.ndarray, fea_2 : np.ndarray, selected_number : int)

The _diff_pct function calculates the differential percentage of gene expression between two clusters, selecting the top genes with the highest percentage differences according to the specified number of genes.

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 percentage.

  • marker_values (ndarray):

    Differential percentage values of the selected markers.