Chapter 11 Single-nuclei RNA-seq processing

11.1 Introduction

Single-nuclei RNA-seq (snRNA-seq) provides another strategy for performing single-cell transcriptomics where individual nuclei instead of cells are captured and sequenced. The major advantage of snRNA-seq over scRNA-seq is that the former does not require the preservation of cellular integrity during sample preparation, especially dissociation. We only need to extract nuclei in an intact state, meaning that snRNA-seq can be applied to cell types, tissues and samples that are not amenable to dissociation and later processing. The cost of this flexibility is the loss of transcripts that are primarily located in the cytoplasm, potentially limiting the availability of biological signal for genes with little nuclear localization.

The computational analysis of snRNA-seq data is very much like that of scRNA-seq data. We have a matrix of (UMI) counts for genes by cells that requires quality control, normalization and so on. (Technically, the columsn correspond to nuclei but we will use these two terms interchangeably in this chapter.) In fact, the biggest difference in processing occurs in the construction of the count matrix itself, where intronic regions must be included in the annotation for each gene to account for the increased abundance of unspliced transcripts. The rest of the analysis only requires a few minor adjustments to account for the loss of cytoplasmic transcripts. We demonstrate using a dataset from Wu et al. (2019) involving snRNA-seq on healthy and fibrotic mouse kidneys.

## class: SingleCellExperiment 
## dim: 18249 8231 
## metadata(0):
## assays(1): counts
## rownames(18249): mt-Cytb mt-Nd6 ... Gm44613 Gm38304
## rowData names(0):
## colnames(8231): sNuc-10x_AAACCTGAGTCCGGTC sNuc-10x_AAACCTGCACAGACAG ...
##   UUO_TTGCCGTCACAAGACG UUO_TTTGTCATCTGCTGTC
## colData names(2): Technology Status
## reducedDimNames(0):
## mainExpName: NULL
## altExpNames(0):

11.2 Quality control for stripped nuclei

The loss of the cytoplasm means that the stripped nuclei should not contain any mitochondrial transcripts. This means that the mitochondrial proportion becomes an excellent QC metric for the efficacy of the stripping process. Unlike scRNA-seq, there is no need to worry about variations in mitochondrial content due to genuine biology. High-quality nuclei should not contain any mitochondrial transcripts; the presence of any mitochondrial counts in a library indicates that the removal of the cytoplasm was not complete, possibly introducing irrelevant heterogeneity in downstream analyses.

##    Mode   FALSE    TRUE 
## logical    2264    5967

We apply a simple filter to remove libraries corresponding to incompletely stripped nuclei. The outlier-based approach described in Section 12.3 can be used here, but some caution is required in low-coverage experiments where a majority of cells have zero mitochondrial counts. In such cases, the MAD may also be zero such that other libraries with very low but non-zero mitochondrial counts are removed. This is typically too conservative as such transcripts may be present due to sporadic ambient contamination rather than incomplete stripping.

##            low_lib_size          low_n_features high_subsets_Mt_percent 
##                       0                       0                    2264 
##                 discard 
##                    2264

Instead, we enforce a minimum difference between the threshold and the median in isOutlier() (Figure 11.1). We arbitrarily choose +0.5% here, which takes precedence over the outlier-based threshold if the latter is too low. In this manner, we avoid discarding libraries with a very modest amount of contamination; the same code will automatically fall back to the outlier-based threshold in datasets where the stripping was systematically less effective.

##            low_lib_size          low_n_features high_subsets_Mt_percent 
##                       0                       0                      42 
##                 discard 
##                      42
Distribution of the mitochondrial proportions in the Wu kidney dataset. Each point represents a cell and is colored according to whether it was considered to be of low quality and discarded.

Figure 11.1: Distribution of the mitochondrial proportions in the Wu kidney dataset. Each point represents a cell and is colored according to whether it was considered to be of low quality and discarded.

11.3 Comments on downstream analyses

The rest of the analysis can then be performed using the same strategies discussed for scRNA-seq (Figure 11.2). Despite the loss of cytoplasmic transcripts, there is usually still enough biological signal to characterize population heterogeneity (Bakken et al. 2018; Wu et al. 2019). In fact, one could even say that snRNA-seq has a higher signal-to-noise ratio as sequencing coverage is not spent on highly abundant but typically uninteresting transcripts for mitochondrial and ribosomal protein genes. It also has the not inconsiderable advantage of being able to recover subpopulations that are not amenable to dissociation and would be lost by scRNA-seq protocols.

$t$-SNE plots of the Wu kidney dataset. Each point is a cell and is colored by its cluster assignment (left) or its disease status (right).

Figure 11.2: \(t\)-SNE plots of the Wu kidney dataset. Each point is a cell and is colored by its cluster assignment (left) or its disease status (right).

We can also apply more complex procedures such as batch correction (Multi-sample Chapter 1). Here, we eliminate the disease effect to identify shared clusters (Figure 11.3).

More $t$-SNE plots of the Wu kidney dataset after applying MNN correction across diseases.

Figure 11.3: More \(t\)-SNE plots of the Wu kidney dataset after applying MNN correction across diseases.

Similarly, we can perform marker detection on the snRNA-seq expression values as discussed in Basic Chapter 6. For the most part, interpretation of these DE results makes the simplifying assumption that nuclear abundances are a good proxy for the overall expression profile. This is generally reasonable but may not always be true, resulting in some discrepancies in the marker sets between snRNA-seq and scRNA-seq datasets. For example, transcripts for strongly expressed genes might localize to the cytoplasm for efficient translation and subsequently be lost upon stripping, while genes with the same overall expression but differences in the rate of nuclear export may appear to be differentially expressed between clusters. In the most pathological case, higher snRNA-seq abundances may indicate nuclear sequestration of transcripts for protein-coding genes and reduced activity of the relevant biological process, contrary to the usual interpretation of the effect of upregulation.

## DataFrame with 10 rows and 3 columns
##              Top      p.value          FDR
##        <integer>    <numeric>    <numeric>
## Sorcs1         1 8.31936e-262 1.51820e-258
## Ltn1           1  7.85490e-83  1.07778e-80
## Bmp6           1  0.00000e+00  0.00000e+00
## Il34           1  0.00000e+00  0.00000e+00
## Them7          1 9.46508e-208 8.22516e-205
## Pak1           1 1.35170e-184 8.22241e-182
## Kcnip4         1  0.00000e+00  0.00000e+00
## Mecom          1  5.30105e-20  7.11838e-19
## Pakap          1  0.00000e+00  0.00000e+00
## Wdr17          1 1.34668e-202 1.11707e-199

Other analyses described for scRNA-seq require more care when they are applied to snRNA-seq data. Most obviously, cell type annotation based on reference profiles (Basic Chapter 7) should be treated with some caution as the majority of existing references are constructed from bulk or single-cell datasets with cytoplasmic transcripts. Interpretation of RNA velocity results may also be complicated by variation in the rate of nuclear export of spliced transcripts.

11.4 Tricks with ambient contamination

The expected absence of genuine mitochondrial expression can also be exploited to estimate the level of ambient contamination (Multi-sample Chapter 5). We demonstrate on mouse brain snRNA-seq data from 10X Genomics (Zheng et al. 2017), using the raw count matrix prior to any filtering for nuclei-containing barcodes.

## class: SingleCellExperiment 
## dim: 27998 737280 
## metadata(1): Samples
## assays(1): counts
## rownames(27998): ENSMUSG00000051951 ENSMUSG00000089699 ...
##   ENSMUSG00000096730 ENSMUSG00000095742
## rowData names(2): ID Symbol
## colnames(737280): AAACCTGAGAAACCAT-1 AAACCTGAGAAACCGC-1 ...
##   TTTGTCATCTTTAGTC-1 TTTGTCATCTTTCCTC-1
## colData names(2): Sample Barcode
## reducedDimNames(0):
## mainExpName: NULL
## altExpNames(0):

We call non-empty droplets using emptyDrops() as previously described (Section 7.2).

##    Mode   FALSE    TRUE    NA's 
## logical    2306    1730  733244

If our libraries are of high quality, we can assume that any mitochondrial “expression” is due to contamination from the ambient solution. We then use the controlAmbience() function to estimate the proportion of ambient contamination for each gene, allowing us to mark potentially problematic genes in the DE results (Figure 11.4). In fact, we can use this information even earlier to remove these genes during dimensionality reduction and clustering. This is not generally possible for scRNA-seq as any notable contaminating transcripts may originate from a subpopulation that actually expresses that gene and thus cannot be blindly removed.

Percentage of counts in the nuclei of the 10X brain dataset that are attributed to contamination from the ambient solution. Each point represents a gene and mitochondrial genes are highlighted in red.

Figure 11.4: Percentage of counts in the nuclei of the 10X brain dataset that are attributed to contamination from the ambient solution. Each point represents a gene and mitochondrial genes are highlighted in red.

Session Info

R version 4.2.0 (2022-04-22)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 20.04.4 LTS

Matrix products: default
BLAS:   /home/biocbuild/bbs-3.15-bioc/R/lib/libRblas.so
LAPACK: /home/biocbuild/bbs-3.15-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] DropletUtils_1.16.0         DropletTestFiles_1.6.0     
 [3] batchelor_1.12.0            bluster_1.6.0              
 [5] scran_1.24.0                scater_1.24.0              
 [7] ggplot2_3.3.6               scuttle_1.6.2              
 [9] scRNAseq_2.10.0             SingleCellExperiment_1.18.0
[11] SummarizedExperiment_1.26.1 Biobase_2.56.0             
[13] GenomicRanges_1.48.0        GenomeInfoDb_1.32.2        
[15] IRanges_2.30.0              S4Vectors_0.34.0           
[17] BiocGenerics_0.42.0         MatrixGenerics_1.8.0       
[19] matrixStats_0.62.0          BiocStyle_2.24.0           
[21] rebook_1.6.0               

loaded via a namespace (and not attached):
  [1] AnnotationHub_3.4.0           BiocFileCache_2.4.0          
  [3] igraph_1.3.1                  lazyeval_0.2.2               
  [5] BiocParallel_1.30.2           digest_0.6.29                
  [7] ensembldb_2.20.1              htmltools_0.5.2              
  [9] viridis_0.6.2                 fansi_1.0.3                  
 [11] magrittr_2.0.3                memoise_2.0.1                
 [13] ScaledMatrix_1.4.0            cluster_2.1.3                
 [15] limma_3.52.1                  Biostrings_2.64.0            
 [17] R.utils_2.11.0                prettyunits_1.1.1            
 [19] colorspace_2.0-3              blob_1.2.3                   
 [21] rappdirs_0.3.3                ggrepel_0.9.1                
 [23] xfun_0.31                     dplyr_1.0.9                  
 [25] crayon_1.5.1                  RCurl_1.98-1.6               
 [27] jsonlite_1.8.0                graph_1.74.0                 
 [29] glue_1.6.2                    gtable_0.3.0                 
 [31] zlibbioc_1.42.0               XVector_0.36.0               
 [33] DelayedArray_0.22.0           BiocSingular_1.12.0          
 [35] Rhdf5lib_1.18.2               HDF5Array_1.24.0             
 [37] scales_1.2.0                  edgeR_3.38.1                 
 [39] DBI_1.1.2                     Rcpp_1.0.8.3                 
 [41] viridisLite_0.4.0             xtable_1.8-4                 
 [43] progress_1.2.2                dqrng_0.3.0                  
 [45] bit_4.0.4                     rsvd_1.0.5                   
 [47] ResidualMatrix_1.6.0          metapod_1.4.0                
 [49] httr_1.4.3                    dir.expiry_1.4.0             
 [51] ellipsis_0.3.2                R.methodsS3_1.8.1            
 [53] farver_2.1.0                  pkgconfig_2.0.3              
 [55] XML_3.99-0.9                  CodeDepends_0.6.5            
 [57] sass_0.4.1                    dbplyr_2.1.1                 
 [59] locfit_1.5-9.5                utf8_1.2.2                   
 [61] labeling_0.4.2                tidyselect_1.1.2             
 [63] rlang_1.0.2                   later_1.3.0                  
 [65] AnnotationDbi_1.58.0          munsell_0.5.0                
 [67] BiocVersion_3.15.2            tools_4.2.0                  
 [69] cachem_1.0.6                  cli_3.3.0                    
 [71] generics_0.1.2                RSQLite_2.2.14               
 [73] ExperimentHub_2.4.0           evaluate_0.15                
 [75] stringr_1.4.0                 fastmap_1.1.0                
 [77] yaml_2.3.5                    knitr_1.39                   
 [79] bit64_4.0.5                   purrr_0.3.4                  
 [81] KEGGREST_1.36.0               AnnotationFilter_1.20.0      
 [83] sparseMatrixStats_1.8.0       mime_0.12                    
 [85] R.oo_1.24.0                   xml2_1.3.3                   
 [87] biomaRt_2.52.0                compiler_4.2.0               
 [89] beeswarm_0.4.0                filelock_1.0.2               
 [91] curl_4.3.2                    png_0.1-7                    
 [93] interactiveDisplayBase_1.34.0 statmod_1.4.36               
 [95] tibble_3.1.7                  bslib_0.3.1                  
 [97] stringi_1.7.6                 highr_0.9                    
 [99] GenomicFeatures_1.48.1        lattice_0.20-45              
[101] ProtGenerics_1.28.0           Matrix_1.4-1                 
[103] vctrs_0.4.1                   rhdf5filters_1.8.0           
[105] pillar_1.7.0                  lifecycle_1.0.1              
[107] BiocManager_1.30.18           jquerylib_0.1.4              
[109] BiocNeighbors_1.14.0          cowplot_1.1.1                
[111] bitops_1.0-7                  irlba_2.3.5                  
[113] httpuv_1.6.5                  rtracklayer_1.56.0           
[115] R6_2.5.1                      BiocIO_1.6.0                 
[117] bookdown_0.26                 promises_1.2.0.1             
[119] gridExtra_2.3                 vipor_0.4.5                  
[121] codetools_0.2-18              assertthat_0.2.1             
[123] rhdf5_2.40.0                  rjson_0.2.21                 
[125] withr_2.5.0                   GenomicAlignments_1.32.0     
[127] Rsamtools_2.12.0              GenomeInfoDbData_1.2.8       
[129] parallel_4.2.0                hms_1.1.1                    
[131] grid_4.2.0                    beachmat_2.12.0              
[133] rmarkdown_2.14                DelayedMatrixStats_1.18.0    
[135] Rtsne_0.16                    shiny_1.7.1                  
[137] ggbeeswarm_0.6.0              restfulr_0.0.13              

References

Bakken, T. E., R. D. Hodge, J. A. Miller, Z. Yao, T. N. Nguyen, B. Aevermann, E. Barkan, et al. 2018. “Single-nucleus and single-cell transcriptomes compared in matched cortical cell types.” PLoS ONE 13 (12): e0209648.

Wu, H., Y. Kirita, E. L. Donnelly, and B. D. Humphreys. 2019. “Advantages of Single-Nucleus over Single-Cell RNA Sequencing of Adult Kidney: Rare Cell Types and Novel Cell States Revealed in Fibrosis.” J. Am. Soc. Nephrol. 30 (1): 23–32.

Zheng, G. X., J. M. Terry, P. Belgrader, P. Ryvkin, Z. W. Bent, R. Wilson, S. B. Ziraldo, et al. 2017. “Massively parallel digital transcriptional profiling of single cells.” Nat Commun 8 (January): 14049.