Construct a GWASSumStats from a data.frame with
standardized column names.
Arguments
- data
A data.frame with at minimum columns: SNP, CHR, BP, A1, A2, Z, N.
- trait_name
Character, name for the trait.
- genome
Character, genome build (e.g., "hg19", "hg38").
- var_y
Numeric, phenotype variance. For case-control studies this is
1 / (phi * (1 - phi))wherephi = n_case / n. NULL for quantitative traits.