Skip to content

Commit 4b92cce

Browse files
committed
Add ERC 8 type opttions to fetch_data()
1 parent 8c46036 commit 4b92cce

File tree

2 files changed

+89
-2
lines changed

2 files changed

+89
-2
lines changed

R/fetch_data.R

Lines changed: 81 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,15 @@ fetch_data <-
103103
"Visium_SPG_AD_Visium_wholegenome_modeling_results",
104104
"visiumStitched_brain_spe",
105105
"visiumStitched_brain_spaceranger",
106-
"visiumStitched_brain_Fiji_out"
106+
"visiumStitched_brain_Fiji_out",
107+
"LFF_spatial_ERC_SRT",
108+
"LFF_spatial_ERC_SRT_pseudobulk",
109+
"LFF_spatial_ERC_SRT_modeling_results",
110+
"LFF_spatial_ERC_snRNAseq",
111+
"LFF_spatial_ERC_snRNAseq_pseudobulk_broad",
112+
"LFF_spatial_ERC_snRNAseq_pseudobulk_subcluster",
113+
"LFF_spatial_ERC_snRNAseq_modeling_results_broad",
114+
"LFF_spatial_ERC_snRNAseq_modeling_results_subcluster",
107115
),
108116
destdir = tempdir(),
109117
eh = ExperimentHub::ExperimentHub(),
@@ -286,6 +294,78 @@ fetch_data <-
286294
file_name <- "visiumStitched_brain_fiji_out.zip"
287295
url <-
288296
"https://www.dropbox.com/scl/fi/bevo52e96f2kdwllf8dkk/visiumStitched_brain_fiji_out.zip?rlkey=ptwal8f5zxakzejwd0oqw0lhj&dl=1"
297+
} else if (type == "LFF_spatial_ERC_SRT") {
298+
tag <- "LFF_spatial_ERC"
299+
hub_title <- type
300+
301+
## While EH is not set-up
302+
file_name <- "spe_ERC_annotated.zip"
303+
url <-
304+
"https://www.dropbox.com/TODO"
305+
} else if (type == "LFF_spatial_ERC_SRT_pseudobulk") {
306+
tag <- "LFF_spatial_ERC"
307+
hub_title <- type
308+
309+
## While EH is not set-up
310+
file_name <- "spe_pseudobulk-SpD.rds"
311+
url <-
312+
"https://www.dropbox.com/TODO"
313+
} else if (type == "LFF_spatial_ERC_SRT") {
314+
tag <- "LFF_spatial_ERC"
315+
hub_title <- type
316+
317+
## While EH is not set-up
318+
file_name <- "spe_pseudobulk-SpD.rds"
319+
url <-
320+
"https://www.dropbox.com/TODO"
321+
} else if (type == "LFF_spatial_ERC_SRT_modeling_results") {
322+
tag <- "LFF_spatial_ERC"
323+
hub_title <- type
324+
325+
## While EH is not set-up
326+
file_name <- "modeling_results-SpD.rds"
327+
url <-
328+
"https://www.dropbox.com/TODO"
329+
} else if (type == "LFF_spatial_ERC_snRNAseq") {
330+
tag <- "LFF_spatial_ERC"
331+
hub_title <- type
332+
333+
## While EH is not set-up
334+
file_name <- "sce_ERC_subcluster.zip"
335+
url <-
336+
"https://www.dropbox.com/TODO"
337+
} else if (type == "LFF_spatial_ERC_snRNAseq_pseudobulk_broad") {
338+
tag <- "LFF_spatial_ERC"
339+
hub_title <- type
340+
341+
## While EH is not set-up
342+
file_name <- "sce_subcluster_pseudobulk-cell_type_broad.rds"
343+
url <-
344+
"https://www.dropbox.com/TODO"
345+
} else if (type == "LFF_spatial_ERC_snRNAseq_pseudobulk_subcluster") {
346+
tag <- "LFF_spatial_ERC"
347+
hub_title <- type
348+
349+
## While EH is not set-up
350+
file_name <- "sce_subcluster_pseudobulk-cell_type_anno.rds"
351+
url <-
352+
"https://www.dropbox.com/TODO"
353+
} else if (type == "LFF_spatial_ERC_snRNAseq_modeling_results_broad") {
354+
tag <- "LFF_spatial_ERC"
355+
hub_title <- type
356+
357+
## While EH is not set-up
358+
file_name <- "sce_subcluster_pseudobulk-cell_type_broad.rds"
359+
url <-
360+
"https://www.dropbox.com/TODO"
361+
} else if (type == "LFF_spatial_ERC_snRNAseq_modeling_results_subcluster") {
362+
tag <- "LFF_spatial_ERC"
363+
hub_title <- type
364+
365+
## While EH is not set-up
366+
file_name <- "sce_subcluster_pseudobulk-cell_type_anno.rds"
367+
url <-
368+
"https://www.dropbox.com/TODO"
289369
}
290370

291371
file_path <- file.path(destdir, file_name)

man/fetch_data.Rd

Lines changed: 8 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)