Perform meta-analysis of GWAS summary statistics datasets cleaned by tidyGWAS
meta_analyze.Rd
meta_analyze()
will:
flip the effect allele to the reference allele (using either GRCh37 or GRCh38), control with
ref
variant id is constructed using
by
columnsEAF (allele frequency) and INFO (imputation quality) are weighted by sample size, if present
CaseN, N, ControlN and EffectiveN are all summed and carried forward
Arguments
- dset
an
arrow::open_dataset()
object- by
a character vector of column names to group by. Default is c("CHR", "POS", "RSID", "EffectAllele", "OtherAllele")
- method
method to use for performing meta-analysis. Currently, only IVW (based on standard errors) is supported.
- ref
either "REF_37" or "REF_38", depending on which column you want to use to standardize reference allele
Examples
if (FALSE) { # \dontrun{
dset <- arrow::open_dataset("path_to/sumstats/")
res <- meta_analyze(dset)
} # }