The muscData
package contains a set of publicly available single-cell RNA sequencing (scRNA-seq) datasets with complex experimental designs, i.e., datasets that contain multiple samples (e.g., individuals) measured across multiple experimental conditions (e.g., treatments), formatted into SingleCellExperiment
(SCE) Bioconductor objects. Data objects are hosted through Bioconductor’s ExperimentHub web resource.
The table below gives an overview of currently available datasets, including a unique identifier (ID) that can be used to load the data (see next section), a brief description, the original data source, and a reference. Dataset descriptions may also be viewed from within R via ?ID
(e.g., ?Kang18_8vs8
).
ID | Description | Availability | Reference |
---|---|---|---|
Kang18_8vs8 |
10x droplet-based scRNA-seq PBMC data from 8 Lupus patients before and after 6h-treatment with INF-beta (16 samples in total) | Gene Expression Ombnibus (GEO) accession GSE96583 | Kang et al. (2018) |
Crowell19_4vs4 |
Single-nuclei RNA-seq data of 8 CD-1 male mice, split into 2 groups with 4 animals each: vehicle and peripherally lipopolysaccharaide (LPS) treated mice | Figshare DOI:10.6084/m9.figshare.8976473.v1 | Crowell et al. (2019) |
All datasets available within muscData
may be loaded either via named functions that directly reffer to the object names, or by using the ExperimentHub
interface. Both methods are demonstrated below.
The datasets listed above may be loaded into R by their ID. All provided SCEs contain unfiltered raw counts in their assay
slot, and any available gene and cell metadata in the rowData
and colData
slots, respectively.
library(muscData)
Kang18_8vs8()
## class: SingleCellExperiment
## dim: 35635 29065
## metadata(0):
## assays(1): counts
## rownames(35635): MIR1302-10 FAM138A ... MT-ND6 MT-CYB
## rowData names(2): ENSEMBL SYMBOL
## colnames(29065): AAACATACAATGCC-1 AAACATACATTTCC-1 ... TTTGCATGGTTTGG-1
## TTTGCATGTCTTAC-1
## colData names(5): ind stim cluster cell multiplets
## reducedDimNames(1): TSNE
## mainExpName: NULL
## altExpNames(0):
ExperimentHub
Besides using an accession function as demonstrated above, we can browse ExperimentHub records (using query
) or package specific records (using listResources
), and then load the data of interest. The key differences between these approaches is that query
will search all of ExperimentHub, while listResources
facilitate data discovery within the specified package (here, muscData
).
query
We first initialize a Hub instance to search for and load available data with the ExperimentHub
function, and store the complete list of >2000 records in a variable eh
. Using query
, we then identify any records made available by muscData
, as well as their accession IDs (EH1234). Finally, we can load the data into R via eh[[id]]
.
# create Hub instance
library(ExperimentHub)
eh <- ExperimentHub()
(q <- query(eh, "muscData"))
## ExperimentHub with 2 records
## # snapshotDate(): 2024-04-29
## # $dataprovider: GEO, F. Hoffmann-La Roche Ltd.
## # $species: Mus musculus, Homo sapiens
## # $rdataclass: SingleCellExperiment
## # additional mcols(): taxonomyid, genome, description,
## # coordinate_1_based, maintainer, rdatadateadded, preparerclass, tags,
## # rdatapath, sourceurl, sourcetype
## # retrieve records with, e.g., 'object[["EH2259"]]'
##
## title
## EH2259 | Kang18_8vs8
## EH3297 | Crowell19_4vs4
# load data via accession ID
eh[["EH2259"]]
list/loadResources
Alternatively, available records may be viewed via listResources
. To then load a specific dataset or subset thereof using loadResources
, we require a character vector of metadata search terms to filter by.
Available metadata can accessed from the ExperimentHub records found by query
via mcols()
, or viewed using the accessors shown above with option metadata = TRUE
. In the example below, we use "PMBC"
and "INF-beta"
to select the Kang18_8vs8
dataset. However, note that any metadata keyword(s) that uniquely identify the data of interest could be used (e.g., "Lupus"
or "GSE96583"
).
listResources(eh, "muscData")
## [1] "Kang18_8vs8" "Crowell19_4vs4"
# view metadata
mcols(q)
Kang18_8vs8(metadata = TRUE)
# load data using metadata search terms
loadResources(eh, "muscData", c("PBMC", "INF-beta"))
The scater (McCarthy et al. 2017) package provides an easy-to-use set of visualization tools for scRNA-seq data.
For interactive visualization, we recommend the iSEE (interactive SummerizedExperiment Explorer) package (Rue-Albrecht et al. 2018), which provides a Shiny-based graphical user interface for exploration of single-cell data in SummarizedExperiment
format (installation instructions and user guides are available here).
When available, a great tool for interactive exploration and comparison of dimension-reduced embeddings is sleepwalk (Ovchinnikova and Anders 2019).
sessionInfo()
## R version 4.4.0 RC (2024-04-16 r86468)
## Platform: x86_64-pc-linux-gnu
## Running under: Ubuntu 22.04.4 LTS
##
## Matrix products: default
## BLAS: /home/biocbuild/bbs-3.20-bioc/R/lib/libRblas.so
## LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.10.0
##
## 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
##
## time zone: America/New_York
## tzcode source: system (glibc)
##
## attached base packages:
## [1] stats4 stats graphics grDevices utils datasets methods
## [8] base
##
## other attached packages:
## [1] muscData_1.19.0 SingleCellExperiment_1.27.0
## [3] SummarizedExperiment_1.35.0 Biobase_2.65.0
## [5] GenomicRanges_1.57.0 GenomeInfoDb_1.41.0
## [7] IRanges_2.39.0 S4Vectors_0.43.0
## [9] MatrixGenerics_1.17.0 matrixStats_1.3.0
## [11] ExperimentHub_2.13.0 AnnotationHub_3.13.0
## [13] BiocFileCache_2.13.0 dbplyr_2.5.0
## [15] BiocGenerics_0.51.0 BiocStyle_2.33.0
##
## loaded via a namespace (and not attached):
## [1] KEGGREST_1.45.0 xfun_0.43 bslib_0.7.0
## [4] lattice_0.22-6 vctrs_0.6.5 tools_4.4.0
## [7] generics_0.1.3 curl_5.2.1 tibble_3.2.1
## [10] fansi_1.0.6 AnnotationDbi_1.67.0 RSQLite_2.3.6
## [13] blob_1.2.4 pkgconfig_2.0.3 Matrix_1.7-0
## [16] lifecycle_1.0.4 GenomeInfoDbData_1.2.12 compiler_4.4.0
## [19] Biostrings_2.73.0 htmltools_0.5.8.1 sass_0.4.9
## [22] yaml_2.3.8 pillar_1.9.0 crayon_1.5.2
## [25] jquerylib_0.1.4 DelayedArray_0.31.0 cachem_1.0.8
## [28] abind_1.4-5 mime_0.12 tidyselect_1.2.1
## [31] digest_0.6.35 purrr_1.0.2 dplyr_1.1.4
## [34] bookdown_0.39 BiocVersion_3.20.0 grid_4.4.0
## [37] fastmap_1.1.1 SparseArray_1.5.0 cli_3.6.2
## [40] magrittr_2.0.3 S4Arrays_1.5.0 utf8_1.2.4
## [43] withr_3.0.0 filelock_1.0.3 UCSC.utils_1.1.0
## [46] rappdirs_0.3.3 bit64_4.0.5 rmarkdown_2.26
## [49] XVector_0.45.0 httr_1.4.7 bit_4.0.5
## [52] png_0.1-8 memoise_2.0.1 evaluate_0.23
## [55] knitr_1.46 rlang_1.1.3 glue_1.7.0
## [58] DBI_1.2.2 BiocManager_1.30.22 jsonlite_1.8.8
## [61] R6_2.5.1 zlibbioc_1.51.0
Crowell, Helena L, Charlotte Soneson, Pierre-Luc Germain, Daniela Calini, Ludovic Collin, Catarina Raposo, Dheeraj Malhotra, and Mark D Robinson. 2019. “On the Discovery of Population-Specific State Transitions from Multi-Sample Multi-Condition Single-Cell RNA Sequencing Data.” bioRxiv 713412.
Kang, Hyun Min, Meena Subramaniam, Sasha Targ, Michelle Nguyen, Lenka Maliskova, Elizabeth McCarthy, Eunice Wan, et al. 2018. “Multiplexed Droplet Single-Cell Rna-Sequencing Using Natural Genetic Variation.” Nat Biotechnol 36 (1): 89–94. https://doi.org/10.1038/nbt.4042.
McCarthy, Davis J, Kieran R Campbell, Quin F Wills, and Aaron T L Lun. 2017. “Scater: Pre-Processing, Quality Control, Normalization and Visualization of Single-Cell RNA-Seq Data in R.” Bioinformatics 33 (8): 1179–86. https://doi.org/10.1093/bioinformatics/btw777.
Ovchinnikova, Svetlana, and Simon Anders. 2019. “Exploring Dimension-Reduced Embeddings with Sleepwalk.” bioRxiv. https://doi.org/10.1101/603589.
Rue-Albrecht, Kévin, Federico Marini, Charlotte Soneson, and Aaron T L Lun. 2018. “ISEE: Interactive SummarizedExperiment Explorer.” F1000Res 7: 741. https://doi.org/10.12688/f1000research.14966.1.