Performs the GLOW omnibus test when individual variant p-values are already
computed. Reconstructs Z-scores from p-values and their signs, then runs
the omnibus test pipeline via run_bsf_tests().
GLOW_Omni_byP(
Pvalues,
Zsigns,
M,
Bstar,
PI,
test_specs = NULL,
include_snv_cct = TRUE,
return_weights = FALSE,
...
)Numeric vector of variant-level p-values (length m, in \([0,1]\)).
Numeric vector of effect direction signs (length m, +1 or -1).
Correlation matrix of Z-scores (m x m).
Numeric vector of scaled effect sizes (length m).
Numeric vector of variant-importance scores (length m, in \([0,1]\)).
List of test spec lists (default: NULL uses
default_test_specs).
Logical (default TRUE). Append SNV-level and final omnibus CCT rows.
Logical (default FALSE). If TRUE, attach the
internally-assembled weight matrix to the result (forwarded from
run_bsf_tests).
Additional arguments passed to run_bsf_tests.
Same structure as GLOW_Omni.
Algorithm:
Reconstruct Z-scores: \(Z = \Phi^{-1}(1 - p/2) \times sign\)
Call run_bsf_tests() with reconstructed Z-scores
CRITICAL: The correlation matrix M must reflect the Z-score correlation structure, not the adjusted p-value structure.
GLOW_Omni for omnibus test with Z-scores
getZ_marg_score_binary_SPA for SPA-adjusted p-values