Download and decompress the genome reference needed to run map_snps_to_genes, If the file already exists, it will simply return the path.
get_genome_ref(
genome_ref_path = NULL,
storage_dir = tools::R_user_dir("MAGMA.Celltyping", which = "cache"),
method = c("magma"),
population = c("eur", "afr", "amr", "eas", "sas"),
timeout = 60 * 5,
verbose = TRUE
)
If not NULL
and file exists,
this file path will be returned.
Where to store genome ref.
Get reference genome data from the MAGMA server (slow).
Which population subset of the genome reference to include.
"eur" : European descent (Default simply because this is currently the most common GWAS subpopulation).
"afr" : African descent.
"amr" : Ad Mixed American descent.
"eas" : East Asian descent.
"sas" : South Asian descent.
Number seconds to wait before ending the download (Default: 5 minutes).
Print messages.
Directory where the genome reference data is stored.
if (FALSE) { # \dontrun{
genome_ref_path <- get_genome_ref()
} # }