R/harmonization.R
harmonize_sumstats_LD.Rd
Harmonize GWAS summary statistics with LD reference
harmonize_sumstats_LD(
sumstats,
LD_snp_info,
strand_flip = TRUE,
remove_strand_ambig = TRUE
)
A data frame of GWAS summary statistics, including columns "snp" (SNP ID), a0" (reference allele), "a1" (effect allele), "beta", and "zscore".
a data frame, SNP info for LD reference, with columns "chrom", "id", "pos", "alt", "ref", "locus" (optional)
Whether to flip signs when reverse complement matches? (default is TRUE).
Whether to remove ambiguous alleles (A/T and C/G)? (default is TRUE).
a data frame of harmonized GWAS summary statistics