Load the reference genome data for SNPs of interest

load_ref_genome_data(snps, ref_genome, dbSNP = c(144, 155), msg = NULL)

Source

sumstats_dt <- formatted_example() rsids <- MungeSumstats:::load_ref_genome_data(snps = sumstats_dt$SNP, ref_genome = "GRCH37", dbSNP=144)

Arguments

snps

Character vector SNPs by rs_id from sumstats file of interest.

ref_genome

Name of the reference genome used for the GWAS (GRCh37 or GRCh38)

dbSNP

version of dbSNP to be used (144 or 155)

msg

Optional name of the column missing from the dataset in question. Default is NULL

Value

data table of snpsById, filtered to SNPs of interest.