Chapter 35 Pijuan-Sala chimeric mouse embryo (10X Genomics)

35.1 Introduction

This performs an analysis of the Pijuan-Sala et al. (2019) dataset on mouse gastrulation. Here, we examine chimeric embryos at the E7.5 stage of development where td-Tomato-positive embryonic stem cells (ESCs) were injected into a wild-type blastocyst.

35.2 Data loading

## class: SingleCellExperiment 
## dim: 29453 20935 
## metadata(0):
## assays(1): counts
## rownames(29453): ENSMUSG00000051951 ENSMUSG00000089699 ... ENSMUSG00000095742 tomato-td
## rowData names(2): ENSEMBL SYMBOL
## colnames(20935): cell_9769 cell_9770 ... cell_30702 cell_30703
## colData names(10): cell barcode ... closest.cell doub.density
## reducedDimNames(2): pca.corrected.E7.5 pca.corrected.E8.5
## spikeNames(0):
## altExpNames(0):

35.3 Quality control

Quality control on the cells has already been performed by the authors, so we will not repeat it here. We additionally remove cells that are labelled as stripped nuclei or doublets.

35.4 Normalization

We use the pre-computed size factors in sce.chimera.

35.5 Variance modelling

We retain all genes with any positive biological component, to preserve as much signal as possible across a very heterogeneous dataset.

Per-gene variance as a function of the mean for the log-expression values in the Pijuan-Sala chimeric mouse embryo dataset. Each point represents a gene (black) with the mean-variance trend (blue) fitted to the variances.

Figure 35.1: Per-gene variance as a function of the mean for the log-expression values in the Pijuan-Sala chimeric mouse embryo dataset. Each point represents a gene (black) with the mean-variance trend (blue) fitted to the variances.

Per-gene variance as a function of the mean for the log-expression values in the Pijuan-Sala chimeric mouse embryo dataset. Each point represents a gene (black) with the mean-variance trend (blue) fitted to the variances.

Figure 35.2: Per-gene variance as a function of the mean for the log-expression values in the Pijuan-Sala chimeric mouse embryo dataset. Each point represents a gene (black) with the mean-variance trend (blue) fitted to the variances.

Per-gene variance as a function of the mean for the log-expression values in the Pijuan-Sala chimeric mouse embryo dataset. Each point represents a gene (black) with the mean-variance trend (blue) fitted to the variances.

Figure 35.3: Per-gene variance as a function of the mean for the log-expression values in the Pijuan-Sala chimeric mouse embryo dataset. Each point represents a gene (black) with the mean-variance trend (blue) fitted to the variances.

35.6 Merging

We use a hierarchical merge to first merge together replicates with the same genotype, and then merge samples across different genotypes.

We use the percentage of variance lost as a diagnostic:

##              5         6         7         8        9       10
## [1,] 0.000e+00 0.0204433 0.000e+00 0.0169567 0.000000 0.000000
## [2,] 0.000e+00 0.0007389 0.000e+00 0.0004409 0.000000 0.015474
## [3,] 3.090e-02 0.0000000 2.012e-02 0.0000000 0.000000 0.000000
## [4,] 9.024e-05 0.0000000 8.272e-05 0.0000000 0.018047 0.000000
## [5,] 4.321e-03 0.0072518 4.124e-03 0.0078280 0.003831 0.007786

35.7 Clustering

We examine the distribution of cells across clusters and samples.

##        Sample
## Cluster   5   6   7   8   9  10
##      1  152  72  85  88 164 386
##      2   19   7  13  17  20  36
##      3  130  96 109  63 159 311
##      4   43  35  81  81  87 353
##      5   68  31 120 107  83 197
##      6  122  65  64  52  63 141
##      7  187 113 322 587 458 541
##      8   47  22  84  50  90 131
##      9  182  47 231 192 216 391
##      10  95  19  36  18  50  34
##      11   9   7  18  13  30  27
##      12 110  69  73  96 127 252
##      13   0   2   0  51   0   5
##      14  38  39  50  47 126 123
##      15  98  16 164 125 368 273
##      16 146  37 132 110 231 216
##      17 114  43  44  37  40 154
##      18  78  45 189 119 340 493
##      19  86  20  64  54 153  77
##      20 159  77 137 101 147 401
##      21   2   1   7   3  65 133
##      22  11  16  20   9  47  57
##      23   1   5   0  84   0  66
##      24 170  47 282 173 426 542
##      25 109  23 117  55 271 285
##      26 122  72 298 572 296 776

35.8 Dimensionality reduction

We use an external algorithm to compute nearest neighbors for greater speed.

Obligatory $t$-SNE plots of the Pijuan-Sala chimeric mouse embryo dataset, where each point represents a cell and is colored according to the assigned cluster (top) or sample of origin (bottom).

Figure 34.4: Obligatory \(t\)-SNE plots of the Pijuan-Sala chimeric mouse embryo dataset, where each point represents a cell and is colored according to the assigned cluster (top) or sample of origin (bottom).

Session Info

R Under development (unstable) (2019-12-29 r77627)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 14.04.6 LTS

Matrix products: default
BLAS/LAPACK: /app/easybuild/software/OpenBLAS/0.2.18-GCC-5.4.0-2.26-LAPACK-3.6.1/lib/libopenblas_prescottp-r0.2.18.so

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C               LC_TIME=en_US.UTF-8       
 [4] LC_COLLATE=C               LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8   
 [7] LC_PAPER=en_US.UTF-8       LC_NAME=C                  LC_ADDRESS=C              
[10] LC_TELEPHONE=C             LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
[1] stats4    parallel  stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
 [1] batchelor_1.3.8             scran_1.15.14               scater_1.15.12             
 [4] ggplot2_3.2.1               MouseGastrulationData_1.1.0 SingleCellExperiment_1.9.1 
 [7] SummarizedExperiment_1.17.1 DelayedArray_0.13.2         BiocParallel_1.21.2        
[10] matrixStats_0.55.0          Biobase_2.47.2              GenomicRanges_1.39.1       
[13] GenomeInfoDb_1.23.1         IRanges_2.21.2              S4Vectors_0.25.8           
[16] BiocGenerics_0.33.0         Cairo_1.5-10                BiocStyle_2.15.3           
[19] OSCAUtils_0.0.1            

loaded via a namespace (and not attached):
 [1] bitops_1.0-6                  bit64_0.9-7                   httr_1.4.1                   
 [4] tools_4.0.0                   backports_1.1.5               R6_2.4.1                     
 [7] irlba_2.3.3                   vipor_0.4.5                   uwot_0.1.5                   
[10] DBI_1.1.0                     lazyeval_0.2.2                colorspace_1.4-1             
[13] withr_2.1.2                   gridExtra_2.3                 tidyselect_0.2.5             
[16] processx_3.4.1                bit_1.1-14                    curl_4.3                     
[19] compiler_4.0.0                BiocNeighbors_1.5.1           labeling_0.3                 
[22] bookdown_0.16                 scales_1.1.0                  callr_3.4.0                  
[25] rappdirs_0.3.1                stringr_1.4.0                 digest_0.6.23                
[28] rmarkdown_2.0                 XVector_0.27.0                pkgconfig_2.0.3              
[31] htmltools_0.4.0               highr_0.8                     limma_3.43.0                 
[34] dbplyr_1.4.2                  fastmap_1.0.1                 rlang_0.4.2                  
[37] RSQLite_2.2.0                 shiny_1.4.0                   DelayedMatrixStats_1.9.0     
[40] farver_2.0.1                  dplyr_0.8.3                   RCurl_1.95-4.12              
[43] magrittr_1.5                  BiocSingular_1.3.1            GenomeInfoDbData_1.2.2       
[46] Matrix_1.2-18                 Rcpp_1.0.3                    ggbeeswarm_0.6.0             
[49] munsell_0.5.0                 viridis_0.5.1                 lifecycle_0.1.0              
[52] edgeR_3.29.0                  stringi_1.4.3                 yaml_2.2.0                   
[55] zlibbioc_1.33.0               Rtsne_0.15                    BiocFileCache_1.11.4         
[58] AnnotationHub_2.19.3          grid_4.0.0                    blob_1.2.0                   
[61] dqrng_0.2.1                   promises_1.1.0                ExperimentHub_1.13.5         
[64] crayon_1.3.4                  lattice_0.20-38               cowplot_1.0.0                
[67] locfit_1.5-9.1                zeallot_0.1.0                 knitr_1.26                   
[70] ps_1.3.0                      pillar_1.4.3                  igraph_1.2.4.2               
[73] codetools_0.2-16              glue_1.3.1                    BiocVersion_3.11.1           
[76] evaluate_0.14                 RcppParallel_4.4.4            BiocManager_1.30.10          
[79] vctrs_0.2.1                   httpuv_1.5.2                  gtable_0.3.0                 
[82] purrr_0.3.3                   assertthat_0.2.1              xfun_0.11                    
[85] rsvd_1.0.2                    mime_0.8                      xtable_1.8-4                 
[88] later_1.0.0                   viridisLite_0.3.0             tibble_2.1.3                 
[91] AnnotationDbi_1.49.0          beeswarm_0.2.3                memoise_1.1.0                
[94] statmod_1.4.32                interactiveDisplayBase_1.25.0

Bibliography

Pijuan-Sala, B., J. A. Griffiths, C. Guibentif, T. W. Hiscock, W. Jawaid, F. J. Calero-Nieto, C. Mulas, et al. 2019. “A Single-Cell Molecular Map of Mouse Gastrulation and Early Organogenesis.” Nature 566 (7745):490–95.