44
55@nb .njit (cache = True )
66def _fdr_bh_single_row (ps_row , m ):
7- """
8- Apply Benjamini-Hochberg correction to a single row.
9- """
7+ """Apply Benjamini-Hochberg correction to a single row."""
108 # Sort the row and get indices
119 order = np .argsort (ps_row )
1210 ps_sorted = ps_row [order ]
@@ -43,9 +41,7 @@ def _fdr_bh_single_row(ps_row, m):
4341
4442@nb .njit (parallel = True , cache = True )
4543def _fdr_bh_parallel (ps , m ):
46- """
47- Apply Benjamini-Hochberg correction to all rows in parallel.
48- """
44+ """Apply Benjamini-Hochberg correction to all rows in parallel."""
4945 n_rows = ps .shape [0 ]
5046 result = np .empty_like (ps , dtype = np .float64 )
5147
@@ -56,11 +52,7 @@ def _fdr_bh_parallel(ps, m):
5652
5753
5854def _fdr_bh_axis1_numba (ps ):
59- """
60- Benjamini–Hochberg adjusted p-values along axis=1 (rows).
61- ps: numpy.ndarray (n_rows, n_tests), values in [0, 1].
62- Returns: numpy.ndarray of same shape.
63- """
55+ """Benjamini–Hochberg adjusted p-values along axis=1 (rows)."""
6456 ps = np .asarray (ps , dtype = np .float64 )
6557 if ps .ndim != 2 :
6658 raise ValueError ("ps must be 2D (n_rows, n_tests) for axis=1." )
0 commit comments