View source: R/load_ref_genome_data.R
load_ref_genome_data | R Documentation |
Load the reference genome data for SNPs of interest
load_ref_genome_data(
snps,
ref_genome,
dbSNP = c(144, 155),
msg = NULL,
chr_filt = NULL
)
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 |
chr_filt |
Internal for testing - filter reference genomes and sumstats to specific chromosomes for testing. Pass a list of chroms in format: c("1","2"). Default is NULL i.e. no filtering. |
data table of snpsById, filtered to SNPs of interest.
sumstats_dt <- formatted_example()
rsids <- MungeSumstats:::load_ref_genome_data(snps = sumstats_dt$SNP,
ref_genome = "GRCH37",
dbSNP=144)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.