Chapter 38 Merged mouse HSC datasets

38.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.

38.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
## 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.

38.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.01062249:0.0000000:0.00753065
## 2 Paul,Nestorowa      Grun 0.00555993:0.0175705:0.00732165

38.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     0        19    0
##      2    56       549  152
##      3    70       222    8
##      4     0       215  476
##      5    17       220   94
##      6     0         6   29
##      7     0        39  204
##      8     1       136  207
##      9   147        87  359
##      10    0         0  379
##      11    0         0  367
##      12    0       163  530

While I prefer \(t\)-SNE plots, we’ll switch to a UMAP plot to highlight some of the trajectory-like structure across clusters (Figure 38.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 38.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 38.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 38.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 38.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 38.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.0.3 (2020-10-10)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 20.04.1 LTS

Matrix products: default
BLAS:   /home/biocbuild/bbs-3.12-bioc/R/lib/libRblas.so
LAPACK: /home/biocbuild/bbs-3.12-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] parallel  stats4    stats     graphics  grDevices utils     datasets 
[8] methods   base     

other attached packages:
 [1] TSCAN_1.28.0                scater_1.18.0              
 [3] ggplot2_3.3.2               bluster_1.0.0              
 [5] batchelor_1.6.0             scran_1.18.0               
 [7] scuttle_1.0.0               SingleCellExperiment_1.12.0
 [9] SummarizedExperiment_1.20.0 Biobase_2.50.0             
[11] GenomicRanges_1.42.0        GenomeInfoDb_1.26.0        
[13] IRanges_2.24.0              S4Vectors_0.28.0           
[15] BiocGenerics_0.36.0         MatrixGenerics_1.2.0       
[17] matrixStats_0.57.0          BiocStyle_2.18.0           
[19] rebook_1.0.0               

loaded via a namespace (and not attached):
 [1] ggbeeswarm_0.6.0          colorspace_1.4-1         
 [3] ellipsis_0.3.1            mclust_5.4.6             
 [5] XVector_0.30.0            BiocNeighbors_1.8.0      
 [7] farver_2.0.3              codetools_0.2-16         
 [9] splines_4.0.3             sparseMatrixStats_1.2.0  
[11] knitr_1.30                ResidualMatrix_1.0.0     
[13] graph_1.68.0              uwot_0.1.8               
[15] shiny_1.5.0               BiocManager_1.30.10      
[17] compiler_4.0.3            dqrng_0.2.1              
[19] Matrix_1.2-18             fastmap_1.0.1            
[21] limma_3.46.0              later_1.1.0.1            
[23] BiocSingular_1.6.0        htmltools_0.5.0          
[25] tools_4.0.3               rsvd_1.0.3               
[27] igraph_1.2.6              gtable_0.3.0             
[29] glue_1.4.2                GenomeInfoDbData_1.2.4   
[31] dplyr_1.0.2               Rcpp_1.0.5               
[33] vctrs_0.3.4               nlme_3.1-150             
[35] DelayedMatrixStats_1.12.0 xfun_0.19                
[37] stringr_1.4.0             ps_1.4.0                 
[39] beachmat_2.6.0            mime_0.9                 
[41] lifecycle_0.2.0           irlba_2.3.3              
[43] gtools_3.8.2              statmod_1.4.35           
[45] XML_3.99-0.5              edgeR_3.32.0             
[47] zlibbioc_1.36.0           scales_1.1.1             
[49] promises_1.1.1            yaml_2.2.1               
[51] gridExtra_2.3             fastICA_1.2-2            
[53] stringi_1.5.3             highr_0.8                
[55] caTools_1.18.0            BiocParallel_1.24.0      
[57] rlang_0.4.8               pkgconfig_2.0.3          
[59] bitops_1.0-6              evaluate_0.14            
[61] lattice_0.20-41           purrr_0.3.4              
[63] CodeDepends_0.6.5         labeling_0.4.2           
[65] cowplot_1.1.0             processx_3.4.4           
[67] tidyselect_1.1.0          RcppAnnoy_0.0.16         
[69] plyr_1.8.6                magrittr_1.5             
[71] bookdown_0.21             R6_2.5.0                 
[73] gplots_3.1.0              generics_0.1.0           
[75] combinat_0.0-8            DelayedArray_0.16.0      
[77] pillar_1.4.6              withr_2.3.0              
[79] mgcv_1.8-33               RCurl_1.98-1.2           
[81] tibble_3.0.4              crayon_1.3.4             
[83] KernSmooth_2.23-18        rmarkdown_2.5            
[85] viridis_0.5.1             locfit_1.5-9.4           
[87] grid_4.0.3                callr_3.5.1              
[89] digest_0.6.27             xtable_1.8-4             
[91] httpuv_1.5.4              munsell_0.5.0            
[93] beeswarm_0.2.3            viridisLite_0.3.0        
[95] vipor_0.4.5