R/ctwas_preprocess_z_snp.R
preprocess_z_snp.Rd
Preprocess GWAS z-scores, harmonize GWAS z-scores with LD reference
preprocess_z_snp(
z_snp,
snp_map,
drop_multiallelic = TRUE,
drop_strand_ambig = TRUE,
varID_converter_fun = NULL,
logfile = NULL
)
A data frame with two columns: "id", "A1", "A2", "z". giving the z scores for snps. "A1" is effect allele. "A2" is the other allele.
a list of SNP-to-region map for the reference.
If TRUE, multiallelic variants will be dropped from the summary statistics.
If TRUE remove strand ambiguous variants (A/T, G/C).
a user defined function to convert GWAS variant IDs to the reference variant format.
The log filename. If NULL, print log info on screen.
a data frame preprocessed GWAS z-scores