-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathget_genome_ref.Rd
54 lines (49 loc) · 1.46 KB
/
get_genome_ref.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_genome_ref.R
\name{get_genome_ref}
\alias{get_genome_ref}
\title{Download genome ref}
\usage{
get_genome_ref(
genome_ref_path = NULL,
storage_dir = tools::R_user_dir("MAGMA.Celltyping", which = "cache"),
method = c("magma", "piggback"),
population = c("eur", "afr", "amr", "eas", "sas"),
timeout = 60 * 5,
verbose = TRUE
)
}
\arguments{
\item{genome_ref_path}{If not \code{NULL} and file exists,
this file path will be returned.}
\item{storage_dir}{Where to store genome ref.}
\item{method}{Get reference genome data from the
\href{https://ctg.cncr.nl/software/MAGMA/ref_data/}{MAGMA server} (slow).}
\item{population}{Which population subset of the genome reference
to include.
\itemize{
\item{"eur" : }{European descent
(Default simply because this is currently
the most common GWAS subpopulation).}
\item{"afr" : }{African descent.}
\item{"amr" : }{Ad Mixed American descent.}
\item{"eas" : }{East Asian descent.}
\item{"sas" : }{South Asian descent.}
}}
\item{timeout}{Number seconds to wait before ending the download
(Default: 5 minutes).}
\item{verbose}{Print messages.}
}
\value{
Directory where the genome reference data is stored.
}
\description{
Download and decompress the genome reference needed to run
\link[MAGMA.Celltyping]{map_snps_to_genes},
If the file already exists, it will simply return the path.
}
\examples{
\dontrun{
genome_ref_path <- MAGMA.Celltyping::get_genome_ref()
}
}