compute_topic_pvalues.RdTakes z-scores from differential expression analysis, computes one-sided
p-values, applies FDR correction, and binarizes based on a cutoff.
This is the core logic extracted from run_fastTopics().
compute_topic_pvalues(
z_matrix,
fdr_cutoff = 0.05,
total_bins = ceiling(3e+09/500)
)A list with:
One-sided p-value matrix (peaks x topics)
FDR-adjusted p-value matrix
Binary matrix (1 = significant peak-topic pair)
Named vector of significant peaks per topic