Contents

1 Load Tabula Muris data

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)
})

eh <- ExperimentHub()
query(eh, "TabulaMurisData")
#> ExperimentHub with 2 records
#> # snapshotDate(): 2024-10-24
#> # $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):
#> mainExpName: NULL
#> altExpNames(0):
droplet <- TabulaMurisDroplet()
#> 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):
#> mainExpName: NULL
#> altExpNames(0):

2 Explore data with 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):
#> mainExpName: NULL
#> 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)
}

3 Session info

sessionInfo()
#> R Under development (unstable) (2024-10-21 r87258)
#> Platform: x86_64-pc-linux-gnu
#> Running under: Ubuntu 24.04.1 LTS
#> 
#> Matrix products: default
#> BLAS:   /home/biocbuild/bbs-3.21-bioc/R/lib/libRblas.so 
#> LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.12.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] TabulaMurisData_1.23.0      SingleCellExperiment_1.27.2
#>  [3] SummarizedExperiment_1.35.5 Biobase_2.65.1             
#>  [5] GenomicRanges_1.57.2        GenomeInfoDb_1.41.2        
#>  [7] IRanges_2.39.2              S4Vectors_0.43.2           
#>  [9] MatrixGenerics_1.17.1       matrixStats_1.4.1          
#> [11] ExperimentHub_2.13.1        AnnotationHub_3.13.3       
#> [13] BiocFileCache_2.13.2        dbplyr_2.5.0               
#> [15] BiocGenerics_0.51.3         BiocStyle_2.33.1           
#> 
#> loaded via a namespace (and not attached):
#>  [1] DBI_1.2.3               gridExtra_2.3           rlang_1.1.4            
#>  [4] magrittr_2.0.3          scater_1.33.4           compiler_4.5.0         
#>  [7] RSQLite_2.3.7           png_0.1-8               vctrs_0.6.5            
#> [10] pkgconfig_2.0.3         crayon_1.5.3            fastmap_1.2.0          
#> [13] XVector_0.45.0          scuttle_1.15.4          utf8_1.2.4             
#> [16] rmarkdown_2.28          UCSC.utils_1.1.0        ggbeeswarm_0.7.2       
#> [19] purrr_1.0.2             bit_4.5.0               xfun_0.48              
#> [22] bluster_1.15.1          zlibbioc_1.51.2         cachem_1.1.0           
#> [25] beachmat_2.21.9         jsonlite_1.8.9          blob_1.2.4             
#> [28] DelayedArray_0.31.14    BiocParallel_1.39.0     irlba_2.3.5.1          
#> [31] parallel_4.5.0          cluster_2.1.6           R6_2.5.1               
#> [34] bslib_0.8.0             limma_3.61.12           jquerylib_0.1.4        
#> [37] Rcpp_1.0.13             bookdown_0.41           knitr_1.48             
#> [40] Matrix_1.7-1            igraph_2.1.1            tidyselect_1.2.1       
#> [43] viridis_0.6.5           abind_1.4-8             yaml_2.3.10            
#> [46] codetools_0.2-20        curl_5.2.3              lattice_0.22-6         
#> [49] tibble_3.2.1            withr_3.0.1             KEGGREST_1.45.1        
#> [52] Rtsne_0.17              evaluate_1.0.1          Biostrings_2.73.2      
#> [55] pillar_1.9.0            BiocManager_1.30.25     filelock_1.0.3         
#> [58] generics_0.1.3          BiocVersion_3.20.0      ggplot2_3.5.1          
#> [61] munsell_0.5.1           scales_1.3.0            glue_1.8.0             
#> [64] metapod_1.13.0          tools_4.5.0             BiocNeighbors_1.99.3   
#> [67] ScaledMatrix_1.13.0     locfit_1.5-9.10         scran_1.33.2           
#> [70] grid_4.5.0              colorspace_2.1-1        AnnotationDbi_1.67.0   
#> [73] edgeR_4.3.21            GenomeInfoDbData_1.2.13 beeswarm_0.4.0         
#> [76] BiocSingular_1.21.4     vipor_0.4.7             cli_3.6.3              
#> [79] rsvd_1.0.5              rappdirs_0.3.3          fansi_1.0.6            
#> [82] viridisLite_0.4.2       S4Arrays_1.5.11         dplyr_1.1.4            
#> [85] gtable_0.3.6            sass_0.4.9              digest_0.6.37          
#> [88] ggrepel_0.9.6           SparseArray_1.5.45      dqrng_0.4.1            
#> [91] memoise_2.0.1           htmltools_0.5.8.1       lifecycle_1.0.4        
#> [94] httr_1.4.7              statmod_1.5.0           mime_0.12              
#> [97] bit64_4.5.2