[Paper Review] Hierarchical clustering of DNA k-mer counts in RNA-seq fastq files reveals batch effects
This paper proposes HcKmer, a method that uses hierarchical clustering of DNA k-mer counts from raw RNA-seq Fastq files to detect batch effects without requiring alignment or prior knowledge. By analyzing k-mer frequencies (k=9) across 61 samples from 8 Illumina Flowcells, the method identifies strong batch effects in 21% of Flowcell comparisons and shows these effects persist after quality filtering and genome alignment, indicating they are not due to sequencing errors or low-quality reads.
Batch effects, artificial sources of variation due to experimental design, are a widespread phenomenon in high throughput data. Therefore, mechanisms for detection of batch effects are needed requiring comparison of multiple samples. We apply hierarchical clustering (HC) on DNA k-mer counts of multiple RNA-seq derived Fastq files. Ideally, HC generated trees reflect experimental treatment groups and thus may indicate experimental effects, but clustering of preparation groups indicates the presence of batch effects. In order to provide a simple applicable tool we implemented sequential analysis of Fastq reads with low memory usage in an R package (seqTools) available on Bioconductor. DNA k-mer counts were analysed on 61 Fastq files containing RNA-seq data from two cell types (dermal fibroblasts and Jurkat cells) sequenced on 8 different Illumina Flowcells. Results: Pairwise comparison of all Flowcells with hierarchical clustering revealed strong Flowcell based tree separation in 6 (21 %) and detectable Flowcell based clustering in 17 (60.7 %) of 28 Flowcell comparisons. In our samples, batch effects were also present in reads mapped to the human genome. Filtering reads for high quality (Phred >30) did not remove the batch effects. Conclusions: Hierarchical clustering of DNA k-mer counts provides a quality criterion and an unspecific diagnostic tool for RNA-seq experiments.
Motivation & Objective
- To detect batch effects in RNA-seq experiments that are not captured by standard quality control methods.
- To evaluate whether hierarchical clustering of DNA k-mer counts can serve as an unsupervised diagnostic tool for technical variation in high-throughput sequencing data.
- To assess the impact of batch effects on downstream differential gene expression analysis and their persistence after quality filtering and alignment.
- To determine whether batch effects are driven by a few overrepresented k-mers or by widespread, small deviations in k-mer frequencies.
Proposed method
- Extract DNA k-mer counts from raw Fastq files using k=9, resulting in 262,144 possible k-mers per sequence.
- Apply the Canberra distance to quantify pairwise dissimilarity between samples based on normalized k-mer count vectors.
- Scale total read counts to a common value to correct for sequencing depth differences.
- Perform hierarchical clustering using the hclust function with average linkage on the distance matrix.
- Compare clustering results across raw Fastq files, Phred-score-filtered sequences (Phred > 30), and reads aligned to the human genome (GRCh38).
- Use simulation studies with k=6 to evaluate sensitivity of the method in detecting batch effects.
Experimental results
Research questions
- RQ1Can hierarchical clustering of k-mer counts detect batch effects in RNA-seq Fastq files that are not apparent through standard quality control?
- RQ2To what extent do batch effects persist after filtering for high Phred-scores and after alignment to the human genome?
- RQ3Are batch effects driven by a small number of over- or underrepresented k-mers, or by widespread, small deviations across many k-mers?
- RQ4How do batch effects influence downstream differential gene expression analysis, particularly in terms of false discovery rate?
- RQ5Can HcKmer reliably distinguish between experimental effects and technical batch effects in a multi-Flowcell RNA-seq experiment?
Key findings
- In 6 out of 28 Flowcell comparisons (21%), hierarchical clustering of k-mer counts revealed strong separation corresponding to different Flowcells, indicating significant batch effects.
- In 17 out of 28 comparisons (60.7%), detectable clustering by Flowcell was observed, suggesting batch effects are prevalent across the dataset.
- Batch effects persisted even after filtering reads for Phred scores > 30, indicating they are not due to low-quality sequencing.
- Batch effects were also present in reads mapped to the human genome, showing they are not removed by alignment.
- The k-mer spectrum responsible for tree separation involved a broad distribution of k-mers with small to moderate count differences (mean difference = 0.30 log10-normalized counts), not a few extreme outliers.
- The HcKmer method diagnosed batch effects that were not detectable by inspection of individual k-mers, as over 3,600 k-mers with the largest differences were required to reach a 3% contamination rate.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.