View source: R/fetch_deconvo_data.R
fetch_deconvo_data | R Documentation |
This function downloads the processed data for the experiment documented
at https://github.com/LieberInstitute/Human_DLPFC_Deconvolution.
Internally, this function downloads the data from ExperimentHub
.
fetch_deconvo_data(
type = c("rse_gene", "sce", "sce_DLPFC_example"),
destdir = tempdir(),
eh = ExperimentHub::ExperimentHub(),
bfc = BiocFileCache::BiocFileCache()
)
type |
A
|
destdir |
The destination directory to where files will be downloaded
to in case the |
eh |
An |
bfc |
A |
We are currently waiting for https://doi.org/10.1101/2024.02.09.579665 to
pass peer review at a journal, which could lead to changes requested by the
peer reviewers on the processed data for this study. Thus, this function
temporarily downloads the files from Dropbox using
BiocFileCache::bfcrpath()
unless the files are present already at
destdir
.
Note that ExperimentHub
and BiocFileCache
will cache the data and
automatically detect if you have previously downloaded it, thus making it
the preferred way to interact with the data.
This function is based on spatialLIBD::fetch_data()
.
The requested object: rse_gene
that you assign to an object
## Download the bulk RNA gene expression data
## A RangedSummarizedExperiment (41.16 MB)
if (!exists("rse-gene")) rse_gene <- fetch_deconvo_data("rse_gene")
## explore bulk data
rse_gene
## load example snRNA-seq data
## A SingleCellExperiment (4.79 MB)
if (!exists("sce_DLPFC_example")) sce_DLPFC_example <- fetch_deconvo_data("sce_DLPFC_example")
## explore example sce data
sce_DLPFC_example
## check the logcounts
SingleCellExperiment::logcounts(sce_DLPFC_example)[1:5, 1:5]
## Not run:
## download the full sce experiment object
sce_path_zip <- fetch_deconvo_data("sce")
sce_path <- unzip(sce_path_zip, exdir = tempdir())
sce <- HDF5Array::loadHDF5SummarizedExperiment(
file.path(tempdir(), "sce_DLPFC_annotated")
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.