1. Introduction
Since its debut in 2006, RNA sequencing (RNA-seq) has surged in popularity as a go-to technology for transcriptome analysis and broader studies of RNA biology across diverse organisms, ranging from viruses and prokaryotes to eukaryotes [
1,
2,
3,
4,
5]. The initial material for RNA-seq (hereafter referred to as conventional bulk RNA-seq unless stated otherwise) is typically total RNA, consisting of over ten distinct RNA species with widely varying abundance. These include protein-coding messenger RNA (mRNA), noncoding RNA (ncRNA) such as ribosomal RNA (rRNA), transfer RNA (tRNA), microRNA (miRNA), and small nucleolar RNA (snoRNA). Among these RNA species, rRNA is the most abundant, constituting 80% to 90% of total RNA by mass, followed by tRNA (10% to 15%) [
6,
7,
8]. However, both rRNA and tRNA are often of little or no interest to most researchers. Fortunately, tRNAs are seldom sequenced by commonly used RNA-seq protocols because of their abundant base modifications and stable, compact secondary and tertiary structures [
9,
10]. Consequently, a crucial step in most RNA-seq protocols is to exclude rRNA from sequencing to enhance sequencing efficiency, improve sensitivity, and reduce costs. This goal can be achieved through the selection of polyA(+)-RNA or rRNA depletion strategies. The choice between the two strategies depends on the organisms of interest, research goals, and RNA integrity. For high-quality eukaryotic RNA samples, polyA(+)-RNA, mainly mRNA and long ncRNA, can be captured using oligo-dT-coated magnetic beads before reverse transcription [
1] or selectively reverse-transcribed with oligo-dT primers [
11,
12,
13]. On the other hand, various rRNA depletion methods are available for low-quality eukaryotic RNA samples, such as those from formalin-fixed, paraffin-embedded (FFPE) tissues [
14], and RNA from prokaryotes [
15]. These methods include (1) hybridization with biotinylated antisense oligonucleotide probes against rRNA, followed by streptavidin-coated magnetic bead pull-down [
16,
17]; (2) hybridization with antisense oligonucleotide probes against rRNA, followed by RNase H digestion and subsequent DNase I digestion [
18]; and (3) blocking reverse transcription of rRNA with locked nucleic acid probes complementary to rRNA [
19]. Although most RNA-seq experiments for eukaryotes have historically used polyA(+)-RNA selection methods, RNA-seq via rRNA depletion offers broader applications, i.e., allowing sequencing of non-polyadenylated RNA molecules, including a small fraction of mRNA, a majority of ncRNA in eukaryotes, and prokaryotic RNA.
Besides the highly abundant but often uninformative rRNA, genomic DNA (gDNA) contamination presents another challenge in RNA-seq. This occurs because of the presence of co-extracted gDNA during RNA preparation [
20,
21]. If not thoroughly removed, residual gDNA can be carried over into the sequencing library via the following mechanisms: (i) gDNA is replicated by reverse transcriptase during reverse transcription, albeit less efficiently than RNA. This is because reverse transcriptase acts as a both DNA-dependent and RNA-dependent DNA polymerase [
22]; (ii) the replicated gDNA products, along with cDNA fragments, undergo indiscernible end-repair, phosphorylation, A-tailing, sequencing adaptor ligation, and PCR amplification. Consequently, the gDNA can be sequenced alongside RNA by RNA-seq [
22], potentially leading to confounding signals. In fact, several studies have detected gDNA contamination in RNA-seq data [
23,
24,
25,
26,
27,
28,
29], with levels depending on the sequencing sites and protocols used in the RNA-seq library preparation (See Supplementary Information of [
27]). Li et al. showed that gDNA contamination levels could range from 0.7% to 22.7% in rRNA depletion-based RNA-seq libraries of human samples [
23]. Even RNA-seq data generated by large consortia may contain gDNA contamination. For example, in a study led by the SEQC/MAQC-III Consortium, DNA contamination was spotted in RNA-seq data generated from the commercial human reference RNA samples and in one sample from the SEQC neuroblastoma project [
27]. Signal and Kahlke found gDNA contamination in certain RNA-seq datasets within the ENA database [
26]. Notably, gDNA contamination not only reduces RNA-seq efficiency and sensitivity but also creates artificial gene expression signals, resulting in the misinterpretation of transcriptome composition and mis-quantification of gene expression [
23,
25,
27,
29]. Li et al. showed that relatively high concentrations of gDNA contamination (>1%) altered gene quantification and increased false discovery rates in differential expression analysis, especially for genes with low abundance, in RNA-seq data generated by the rRNA-depletion method [
23]. Verwilt et al. [
25] further pointed out that extremely low input RNA-seq protocols, such as SILVER-seq [
30], can suffer more severely from DNA contamination, contributing to the mis-quantification and false discoveries of mono-exonic transcripts [
25]. Given the mandatory use of the rRNA-depletion method in RNA-seq library preparation from FFPE clinical samples and prokaryotic samples, it is of practical significance to quickly detect gDNA contamination in these RNA-seq data. It is equally important to investigate how prevalent gDNA contamination is in RNA-seq data deposited in public repositories and enable researchers to quickly identify high-quality public RNA-seq data for re-analyses. Furthermore, there are situations where discarding gDNA-contaminated RNA-seq data and regenerating uncontaminated counterparts is prohibitively expensive or simply unattainable due to constraints on sample availability. In such scenarios, it is desirable to perform in silico correction of gDNA contamination prior to downstream analyses.
The percentage of reads mapping to intergenic regions (IR%) is a valuable metric for gauging gDNA contamination in RNA-seq data, even though some reads, classified as intergenic, might indeed originate from exonic regions of genes that remain incompletely annotated or unknown due to gaps in genome annotation. Despite its importance, post-alignment assessment of gDNA contamination has been largely underperformed. Several tools can be repurposed for this by leveraging the report statistics on read distribution across various genomic regions, including genes, introns, exons, and intergenic regions. Examples include the CollectRnaSeqMetrics module of the Picard Tools (
https://broadinstitute.github.io/picard/ (access on 16 July 2024)), Qualimap [
31], and ALFA [
32]. However, options for correcting such contaminations are more limited, with only two unpublished software tools available, gDNAx [
33] and SeqMonk [
34]. It is worth noting that both tools have limitations. While gDNAx can be easily integrated into automated RNA-seq analysis pipelines, its correction method is rudimentary, primarily filtering intronic and intergenic reads [
35], but inadequately addressing gDNA reads mapped to exons. SeqMonk assumes that the median read density in intergenic regions across a genome represents the level of gDNA contamination. This estimate is then utilized to infer the gene-level read/fragment counts originating from gDNA contamination, which are subsequently subtracted from the observed counts to yield the gDNA contamination-corrected counts [
34]. However, integrating SeqMonk into automated pipelines for large-scale RNA-seq data analysis poses challenges because it is a Java-based desktop tool with graphical interfaces. Li et al. introduced a correction method similar to SeqMonk, suggesting correcting gDNA contamination by subtracting the mean FPKM (Fragments Per Kilobase of transcript per Million mapped reads) across all intergenic regions from the observed gene expression in FPKM for each gene [
23]. Both SeqMonk and Li’s method assume a uniform distribution of reads originating from gDNA contamination. Moreover, neither of these methods has undergone formal evaluation for their correction performance in the context of gene expression quantification or differential expression analysis. Therefore, despite the existence of tools for detecting gDNA contamination in RNA-seq data, there is still a need for a comprehensive and rigorously evaluated tool capable of both detection and correction.
To address this need, we developed an R/Bioconductor package, CleanUpRNAseq. It generates various diagnostic plots to facilitate the detection of gDNA contamination in RNA-seq data. With CleanUpRNAseq, users can visualize summary mapping statistics of RNA-seq data across various genomic features such as introns, exons, intergenic regions, rRNA-encoding regions, and organellar genomes. It also allows users to examine sample-level gene expression distributions, the percentages of genes surpassing specified thresholds, gene expression correlation between sample pairs, and similarity and variability of gene expression profiles across the entire experiment. More importantly, CleanUpRNAseq provides three methods for gDNA contamination correction for unstranded RNA-seq data and one dedicated method for stranded RNA-seq data. Benchmarking against RNA-seq data with known levels of gDNA contamination and real-world RNA-seq datasets with gDNA contamination demonstrates the efficacy of these methods in correcting gDNA contamination in RNA-seq data.
3. Results
The percentage of reads mapping to intergenic regions (IR%) serves as an important indicator of gDNA contamination in RNA-seq data [
23]. Elevated IR% values in RNA-seq data, relative to uncontaminated samples processed under similar conditions, typically signify gDNA contamination. This contamination not only increases the IR%, but also distorts gene expression quantification [
23,
25]. As gDNA contamination intensifies, its impact on gene expression quantification increases through several discernible effects: (1) shifts in sample-level gene expression distributions towards higher values; (2) increased detection of genes expressed above a specified threshold; (3) diminished correlation in gene expression profiles between contaminated and uncontaminated samples; (4) increased dissimilarity and variability among gene expression profiles of samples across an experiment. Thus, detecting potential gDNA contamination in RNA-seq data necessitates a multifaceted approach. To address this, we implemented a comprehensive set of functions in CleanUpRNAseq, enabling visualization of the following parameters: (1) read mapping percentages across various genomic features, including genes, exons, introns, intergenic regions, rRNA exons, and organellar genome(s); (2) distributions of sample-level gene expression; (3) percentages of genes with expression levels above user-defined thresholds; (4) pairwise correlation of gene expression profiles; and (5) similarity and variability in gene expression profiles across an entire experiment.
To correct gDNA contamination in RNA-seq data, we devised three methods for unstranded RNA-seq data: the “Global” method, the “GC%” method, and the “IR%” method, along with one tailored method for stranded RNA-seq data (refer to the Materials and Methods section). We evaluated the functionalities using two datasets, as detailed in the RNA-seq datasets section, and presented the results below.
3.1. CleanUpRNAseq Possesses the Capability to Detect and Correct Significant gDNA Contamination in RNA-Seq Data Produced through the rRNA-Depletion Method
To demonstrate the functionalities of CleanUpRNAseq, we analyzed a RNA-seq dataset with predefined levels of gDNA contamination in the RNA samples (Dataset I) [
23]. We chose this dataset because all RNA samples originated from the same cell culture extract, and the differences between groups of samples were well-defined. Variations among sample groups were solely attributed to whether RNA samples underwent DNase I treatment and the varying levels of deliberately added gDNA to the DNase I-treated RNA samples. We hypothesized that applying an effective correction method would result in the corrected gene expression profiles of samples with added gDNA more closely resembling those without, compared to the uncorrected gene expression profiles affected by gDNA contamination. This dataset serves as an ideal benchmark for evaluating the performance of correction methods in minimizing false positive rates.
When analyzing the RNA-seq data generated by the polyA(+)-RNA selection method, we observed that moderate gDNA contamination (up to 10%, 25 ng) in RNA samples has little effect on gene expression quantification, differential gene expression analysis, and read distribution across various genomic regions (
Figure S3). Differential expression analysis detected a very small number of differentially expressed genes between samples of any given level of added gDNA and the control group (
Figures S4 and S5A). These observations indicate that adding gDNA to the DNase I-treated RNA samples had a minimal impact on the RNA-seq data generated with the polyA(+)-RNA selection method.
In contrast, we observed significant impacts across various metrics for the RNA-seq data generated by the rRNA-depletion method (
Figure S6). Notably, even a minimal addition of gDNA (as low as 1%, 2.5 ng) led to a discernible distinction. These differences manifested in several aspects, such as elevated IR%, alterations in gene expression profiles and distributions, increases in the proportion of genes exhibiting expression levels above one CPM or TPM, as well as a declined correlation between samples without added gDNA and those with 1% or more added gDNA (
Figure S6A,C–F). The impact of introducing 10% of gDNA on gene expression profiles became evident through boxplots (
Figure S6B). These effects on gene expression profiles, with varying percentages of added gDNA, were also apparent in dendrograms showing hierarchical clustering of gene expression profiles and PCA plots illustrating the variability in gene expression profiles across all samples (
Figure S6G,H). Further validation of the influence of added gDNA on gene expression profiles was attained through differential expression analysis. The number of differentially expressed genes between samples with added gDNA and the control group increased notably when 1% or more of gDNA was added to the RNA samples (
Figure 1 and
Figure S7A). These findings indicate that gDNA contamination exerts a significantly greater impact on gene expression profiles in the RNA-seq data generated with the rRNA-depletion method compared to those from the polyA(+)-RNA selection method, consistent with findings by Li et al. [
23].
We next performed gDNA contamination correction using the three different methods for unstranded RNA-seq data. For the RNA-seq data generated with the polyA(+)-RNA selection method, density plots showing gene expression distributions revealed that none of the three methods significantly modified the gene expression distributions of samples at any levels of gDNA contamination (
Figure S8A). This is likely because gDNA contamination has minimal impact on the RNA-seq data generated using this method. In contrast, for the RNA-seq data generated using the rRNA-depletion method, all three methods demonstrated effectiveness. Among them, the “IR%” method induced the most significant correction in gene expression profiles, while the other two methods exhibited comparable performance (
Figure S8B). The correction effects were further validated through differential expression analyses conducted between the control group and samples with any given level of added gDNA, before and after correcting gDNA contamination.
For RNA-seq data generated using the rRNA-depletion method, applying the “IR%” correction method led to a significant decrease in the numbers of DEGs between the control group and the samples with 1% or 10% of gDNA added, while the “GC%” and “Global” correction methods showed moderate but comparable effects (
Figure 1 and
Figure S7). In contrast, for polyA(+)-RNA selection-based RNA-seq data, the numbers of DEGs were initially small even before correcting gDNA contamination (
Figures S4 and S5A). The application of any of the three correction methods resulted in no reduction in the numbers of DEGs (
Figures S4 and S5). Taken together, the “IR%” method demonstrated the highest effectiveness, followed by the “GC%” and “Global” methods, in correcting gDNA contamination at 1% or higher in the rRNA depletion-based RNA-seq data, while none of the three correction methods worked in the polyA(+)-RNA selection-based RNA-seq data.
Another interesting observation is that RNA samples not treated with DNase I contains less than 2% of gDNA [
23] (
Figure S6), yet we detected a higher number of DEGs between them and the control group compared to the number observed between the group of RNA samples with 10% of gDNA and the control group in the RNA-seq data generated using the polyA(+)-RNA selection method (
Figure S4). In addition, the gene expression profiles of this group of samples are significantly different from other samples (
Figures S3E–G and S6B–G). Since the addition of up to 10% of gDNA to RNA samples minimally affected the gene expression profiles determined by the polyA(+)-RNA selection method-based RNA-seq assays, we infer that the RNA samples not treated with DNase I likely have different RNA compositions from those treated with DNase I. The alteration in RNA compositions might have originated from the DNase I digestion process and/or the following washing step. The DEGs resulting from differences in RNA compositions cannot be reduced by the gDNA contamination correction methods (
Figure 1 and
Figure S4).
3.2. CleanUpRNAseq Possesses the Capability to Detect and Correct Detrimental Levels of gDNA Contamination in RNA-Seq Data Generated by the Selective Reverse Transcription of polyA(+)-RNA Method with Ultra Low Input RNA
In addition to analyzing RNA-seq data generated from RNA samples deliberately contaminated with controlled levels of gDNA using both the polyA(+)-RNA selection and rRNA-depletion methods, we further validated CleanUpRNAseq’s capabilities by analyzing an additional RNA-seq dataset generated using the SMART-Seq
® v4 Ultra
® Low Input RNA Kit for Sequencing (Takara Bio, Shiga, Japan), which selectively reverse-transcribes polyA(+)-RNA from the total RNA [
46]. We identified two samples, CD1A(−)_m2_1 and CD1A(−)_m3_1, exhibiting extremely high IR%, alongside four other samples—CD1A(+)_m2_1, CD1A(+)_m3_1, CD1A(+)_m3_2, and CD1A(−)_m4_1—with slightly elevated IR%, compared to the remaining eight samples (
Figure 2A). The boxplots, density plots, and empirical cumulative distribution plots collectively revealed notable discrepancies in the gene expression profiles of the two samples, CD1A(−)_m2_1 and CD1A(−)_m3_1, compared to the remaining 12 samples. As the expression profiles of the remaining samples exhibited relatively smaller variability (
Figure 2B,D), the distinct patterns observed in those samples strongly indicate heavy gDNA contamination in CD1A(−)_m2_1 and CD1A(−)_m3_1, with slight contamination in CD1A(+)_m2_1, CD1A(+)_m3_1, CD1A(+)_m3_2, and CD1A(−)_m4_1. The assertion was further supported by the markedly higher percentages of genes with expression levels above one CPM or one TPM in the heavily contaminated samples, along with mildly elevated percentages in the slightly contaminated samples (
Figure 2E). Correlation analysis and smooth scatter plots provided additional evidence of gDNA contamination in these samples (
Figure 2F). Hierarchical clustering and PCA revealed significant batch effects, highlighting stark difference in gene expression profiles between the two heavily contaminated samples and the rest of samples from the same batch (
Figure 2G,H). To avoid the side effect of gDNA contamination, samples heavily contaminated with gDNA (CD1A(−)_m2_1 and CD1A(−)_m3_1) and the paired samples (CD1A(+)_m2_1 and CD1A(+)_m3_1) were excluded from the differential gene expression analysis in the original publication [
46].
We proceeded to evaluate the efficacy of the three methods for addressing gDNA contaminations in this RNA-seq dataset. Our premise rested on a reasonable assumption that gene expression profiles of biological replicates should exhibit high similarity, and that the effectively corrected gene expression profile of an RNA sample contaminated with gDNA should closely resemble that of an uncontaminated RNA sample extracted from the same biological material. Notably, in this dataset, both RNA samples CD1A(−)_m3_2 and CD1A(−)_m3_1 originated from the same population of CD7
+CD1A
− cells, with the former uncontaminated and the latter heavily contaminated by gDNA. Likewise, both RNA samples CD1A(+)_m3_2 and CD1A(+)_m3_1 were derived from the same CD7
+CD1A
+ cell population, with the former uncontaminated and the latter heavily contaminated by gDNA. Furthermore, the CD1A(−)_m2 and CD1A(+)_m2 cells were sorted from the same mouse PDX, as were the CD1A(−)_m3 and CD1A(+)_m3 cells. Hence, we expected that following an appropriate correction of gDNA contamination, the gene expression profiles of CD1A(−)_m3_2 and CD1A(−)_m3_1 would exhibit higher similarity. After examining the density plots of gene expression profiles before and after correction with the three methods (
Figure 3), we concluded that the “IR%” method performed best, followed by the “GC%” and “Global” methods, which exhibited similar performance. This claim is further supported by the results of differential expression analyses between the CD1A(+) and CD1A(−) groups, using gene expression matrices before and after the correction of gDNA contamination with the three methods. The largest number of DEGs, particularly the down-regulated ones, were identified when none of the correction methods was applied (
Figure 4A). This aligns with the expectations, given that the two heavily contaminated replicates belong to the CD1A(−) group, and the comparison involves CD1A(+) versus CD1A(−). Applying the “IR%” method resulted in the fewest DEGs, a number much closer to that observed in the corresponding analysis with contaminated samples excluded, whereas similar numbers of DEGs were observed following the application of “GC%” and “Global” correction methods (
Figure 4A). Sankey plots and volcano plots displaying DEGs indicated a significant reduction in the number of down-regulated DEGs in the CD7
+CD1A
+ cells compared to the CD7
+CD1A
− cells, following application of the “IR” correction method (
Figure 4B and
Figure 5), demonstrating the effectiveness of the “IR%” method in mitigating gDNA contamination within the CD1A(−) group. This conclusion was further confirmed by the hierarchical clustering analysis of gene expression profiles, both before and after the application of the three correction methods (
Figure S10). Notably, only after employing the “IR%” method were the samples CD1A(−)_m3_2 and CD1A(−)_m3_1 closest to each other. Similarly, the samples CD1A(+)_m3_2 and CD1A(+)_m3_1 exhibited the closest similarity (
Figure S10G). Importantly, the biological replicates of CD1A(+) samples formed a distinct cluster, clearly separated from the cluster formed by the biological replicates of the CD1A(−) samples, but this distinction became evident only after applying the “IR%” correction method (
Figure S10G). The results of PCA of the gene expression profiles before and after applying the three correction methods were consistent with those of the hierarchical clustering analysis (
Figure S10).
Taken together, CleanUpRNAseq demonstrated its ability to detect and correct gDNA contamination in the RNA-seq data generated using the SMART-Seq® v4 Ultra® Low Input RNA Kit for Sequencing (Takara Bio, Shiga, Japan), with the “IR%” correction method proving to be the most effective in mitigating such contamination.
4. Discussion
gDNA contamination is an inherent problem in RNA preparation due to the close resemblance between DNA and RNA in their physicochemical properties [
20,
21]. Failure to effectively remove gDNA contamination from RNA extraction might compromise the reliability of RNA-based gene expression quantification and differential gene expression analysis. The impact of gDNA contamination on gene expression quantification via RT-qPCR has been extensively studied, leading to the development of methods to prevent gDNA amplification or to correct gDNA contamination [
50,
51]. However, the implication of gDNA contamination in RNA preparation on gene expression quantification via RNA-seq remains relatively understudied [
23,
25], with some discussion primarily found in online forums [
52,
53,
54,
55,
56]. For instance, a search with keywords “DNA contamination” and “RNA-seq” returned eight relevant posts in BioStar (
https://www.biostars.org/ (accessed on 13 July 2024)) [
57]. While a couple of tools have emerged to address gDNA contamination in RNA-seq data, their performance lacks rigorous validation through benchmarking studies and peer-reviewed evaluation [
33,
34]. This underscores the necessity for further research to comprehensively understand and mitigate the influence gDNA contamination on RNA-seq based gene expression quantification and differential gene expression analysis.
In response to the pressing need for rapid identification and remediation of gDNA contamination in both publicly available and in-house RNA-seq datasets, we developed the CleanUpRNAseq package. Our tool underwent rigorous testing using RNA-seq data generated by three distinct methods: polyA(+)-RNA selection from total RNA by oligo-dT-coated magnetic beads, rRNA-depletion from total RNA by RiboMinus Eukaryote Kit for RNA-Seq (Invitrogen), and selective reverse transcription of polyA(+)-RNA in the context of total RNA by the SMART-Seq® v4 Ultra® Low Input RNA Kit for Sequencing (Takara Bio, Shiga, Japan).
CleanUpRNAseq demonstrates remarkable efficacy in detecting problematic levels of gDNA contamination in the RNA-seq data generated with the rRNA depletion (1% threshold) method. It also exhibits good sensitivity in detecting lightly or heavily contaminated samples in RNA-seq data generated by the SMART-Seq
® v4 Ultra
® Low Input RNA Kit for Sequencing (Takara Bio, Shiga, Japan). However, CleanUpRNAseq did not detect obvious gDNA contamination in the RNA-seq data generated with the polyA(+)-selection method, even when up to 10% of gDNA was added to the DNase I-treated RNA for library preparation. Our findings, aligned with Li et al.’s [
23], highlight a significantly different impact of gDNA contamination on RNA-seq data generated by the polyA(+)-RNA selection and rRNA depletion methods. The observation of a more pronounced effect of gDNA contamination on RNA-seq data generated by the rRNA-depletion method warrants the necessity of robust contamination detection and mitigation strategies for datasets derived from this method and similar ones.
In addition to the two primary methods for conventional bulk RNA-seq, numerous innovative RNA-seq techniques have emerged over the years. These include single-cell RNA-seq methods, spatially resolved RNA-seq methods, nascent RNA-sequencing methods, translating RNA-sequencing methods, and RNA-seq methods for investigating RNA interactome [
5,
58]. While all methods share common mechanisms in carrying over residual gDNA contamination into the sequencing library, a notable difference lies in the initial amount of residual gDNA present before reverse transcription and PCR amplification. For example, during polyA(+)-RNA selection, the vast majority of gDNA contamination is effectively removed through the selective capture by oligo-dT-coated magnetic beads and subsequent washing steps, distinguishing it from other methods lacking stringent RNA selection or gDNA exclusion process. As a consequence, only a trace amount of random DNA fragments are non-specifically bound by beads [
59], with a small fraction of gDNA fragments containing long stretches of A’s being selectively captured by beads during DNA breathing, accelerated by the procedure of RNA denaturation at 60 °C [
60]. Hence, the polyA(+)-RNA selection method notably produces a sequencing library with significantly reduced and non-uniform gDNA contamination. Aligned with this, only a small number of genes were consistently detected as differentially expressed between the control group and the sample groups with various levels of added gDNA in polyA(+)-RNA selection-based RNA-seq. Therefore, we anticipate a minimal impact of gDNA contamination on the integrity of data generated by RNA-seq methods, which typically involve selective removal of gDNA contamination. Conversely, the impact of gDNA contamination is considerably more profound and widespread in the RNA-seq data generated via both the rRNA-depletion and the selective reverse transcription of polyA(+)-RNA methods, as neither of them effectively removes gDNA contamination prior to reverse transcription.
In the CleanUpRNAseq package, we implemented three methods to correct gDNA contamination in unstranded RNA-seq data. The “Global” method estimates the global contamination based on median read coverage in non-zero counted intergenic regions, assuming a uniform distribution of gDNA-derived reads across the genome. However, this assumption may not hold true at very low contamination levels or when read distributions are skewed by biased PCR amplification. In light of the GC-content bias effect on PCR amplification and gene quantification in RNA-seq [
61,
62,
63,
64], we devised the “GC%” method, which estimates gDNA contamination for genes in each GC-content bin based on the median read coverage in intergenic regions within the same GC-content bin. Contrary to expectations, but in line with Li et al.’s [
23], incorporating GC-content bias did not significantly improve contamination correction compared to the simpler “Global” method. The third method, “IR%” correction, incorporates the IR% as a covariate in linear models for correcting gDNA contamination or generalized linear models for differential expression analysis. It assumes a linear relationship between the IR rate and the log-transformed CPM of gene expression. This method harnesses the power of leveraging data from all samples to incorporate a global estimation of contamination as a covariate and model gene-specific effects. By employing this approach, it effectively addresses the limitations of pure global methodologies, resulting in an enhanced ability to estimate contamination effects and facilitate contamination removal, consistently outperforming others in mitigating problematic gDNA contamination levels for differential expression analysis.
However, when reads originating from gDNA contamination significantly deviate from a uniform distribution, such as in RNA-seq data with very low levels of gDNA contamination, or in instances of ‘jackpot’ effects caused by PCR amplification bias, or when a linear relationship between the IR rate and log-transformed CPM of gene expression is absent, none of the methods effectively address gDNA contamination in unstranded RNA-seq data. PolyA(+)-RNA selection-based RNA-seq results in non-uniform distribution due to the inefficient and selective capture of gDNA fragments containing stretches of As by oligo-dT-coated beads. In contrast, low contamination levels (<1%) in rRNA depletion-based RNA-seq disrupt uniform distribution due to sampling noise. However, correction is unnecessary when the contamination level is inconsequential, as contamination at such levels only minimally affects gene expression quantification and differential gene expression analysis. Therefore, correction for gDNA contamination is largely unnecessary for RNA-seq data generated with the polyA(+)-RNA selection method or those with gDNA contamination below 1% by mass.
For stranded RNA-seq data, we implemented a specialized method to address gDNA contamination, taking advantage of the stranded nature of the reads originating from RNA transcripts. Unlike single-stranded RNA transcripts, both strands of double stranded gDNA can serve as template for reverse transcriptase. Consequently, the percentages of sequenced gDNA reads derived from either strand should approach 50%. Our method for correcting gDNA contamination in stranded RNA-seq data operates on this premise, yet it assumes neither a uniform distribution of gDNA-derived reads nor a linear relationship between log-transformed CPM/count and gDNA contamination levels approximated by the IR rate. Specifically, gene expression quantification is performed twice, first employing the anticipated library strandedness and then utilizing the opposite strandedness, to obtain two gene-by-sample count matrices. Subtracting the counts of the latter from the former generates the corrected gene expression matrix, which can be used for any quantification-based analysis. Though a stranded RNA-seq dataset with gDNA contamination is not available to directly validate our correction method, we hold confidence in its reliability, given the preservation of strandedness of RNA transcripts during stranded library preparation. Such a dataset would serve as invaluable ground truth for evaluating the performance of the three correction methods designed for unstranded RNA-seq datasets, particularly in estimating both false positive and false negative rates in differential gene expression.
In practice, it is crucial to prioritize the removal of gDNA contamination during RNA preparation for RNA-seq. We advocate for the thorough removal of gDNA upfront rather than relying on bioinformatics correction, which should be considered as a last resort. On-column DNase I treatment may not guarantee the complete elimination of DNA due to potential inhibition of the DNase activity by residual lysis solution and other contaminants, leading to incomplete digestion of gDNA. For the efficient removal of gDNA, we recommend employing a combination of the RNAqueous
®-4PCR Kit and the DNA-free DNase treatment and removal reagents from Ambion (ThermoFisher Scientific, Waltham, MA, USA). This method is effective even for samples with limited quantity, such as 100 cells or 1 mg of tissue [
59]. As a gatekeeping measure, RNA samples intended for RNA-seq should undergo examination of gDNA contamination by qPCR without reverse transcription. We suggest utilizing primers targeting ribosomal DNA (rDNA) for this purpose, leveraging their high copy number in genomes for improved sensitivity [
65]. If DNase digestion is not feasible, stranded RNA-seq is recommended. PolyA(+) selection-based, unstranded RNA-seq can be considered as the next option, while unstranded RNA-seq with a non-polyA(+)-RNA selection method should be avoided whenever possible. For existing unstranded and stranded RNA-seq data exhibiting apparent gDNA contamination, we recommend employing the “IR%” method and the dedicated approach that utilizes the strandedness information to correct gDNA contamination in differential expression and co-expression analyses, respectively.