Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/pdex/_single_cell.py
Original file line number Diff line number Diff line change
Expand Up @@ -574,6 +574,7 @@ def _process_single_target_vectorized(

# Statistical tests across all genes simultaneously
p_values, statistics = _vectorized_ranksum_test_numba(X_target, X_ref)
pairwise_fdr = false_discovery_control(p_values, method="bh")

# Build results for all genes at once using vectorized operations
target_results = [
Expand All @@ -587,6 +588,7 @@ def _process_single_target_vectorized(
"fold_change": fc[i],
"p_value": p_values[i],
"statistic": statistics[i],
"pairwise_fdr": pairwise_fdr[i],
}
for i in range(len(gene_names))
]
Expand Down