Download Data with Zenodo DOI and Return SeuratObject.
Usage
ParseZenodo(
doi = NULL,
file.ext = c("rdata", "rds", "h5ad"),
doi.df = NULL,
out.folder = NULL,
timeout = 1000,
quiet = FALSE,
parallel = TRUE,
use.cores = NULL,
return.seu = FALSE,
merge = TRUE
)Arguments
- doi
A vector of Zenodo DOIs to download. Default: NULL.
- file.ext
The valid file extension for download. When NULL, use all files. Default: c("rdata", "rds", "h5ad").
- doi.df
DOI dataframe for download. This is useful when something wrong happens in downloading (e.g. MD5 verification failure,
DownloadZenodowill return a dataframe contains failure terms.). Default: NULL. It is required to provide eitherdoiordoi.df.- out.folder
The output folder. Default: NULL (current working directory).
- timeout
Maximum request time. Default: 1000.
- quiet
Logical value, whether to show downloading progress. Default: FALSE (show).
- parallel
Logical value, whether to download parallelly. Default: TRUE. When "libcurl" is available for
download.file, the parallel is done by default (parallelcan be FALSE).- use.cores
The number of cores used. Default: NULL (the minimum value of
nrow(doi.df)(specified bydoi.dfor extract withdoi) andparallel::detectCores()).- return.seu
Logical value, whether to load downloaded datasets to Seurat. Valid when rds in
file.extand all datasets download successfully. Default: FALSE.- merge
Logical value, whether to merge Seurat list when there are multiple rds files, used when
return.seuis TRUE. Default: FALSE.