TabulaMurisData 1.6.0
The TabulaMurisData
data package provides access to the 10x and SmartSeq2
single-cell RNA-seq data sets from
the Tabula Muris Consortium.
The contents of the package can be seen by querying the ExperimentHub for the
package name.
suppressPackageStartupMessages({
library(ExperimentHub)
library(SingleCellExperiment)
library(TabulaMurisData)
})
#> snapshotDate(): 2020-04-27
eh <- ExperimentHub()
#> snapshotDate(): 2020-04-27
query(eh, "TabulaMurisData")
#> ExperimentHub with 2 records
#> # snapshotDate(): 2020-04-27
#> # $dataprovider: Tabula Muris Consortium
#> # $species: Mus musculus
#> # $rdataclass: SingleCellExperiment
#> # additional mcols(): taxonomyid, genome, description,
#> # coordinate_1_based, maintainer, rdatadateadded, preparerclass, tags,
#> # rdatapath, sourceurl, sourcetype
#> # retrieve records with, e.g., 'object[["EH1617"]]'
#>
#> title
#> EH1617 | TabulaMurisDroplet
#> EH1618 | TabulaMurisSmartSeq2
The individual data sets can be accessed using either their ExperimentHub accession number, or the convenience functions provided in this package. For example, for the 10x data:
droplet <- eh[["EH1617"]]
#> see ?TabulaMurisData and browseVignettes('TabulaMurisData') for documentation
#> loading from cache
droplet
#> class: SingleCellExperiment
#> dim: 23341 70118
#> metadata(0):
#> assays(1): counts
#> rownames(23341): 0610005C13Rik 0610007C21Rik ... Zzef1 Zzz3
#> rowData names(2): ID Symbol
#> colnames(70118): 10X_P4_0_AAACCTGAGATTACCC 10X_P4_0_AAACCTGAGTGCCAGA
#> ... 10X_P8_15_TTTGTCATCTTACCGC 10X_P8_15_TTTGTCATCTTGTTTG
#> colData names(10): cell channel ... cell_ontology_id free_annotation
#> reducedDimNames(0):
#> altExpNames(0):
droplet <- TabulaMurisDroplet()
#> snapshotDate(): 2020-04-27
#> see ?TabulaMurisData and browseVignettes('TabulaMurisData') for documentation
#> loading from cache
droplet
#> class: SingleCellExperiment
#> dim: 23341 70118
#> metadata(0):
#> assays(1): counts
#> rownames(23341): 0610005C13Rik 0610007C21Rik ... Zzef1 Zzz3
#> rowData names(2): ID Symbol
#> colnames(70118): 10X_P4_0_AAACCTGAGATTACCC 10X_P4_0_AAACCTGAGTGCCAGA
#> ... 10X_P8_15_TTTGTCATCTTACCGC 10X_P8_15_TTTGTCATCTTGTTTG
#> colData names(10): cell channel ... cell_ontology_id free_annotation
#> reducedDimNames(0):
#> altExpNames(0):
iSEE
Each data set is provided in the form of a SingleCellExperiment
object. To
gain further insights into the contents of the data sets, they can be explored
using, e.g., the iSEE package. For the purposes of this vignette,
we first subsample a small subset of the cells in the 10x data set, to reduce
the run time.
set.seed(1234)
se <- droplet[, sample(seq_len(ncol(droplet)), 250, replace = FALSE)]
se
#> class: SingleCellExperiment
#> dim: 23341 250
#> metadata(0):
#> assays(1): counts
#> rownames(23341): 0610005C13Rik 0610007C21Rik ... Zzef1 Zzz3
#> rowData names(2): ID Symbol
#> colnames(250): 10X_P8_12_ACGGGCTGTCAGAGGT 10X_P7_10_CGTCCATGTTATGCGT
#> ... 10X_P7_9_TGACAACGTGTAAGTA 10X_P8_14_GATCTAGCACGGCCAT
#> colData names(10): cell channel ... cell_ontology_id free_annotation
#> reducedDimNames(0):
#> altExpNames(0):
Next, we calculate size factors and normalize the data using the scran and scater packages, and perform dimension reduction using PCA and t-SNE.
se <- scran::computeSumFactors(se)
se <- scater::logNormCounts(se)
se <- scater::runPCA(se)
se <- scater::runTSNE(se)
Finally, we call iSEE
with the subsampled SingleCellExperiment
object. This
opens up an instance of iSEE
containing the provided data set.
if (require(iSEE)) {
iSEE(se)
}
sessionInfo()
#> R version 4.0.0 (2020-04-24)
#> Platform: x86_64-pc-linux-gnu (64-bit)
#> Running under: Ubuntu 18.04.4 LTS
#>
#> Matrix products: default
#> BLAS: /home/biocbuild/bbs-3.11-bioc/R/lib/libRblas.so
#> LAPACK: /home/biocbuild/bbs-3.11-bioc/R/lib/libRlapack.so
#>
#> locale:
#> [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
#> [3] LC_TIME=en_US.UTF-8 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 parallel stats graphics grDevices utils datasets
#> [8] methods base
#>
#> other attached packages:
#> [1] TabulaMurisData_1.6.0 SingleCellExperiment_1.10.1
#> [3] SummarizedExperiment_1.18.1 DelayedArray_0.14.0
#> [5] matrixStats_0.56.0 Biobase_2.48.0
#> [7] GenomicRanges_1.40.0 GenomeInfoDb_1.24.0
#> [9] IRanges_2.22.1 S4Vectors_0.26.0
#> [11] ExperimentHub_1.14.0 AnnotationHub_2.20.0
#> [13] BiocFileCache_1.12.0 dbplyr_1.4.3
#> [15] BiocGenerics_0.34.0 BiocStyle_2.16.0
#>
#> loaded via a namespace (and not attached):
#> [1] bitops_1.0-6 bit64_0.9-7
#> [3] httr_1.4.1 tools_4.0.0
#> [5] R6_2.4.1 irlba_2.3.3
#> [7] vipor_0.4.5 DBI_1.1.0
#> [9] colorspace_1.4-1 tidyselect_1.0.0
#> [11] gridExtra_2.3 bit_1.1-15.2
#> [13] curl_4.3 compiler_4.0.0
#> [15] BiocNeighbors_1.6.0 bookdown_0.18
#> [17] scales_1.1.0 rappdirs_0.3.1
#> [19] stringr_1.4.0 digest_0.6.25
#> [21] rmarkdown_2.1 XVector_0.28.0
#> [23] scater_1.16.0 pkgconfig_2.0.3
#> [25] htmltools_0.4.0 fastmap_1.0.1
#> [27] limma_3.44.1 rlang_0.4.6
#> [29] RSQLite_2.2.0 shiny_1.4.0.2
#> [31] DelayedMatrixStats_1.10.0 BiocParallel_1.22.0
#> [33] dplyr_0.8.5 RCurl_1.98-1.2
#> [35] magrittr_1.5 BiocSingular_1.4.0
#> [37] GenomeInfoDbData_1.2.3 Matrix_1.2-18
#> [39] Rcpp_1.0.4.6 ggbeeswarm_0.6.0
#> [41] munsell_0.5.0 viridis_0.5.1
#> [43] lifecycle_0.2.0 stringi_1.4.6
#> [45] yaml_2.2.1 edgeR_3.30.0
#> [47] zlibbioc_1.34.0 Rtsne_0.15
#> [49] grid_4.0.0 blob_1.2.1
#> [51] promises_1.1.0 dqrng_0.2.1
#> [53] crayon_1.3.4 lattice_0.20-41
#> [55] locfit_1.5-9.4 knitr_1.28
#> [57] pillar_1.4.4 igraph_1.2.5
#> [59] glue_1.4.0 BiocVersion_3.11.1
#> [61] evaluate_0.14 scran_1.16.0
#> [63] BiocManager_1.30.10 vctrs_0.2.4
#> [65] httpuv_1.5.2 gtable_0.3.0
#> [67] purrr_0.3.4 assertthat_0.2.1
#> [69] ggplot2_3.3.0 xfun_0.13
#> [71] rsvd_1.0.3 mime_0.9
#> [73] xtable_1.8-4 later_1.0.0
#> [75] viridisLite_0.3.0 tibble_3.0.1
#> [77] AnnotationDbi_1.50.0 beeswarm_0.2.3
#> [79] memoise_1.1.0 statmod_1.4.34
#> [81] ellipsis_0.3.0 interactiveDisplayBase_1.26.0