R/load_ref_genome_data.R
load_ref_genome_data.Rd
Load the reference genome data for SNPs of interest
load_ref_genome_data(snps, ref_genome, dbSNP = c(144, 155), msg = NULL)
sumstats_dt <- formatted_example()
rsids <- MungeSumstats:::load_ref_genome_data(snps = sumstats_dt$SNP,
ref_genome = "GRCH37",
dbSNP=144)
Character vector SNPs by rs_id from sumstats file of interest.
Name of the reference genome used for the GWAS (GRCh37 or GRCh38)
version of dbSNP to be used (144 or 155)
Optional name of the column missing from the dataset in question. Default is NULL
data table of snpsById, filtered to SNPs of interest.