DropletTestFiles 1.8.0
The DropletTestFiles package contains files for testing droplet-based utilities, such as those in the DropletUtils package. These files are literally the raw output of pipelines like 10X Genomics’ CellRanger software suite, and are usually not in an (immediately) analysis-ready state. After all, the idea is to provide some material to test the utilities to get to such a state!
This package doesn’t do anything except pull down and serve up files, so there’s not much to talk about here. There are two convenience functions to help obtain content from ExperimentHub. The first is to list all available resources managed by DropletTestFiles:
library(DropletTestFiles)
out <- listTestFiles()
out
## DataFrame with 52 rows and 18 columns
## title dataprovider species taxonomyid
## <character> <character> <character> <integer>
## EH3685 10X brain nuclei 1k .. 10X Genomics Mus musculus 10090
## EH3686 10X brain nuclei 1k .. 10X Genomics Mus musculus 10090
## EH3687 10X brain nuclei 1k .. 10X Genomics Mus musculus 10090
## EH3688 10X brain nuclei 1k .. 10X Genomics Mus musculus 10090
## EH3689 10X brain nuclei 1k .. 10X Genomics Mus musculus 10090
## ... ... ... ... ...
## EH3732 HiSeq 4000-sequenced.. Jonathan Griffiths Mus musculus 10090
## EH3769 10X PBMC 4k raw coun.. 10X Genomics Homo sapiens 9606
## EH3770 10X PBMC 4k filtered.. 10X Genomics Homo sapiens 9606
## EH3771 10X PBMC 4k raw HDF5.. 10X Genomics Homo sapiens 9606
## EH3772 10X PBMC 4k molecule.. 10X Genomics Homo sapiens 9606
## genome description coordinate_1_based
## <character> <character> <integer>
## EH3685 mm10 Molecule information.. 1
## EH3686 mm10 Filtered HDF5 matrix.. 1
## EH3687 mm10 Raw HDF5 matrix for .. 1
## EH3688 mm10 Filtered count matri.. 1
## EH3689 mm10 Raw count matrix for.. 1
## ... ... ... ...
## EH3732 mm10 Molecule information.. 1
## EH3769 hg38 Raw count matrix for.. 1
## EH3770 hg38 Filtered count matri.. 1
## EH3771 hg38 Raw HDF5 matrix for .. 1
## EH3772 hg38 Molecule information.. 1
## maintainer rdatadateadded preparerclass
## <character> <character> <character>
## EH3685 Aaron Lun <infinite... 2020-08-26 DropletTestFiles
## EH3686 Aaron Lun <infinite... 2020-08-26 DropletTestFiles
## EH3687 Aaron Lun <infinite... 2020-08-26 DropletTestFiles
## EH3688 Aaron Lun <infinite... 2020-08-26 DropletTestFiles
## EH3689 Aaron Lun <infinite... 2020-08-26 DropletTestFiles
## ... ... ... ...
## EH3732 Aaron Lun <infinite... 2020-08-26 DropletTestFiles
## EH3769 Aaron Lun <infinite... 2020-09-08 DropletTestFiles
## EH3770 Aaron Lun <infinite... 2020-09-08 DropletTestFiles
## EH3771 Aaron Lun <infinite... 2020-09-08 DropletTestFiles
## EH3772 Aaron Lun <infinite... 2020-09-08 DropletTestFiles
## tags rdataclass
## <AsIs> <character>
## EH3685 ExperimentHub,ExperimentData,ExpressionData,... character
## EH3686 ExperimentHub,ExperimentData,ExpressionData,... character
## EH3687 ExperimentHub,ExperimentData,ExpressionData,... character
## EH3688 ExperimentHub,ExperimentData,ExpressionData,... character
## EH3689 ExperimentHub,ExperimentData,ExpressionData,... character
## ... ... ...
## EH3732 ExperimentHub,ExperimentData,ExpressionData,... character
## EH3769 ExperimentHub,ExperimentData,ExpressionData,... character
## EH3770 ExperimentHub,ExperimentData,ExpressionData,... character
## EH3771 ExperimentHub,ExperimentData,ExpressionData,... character
## EH3772 ExperimentHub,ExperimentData,ExpressionData,... character
## rdatapath sourceurl sourcetype
## <character> <character> <character>
## EH3685 DropletTestFiles/ten.. https://support.10xg.. HDF5
## EH3686 DropletTestFiles/ten.. https://support.10xg.. HDF5
## EH3687 DropletTestFiles/ten.. https://support.10xg.. HDF5
## EH3688 DropletTestFiles/ten.. https://support.10xg.. tar.gz
## EH3689 DropletTestFiles/ten.. https://support.10xg.. tar.gz
## ... ... ... ...
## EH3732 DropletTestFiles/bac.. https://jmlab-gitlab.. HDF5
## EH3769 DropletTestFiles/ten.. https://support.10xg.. tar.gz
## EH3770 DropletTestFiles/ten.. https://support.10xg.. tar.gz
## EH3771 DropletTestFiles/ten.. https://support.10xg.. HDF5
## EH3772 DropletTestFiles/ten.. https://support.10xg.. HDF5
## file.dataset file.version file.name
## <character> <character> <character>
## EH3685 tenx-2.0.1-nuclei_900 1.0.0 mol_info.h5
## EH3686 tenx-2.0.1-nuclei_900 1.0.0 filtered.h5
## EH3687 tenx-2.0.1-nuclei_900 1.0.0 raw.h5
## EH3688 tenx-2.0.1-nuclei_900 1.0.0 filtered.tar.gz
## EH3689 tenx-2.0.1-nuclei_900 1.0.0 raw.tar.gz
## ... ... ... ...
## EH3732 bach-mammary-swapping 1.0.0 hiseq_4000/mol_info_..
## EH3769 tenx-2.1.0-pbmc4k 1.0.0 raw.tar.gz
## EH3770 tenx-2.1.0-pbmc4k 1.0.0 filtered.tar.gz
## EH3771 tenx-2.1.0-pbmc4k 1.0.0 raw.h5
## EH3772 tenx-2.1.0-pbmc4k 1.0.0 mol_info.h5
The second is to actually obtain a resource. This is provided in the form of a (read-only!) path on which further operations can be applied.
getTestFile(out$rdatapath[1], prefix=FALSE)
## EH3685
## "/home/biocbuild/.cache/R/ExperimentHub/9d51219f91ad3_3721"
Currently, all of the files come from 10X Genomics datasets. As such, we will see a lot of filtered/raw count matrices, molecule information files and HDF5 barcode matrices. We refer readers to the (relevant section)[https://support.10xgenomics.com/single-cell-gene-expression/software/pipelines/latest/output/overview] of the 10X Genomics website for more details.
Here, we obtain a path to a filtered HDF5 matrix and read it in with a DropletUtils function.
This produces a SingleCellExperiment
object for use in various Bioconductor pipelines.
library(DropletUtils)
path <- getTestFile("tenx-3.1.0-5k_pbmc_protein_v3/1.0.0/filtered.h5", prefix=TRUE)
sce <- read10xCounts(path, type="HDF5")
sce
## class: SingleCellExperiment
## dim: 33570 5247
## metadata(1): Samples
## assays(1): counts
## rownames(33570): ENSG00000243485 ENSG00000237613 ... IgG2a IgG2b
## rowData names(3): ID Symbol Type
## colnames: NULL
## colData names(2): Sample Barcode
## reducedDimNames(0):
## mainExpName: NULL
## altExpNames(0):
sessionInfo()
## R version 4.2.1 (2022-06-23)
## Platform: x86_64-pc-linux-gnu (64-bit)
## Running under: Ubuntu 20.04.5 LTS
##
## Matrix products: default
## BLAS: /home/biocbuild/bbs-3.16-bioc/R/lib/libRblas.so
## LAPACK: /home/biocbuild/bbs-3.16-bioc/R/lib/libRlapack.so
##
## locale:
## [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
## [3] LC_TIME=en_GB LC_COLLATE=C
## [5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
## [7] LC_PAPER=en_US.UTF-8 LC_NAME=C
## [9] LC_ADDRESS=C LC_TELEPHONE=C
## [11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
##
## attached base packages:
## [1] stats4 stats graphics grDevices utils datasets methods
## [8] base
##
## other attached packages:
## [1] DropletUtils_1.18.0 SingleCellExperiment_1.20.0
## [3] SummarizedExperiment_1.28.0 Biobase_2.58.0
## [5] GenomicRanges_1.50.0 GenomeInfoDb_1.34.0
## [7] IRanges_2.32.0 S4Vectors_0.36.0
## [9] BiocGenerics_0.44.0 MatrixGenerics_1.10.0
## [11] matrixStats_0.62.0 DropletTestFiles_1.8.0
## [13] BiocStyle_2.26.0
##
## loaded via a namespace (and not attached):
## [1] bitops_1.0-7 bit64_4.0.5
## [3] filelock_1.0.2 httr_1.4.4
## [5] tools_4.2.1 bslib_0.4.0
## [7] utf8_1.2.2 R6_2.5.1
## [9] HDF5Array_1.26.0 DBI_1.1.3
## [11] rhdf5filters_1.10.0 withr_2.5.0
## [13] tidyselect_1.2.0 bit_4.0.4
## [15] curl_4.3.3 compiler_4.2.1
## [17] cli_3.4.1 DelayedArray_0.24.0
## [19] bookdown_0.29 sass_0.4.2
## [21] rappdirs_0.3.3 stringr_1.4.1
## [23] digest_0.6.30 rmarkdown_2.17
## [25] R.utils_2.12.1 XVector_0.38.0
## [27] pkgconfig_2.0.3 htmltools_0.5.3
## [29] sparseMatrixStats_1.10.0 limma_3.54.0
## [31] dbplyr_2.2.1 fastmap_1.1.0
## [33] rlang_1.0.6 RSQLite_2.2.18
## [35] shiny_1.7.3 DelayedMatrixStats_1.20.0
## [37] jquerylib_0.1.4 generics_0.1.3
## [39] jsonlite_1.8.3 BiocParallel_1.32.0
## [41] R.oo_1.25.0 dplyr_1.0.10
## [43] RCurl_1.98-1.9 magrittr_2.0.3
## [45] scuttle_1.8.0 GenomeInfoDbData_1.2.9
## [47] Matrix_1.5-1 Rcpp_1.0.9
## [49] Rhdf5lib_1.20.0 fansi_1.0.3
## [51] R.methodsS3_1.8.2 lifecycle_1.0.3
## [53] edgeR_3.40.0 stringi_1.7.8
## [55] yaml_2.3.6 zlibbioc_1.44.0
## [57] rhdf5_2.42.0 BiocFileCache_2.6.0
## [59] AnnotationHub_3.6.0 grid_4.2.1
## [61] blob_1.2.3 dqrng_0.3.0
## [63] parallel_4.2.1 promises_1.2.0.1
## [65] ExperimentHub_2.6.0 crayon_1.5.2
## [67] lattice_0.20-45 beachmat_2.14.0
## [69] Biostrings_2.66.0 KEGGREST_1.38.0
## [71] locfit_1.5-9.6 knitr_1.40
## [73] pillar_1.8.1 codetools_0.2-18
## [75] glue_1.6.2 BiocVersion_3.16.0
## [77] evaluate_0.17 BiocManager_1.30.19
## [79] png_0.1-7 vctrs_0.5.0
## [81] httpuv_1.6.6 purrr_0.3.5
## [83] assertthat_0.2.1 cachem_1.0.6
## [85] xfun_0.34 mime_0.12
## [87] xtable_1.8-4 later_1.3.0
## [89] tibble_3.1.8 AnnotationDbi_1.60.0
## [91] memoise_2.0.1 ellipsis_0.3.2
## [93] interactiveDisplayBase_1.36.0