-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfetch_celldex_ref.R
More file actions
61 lines (61 loc) · 1.83 KB
/
Copy pathfetch_celldex_ref.R
File metadata and controls
61 lines (61 loc) · 1.83 KB
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
55
56
57
58
59
60
61
#' fetch_celldex_ref: Helper function to import annotation references from
#' celldex
#'
#' @description Retrieves one of the 7 available references in celldex. Should
#' be cache-agnostic by declaring the cache location as the local working
#' directory
#'
#' @param ref_name Character string to be used for retrieving references from
#' the celldex package
#' @param cache Character string to identify cache download location
#'
#' @export
#'
#' @return A celldex single cell object in SCE data structure
fetch_celldex_ref <- function(ref_name, cache = ".") {
ref <- switch(ref_name,
"hpca" = ,
"HumanPrimaryCellAtlasData" = celldex::fetchReference(
"hpca",
version = "2024-02-26",
realize.assays = TRUE, cache = "./"
),
"blueprint_encode" = ,
"BP_encode" = ,
"bpencode" = ,
"bp_encode" = ,
"BlueprintEncodeData" = celldex::fetchReference(
"blueprint_encode", "2024-02-26",
realize.assays = TRUE, cache = "./"
),
"monaco" = ,
"MonacoImmuneData" = celldex::fetchReference(
"monaco_immune", "2024-02-26",
realize.assays = TRUE, cache = "./"
),
"immu_cell_exp" = ,
"DatabaseImmuneCellExpressionData" = ,
"dice" = celldex::fetchReference(
"dice", "2024-02-26",
realize.assays = TRUE, cache = "./"
),
"hematopoietic" = ,
"NovershternHematopoieticData" = ,
"novershtern_hematopoietic" = ,
"novershtern" = celldex::fetchReference(
"novershtern_hematopoietic", "2024-02-26",
realize.assays = TRUE, cache = "./"
),
"immgen" = ,
"ImmGenData" = celldex::fetchReference(
"immgen", "2024-02-26",
realize.assays = TRUE, cache = "./"
),
"mouseRNAseq" = ,
"MouseRNAseqData" = celldex::fetchReference(
"mouse_rnaseq", "2024-02-26",
realize.assays = TRUE, cache = "./"
)
)
return(ref)
}