Skip to content

rss_analysis: effective sample size for case/control GWAS - #1391

Merged
danielnachun merged 1 commit into
StatFunGen:mainfrom
Yining97:gwas-effective-n
Jul 21, 2026
Merged

rss_analysis: effective sample size for case/control GWAS#1391
danielnachun merged 1 commit into
StatFunGen:mainfrom
Yining97:gwas-effective-n

Conversation

@Yining97

Copy link
Copy Markdown
Contributor

Wires per-variant n_case/n_control (and a --gwas-meta study-level fallback) into rss_analysis so case/control GWAS use effective N. Depends on pecotmr's effective-N PR (effectiveN() + summaryStatsQc(effectiveN=)); needs pecotmr reinstalled from merged main before running. Validated in test_run/gwas_effective_n_test/VALIDATION.md.

construct.R attaches per-variant n_case/n_control (N_CASE/N_CONTROL) and no longer
requires a precomputed N when they are present; --effective-n (default on) forwards
to summaryStatsQc(effectiveN=). Study-level fallback: gwas_rss_manifest.R carries
n_case/n_control from --gwas-meta into the manifest and the construct step forwards
them as --n-case/--n-control. effective_n exposed in rss_analysis.ipynb.
@danielnachun
danielnachun merged commit 5e23886 into StatFunGen:main Jul 21, 2026
2 checks passed
@Yining97
Yining97 deleted the gwas-effective-n branch July 27, 2026 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants