Chapter 9 Mouse HSC (multiple technologies)

9.1 Introduction

The blood is probably the most well-studied tissue in the single-cell field, mostly because everything is already dissociated “for free”. Of particular interest has been the use of single-cell genomics to study cell fate decisions in haematopoeisis. Indeed, it was not long ago that dueling interpretations of haematopoeitic stem cell (HSC) datasets were a mainstay of single-cell conferences. Sadly, these times have mostly passed so we will instead entertain ourselves by combining a small number of these datasets into a single analysis.

9.2 Data loading

## class: SingleCellExperiment 
## dim: 46078 1656 
## metadata(0):
## assays(2): counts logcounts
## rownames(46078): ENSMUSG00000000001 ENSMUSG00000000003 ...
##   ENSMUSG00000107391 ENSMUSG00000107392
## rowData names(3): GENEID SYMBOL SEQNAME
## colnames(1656): HSPC_025 HSPC_031 ... Prog_852 Prog_810
## colData names(3): cell.type FACS sizeFactor
## reducedDimNames(1): diffusion
## mainExpName: endogenous
## altExpNames(1): ERCC

The Grun dataset requires a little bit of subsetting and re-analysis to only consider the sorted HSCs.

Finally, we will grab the Paul dataset, which we will also subset to only consider the unsorted myeloid population. This removes the various knockout conditions that just complicates matters.

9.4 Merging the datasets

We turn on auto.merge=TRUE to instruct fastMNN() to merge the batch that offers the largest number of MNNs. This aims to perform the “easiest” merges first, i.e., between the most replicate-like batches, before tackling merges between batches that have greater differences in their population composition.

Not too much variance lost inside each batch, hopefully. We also observe that the algorithm chose to merge the more diverse Nestorowa and Paul datasets before dealing with the HSC-only Grun dataset.

## DataFrame with 2 rows and 3 columns
##             left     right                        lost.var
##           <List>    <List>                        <matrix>
## 1           Paul Nestorowa 0.01069374:0.0000000:0.00739465
## 2 Paul,Nestorowa      Grun 0.00562344:0.0178334:0.00702615

9.5 Combined analyses

The Grun dataset does not contribute to many clusters, consistent with a pure undifferentiated HSC population. Most of the other clusters contain contributions from the Nestorowa and Paul datasets, though some are unique to the Paul dataset. This may be due to incomplete correction though we tend to think that this are Paul-specific subpopulations, given that the Nestorowa dataset does not have similarly sized unique clusters that might represent their uncorrected counterparts.

##        Batch
## Cluster Grun Nestorowa Paul
##      1    32       472  109
##      2    91       227   16
##      3    42       297  104
##      4     0        40  564
##      5     0       175  569
##      6     0       216  513
##      7   126        69  343
##      8     0         6   29
##      9     0       135  176
##      10    0        19    0
##      11    0         0  382

While I prefer \(t\)-SNE plots, we’ll switch to a UMAP plot to highlight some of the trajectory-like structure across clusters (Figure 9.1).

Obligatory UMAP plot of the merged HSC datasets, where each point represents a cell and is colored by the batch of origin (left) or its assigned cluster (right).

Figure 9.1: Obligatory UMAP plot of the merged HSC datasets, where each point represents a cell and is colored by the batch of origin (left) or its assigned cluster (right).

In fact, we might as well compute a trajectory right now. TSCAN constructs a reasonable minimum spanning tree but the path choices are somewhat incongruent with the UMAP coordinates (Figure 9.2). This is most likely due to the fact that TSCAN operates on cluster centroids, which is simple and efficient but does not consider the variance of cells within each cluster. It is entirely possible for two well-separated clusters to be closer than two adjacent clusters if the latter span a wider region of the coordinate space.

Another UMAP plot of the merged HSC datasets, where each point represents a cell and is colored by its _TSCAN_ pseudotime. The lines correspond to the edges of the MST across cluster centers.

Figure 9.2: Another UMAP plot of the merged HSC datasets, where each point represents a cell and is colored by its TSCAN pseudotime. The lines correspond to the edges of the MST across cluster centers.

To fix this, we construct the minimum spanning tree using distances based on pairs of mutual nearest neighbors between clusters. This focuses on the closeness of the boundaries of each pair of clusters rather than their centroids, ensuring that adjacent clusters are connected even if their centroids are far apart. Doing so yields a trajectory that is more consistent with the visual connections on the UMAP plot (Figure 9.3).

Yet another UMAP plot of the merged HSC datasets, where each point represents a cell and is colored by its _TSCAN_ pseudotime. The lines correspond to the edges of the MST across cluster centers.

Figure 9.3: Yet another UMAP plot of the merged HSC datasets, where each point represents a cell and is colored by its TSCAN pseudotime. The lines correspond to the edges of the MST across cluster centers.

Session Info

R version 4.2.0 RC (2022-04-21 r82226)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 20.04.4 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] TSCAN_1.35.0                TrajectoryUtils_1.5.0      
 [3] scater_1.25.1               ggplot2_3.3.6              
 [5] bluster_1.7.0               batchelor_1.13.0           
 [7] scran_1.25.0                scuttle_1.7.2              
 [9] SingleCellExperiment_1.19.0 SummarizedExperiment_1.27.1
[11] Biobase_2.57.1              GenomicRanges_1.49.0       
[13] GenomeInfoDb_1.33.3         IRanges_2.31.0             
[15] S4Vectors_0.35.0            BiocGenerics_0.43.0        
[17] MatrixGenerics_1.9.0        matrixStats_0.62.0         
[19] BiocStyle_2.25.0            rebook_1.7.0               

loaded via a namespace (and not attached):
  [1] ggbeeswarm_0.6.0          colorspace_2.0-3         
  [3] ellipsis_0.3.2            mclust_5.4.9             
  [5] XVector_0.37.0            BiocNeighbors_1.15.0     
  [7] farver_2.1.0              ggrepel_0.9.1            
  [9] fansi_1.0.3               splines_4.2.0            
 [11] codetools_0.2-18          sparseMatrixStats_1.9.0  
 [13] knitr_1.39                jsonlite_1.8.0           
 [15] ResidualMatrix_1.7.0      cluster_2.1.3            
 [17] graph_1.75.0              uwot_0.1.11              
 [19] shiny_1.7.1               BiocManager_1.30.18      
 [21] compiler_4.2.0            dqrng_0.3.0              
 [23] assertthat_0.2.1          Matrix_1.4-1             
 [25] fastmap_1.1.0             limma_3.53.2             
 [27] cli_3.3.0                 later_1.3.0              
 [29] BiocSingular_1.13.0       htmltools_0.5.2          
 [31] tools_4.2.0               rsvd_1.0.5               
 [33] igraph_1.3.1              gtable_0.3.0             
 [35] glue_1.6.2                GenomeInfoDbData_1.2.8   
 [37] dplyr_1.0.9               rappdirs_0.3.3           
 [39] Rcpp_1.0.8.3              jquerylib_0.1.4          
 [41] vctrs_0.4.1               nlme_3.1-157             
 [43] DelayedMatrixStats_1.19.0 xfun_0.31                
 [45] stringr_1.4.0             beachmat_2.13.0          
 [47] mime_0.12                 lifecycle_1.0.1          
 [49] irlba_2.3.5               gtools_3.9.2             
 [51] statmod_1.4.36            XML_3.99-0.9             
 [53] edgeR_3.39.1              zlibbioc_1.43.0          
 [55] scales_1.2.0              promises_1.2.0.1         
 [57] parallel_4.2.0            yaml_2.3.5               
 [59] gridExtra_2.3             sass_0.4.1               
 [61] fastICA_1.2-3             stringi_1.7.6            
 [63] highr_0.9                 ScaledMatrix_1.5.0       
 [65] caTools_1.18.2            filelock_1.0.2           
 [67] BiocParallel_1.31.4       rlang_1.0.2              
 [69] pkgconfig_2.0.3           bitops_1.0-7             
 [71] evaluate_0.15             lattice_0.20-45          
 [73] purrr_0.3.4               CodeDepends_0.6.5        
 [75] labeling_0.4.2            cowplot_1.1.1            
 [77] tidyselect_1.1.2          RcppAnnoy_0.0.19         
 [79] plyr_1.8.7                magrittr_2.0.3           
 [81] bookdown_0.26             R6_2.5.1                 
 [83] gplots_3.1.3              generics_0.1.2           
 [85] metapod_1.5.0             combinat_0.0-8           
 [87] DelayedArray_0.23.0       DBI_1.1.2                
 [89] mgcv_1.8-40               pillar_1.7.0             
 [91] withr_2.5.0               RCurl_1.98-1.6           
 [93] tibble_3.1.7              dir.expiry_1.5.0         
 [95] crayon_1.5.1              KernSmooth_2.23-20       
 [97] utf8_1.2.2                rmarkdown_2.14           
 [99] viridis_0.6.2             locfit_1.5-9.5           
[101] grid_4.2.0                digest_0.6.29            
[103] xtable_1.8-4              httpuv_1.6.5             
[105] munsell_0.5.0             beeswarm_0.4.0           
[107] viridisLite_0.4.0         vipor_0.4.5              
[109] bslib_0.3.1