Description Usage Arguments Details Value Author(s) Examples
View source: R/listTestFiles.R
List all test files managed by DropletTestFiles on ExperimentHub.
1 2 3 4 5 6 7 8 | listTestFiles(
hub = ExperimentHub(),
dataset = NULL,
version = NULL,
latest = TRUE
)
getTestFile(path, hub = ExperimentHub(), prefix = TRUE)
|
hub |
An ExperimentHub object. |
dataset |
String specifying the dataset to search for, e.g., |
version |
String specifying the version of the files to search for. |
latest |
Logical scalar indicating whether the latest version of each file should be presented.
Only used if |
path |
String containing the |
prefix |
Logical scalar indicating whether |
Versions refer to those of the DropletTestFiles package itself, and refer to the version of the package in which a particular dataset was added.
A DataFrame containing information on all relevant test files (one per row).
Of particular interest are the columns file.dataset
, file.version
and file.name
,
containing the dataset, version and name of each test file.
Aaron Lun
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | # Getting everything:
listTestFiles()
# Getting all files for a particular dataset.
out <- listTestFiles(dataset="tenx-3.1.0-5k_pbmc_protein_v3")
out
# Downloading a resource to a local file, using an EH number:
library(ExperimentHub)
hub <- ExperimentHub()
hub[[rownames(out)[1]]]
# Downloading the same resource using an RDataPath:
getTestFile(out$rdatapath[1], prefix=FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.