CellScope.fm._t_test_parallel

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

The _t_test_parallel function performs a t-test [KT15] in parallel to compare gene expression between two clusters and selects the top genes based on the specified number of genes with the most significant 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 t-test.

  • p_values (ndarray):

    P-values of the selected markers.