Skip to content
naulon

No retraction, correction or concern found when last checked on Oct 17, 2026.

KAT: a K-mer analysis toolkit to quality control NGS datasets and genome assemblies

Daniel Mapleson, Gonzalo Garcia Accinelli, George Kettleborough and 2 more

Bioinformatics · 2016 · CC BY

doi:10.1101/064733

Abstract

Motivation. De novo assembly of whole genome shotgun (WGS) next-generation sequencing (NGS) data benefits from high-quality input with high coverage. However, in practice, determining the quality and quantity of useful reads quickly and in a reference-free manner is not trivial. Gaining a better understanding of the WGS data, and how that data is utilized by assemblers, provides useful insights that can inform the assembly process and result in better assemblies.

Results. We present the K-mer Analysis Toolkit (KAT): a multi-purpose software toolkit for reference-free quality control (QC) of WGS reads and de novo genome assemblies, primarily via their k-mer frequencies and GC composition. KAT enables users to assess levels of errors, bias and contamination at various stages of the assembly process. In this paper we highlight KAT’s ability to provide valuable insights into assembly composition and quality of genome assemblies through pairwise comparison of k-mers present in both input reads and the assemblies.

Availability and Implementation. KAT is available under the GPLv3 license at: https://github.com/TGAC/KAT.

Supplementary information. Supplementary data are available at Bioinformatics online.

Full text

From PubMed Central, U.S. National Library of Medicine, as current on Oct 17, 2026. Paragraph numbers are ours, so an answer can point at one.

1 Introduction

Rapid analysis of high-throughput whole genome shotgun (WGS) datasets is challenging due to their large size, with genome size and complexity creating additional challenges. Reference-free approaches for analyzing WGS data typically involve examining base calling quality, read length, GC content and exploring k-mer (words of size k) spectra. A frequently used reference-free quality control tool is FastQC (http://www.bioinformatics.babraham.ac.uk/projects/fastqc/).

K-mer spectra reveal information not only about the data quality (level of errors, sequencing biases, completeness of sequencing coverage and potential contamination) but also of genomic complexity (size, karyotype, levels of heterozygosity and repeat content; ). Additional information can be extracted through pairwise comparisons of WGS datasets, which can identify problematic samples by highlighting differences between spectra.

KAT, the K-mer Analysis Tookit, is a suite of tools for rapidly counting, comparing and analysing spectra for k-mers of arbitrary length directly from sequence data (see Supplementary section 2 for a discussion on choice of k and Supplementary section 3 for a comparison of k-mer tools).

2 The K-mer analysis toolkit

KAT is a C ++11 application containing multiple tools, each of which exploits multi-core machines via multi-threading where possible. Core functionality is contained in a library designed to promote rapid development of new tools. Runtime and memory requirements depend on input data size, error and bias levels, and properties of the biological sample but as a rule of thumb, machines capable of de novo assembly of a dataset will be sufficient to run KAT on the dataset (see Supplementary section 4 for details). K-mer counting in KAT is performed by an integrated and modified version of Jellyfish2, which supports large k values and is among the fastest k-mer counters available.

2.1 Assembly validation by comparison of read spectrum and assembly copy number

The KAT comp tool generates a matrix, with a sequence set’s k-mer frequency on one axis, and another set's frequency on the other, with cells holding distinct k-mers counts at the given frequencies. When comparing reads against an assembly, KAT highlights properties of assembly composition and quality. If represented in a stacked histogram, read k-mer spectrum is split by copy number in the assembly (see Supplementary section 5 for a primer on how to interpret KAT’s stacked histograms). In addition, KAT provides the sect tool necessary to study specific assembled sequences and track the k-mer coverage across both the read and the assembly spectra. This can help identify assembly artefacts such as collapsing or expanding events, or detect repeat regions. Figure 1 shows plots relating to two Fraxinus excelsior assemblies created from the same dataset using the comp and sect tools. The plots highlight different strategies taken by the assembler, in (a) and (c) we see some homozygous content being duplicated, and in (b) and (d) some heterozygous content eliminated.

2.2 Other KAT tools

KAT also includes the hist tool for computing spectrum from a single sequence set and the gcp tool to analyse gc content against k-mer frequency. The filter tool can be used to isolate sequences from a set according to their k-mer coverage or gc content from a given spectrum (see Supplementary section 1 for details on all the tools). These tools can be used for various tasks including contaminant detection and extraction both in raw reads and assemblies, analysis of the GC bias and consistency between paired end reads and other types of libraries.

3 Summary

KAT is a user-friendly, scalable toolkit for rapidly counting, comparing and analyzing k-mers from various data sources. The tools in KAT assist the user with a wide range of tasks including error profiling, assessing sequencing bias and identifying contaminants and de novo genome assembly QC and validation.

References 9

  1. 1.

    Anvar S.Y. et al (2014 ) Determining the quality and complexity of next-generation sequencing data without a reference genome. Genome Biol., 15, 555.

    Not in our library10.1186/s13059-014-0555-3

  2. 2.
  3. 3.
  4. 4.

    Marçais G., Kingsford C. (2011 ) A fast, lock-free approach for efficient parallel counting of occurrences of k-mers. Bioinformatics, 27, 764–770.

    Not in our library10.1093/bioinformatics/btr011

  5. 5.

    Metzker M.L. (2010 ) Sequencing technologies - the next generation. Nat. Rev. Genet., 11, 31–46.

    Not in our library10.1038/nrg2626

  6. 6.

    Schatz M.C. et al (2012 ) Current challenges in de novo plant genome sequencing and assembly. Genome Biol., 13, 243.

    Not in our library10.1186/gb-2012-13-4-243

  7. 7.
  8. 8.
  9. 9.

    Zhang Q. et al (2014 ) These are not the k-mers you are looking for: efficient online k-mer counting using a probabilistic data structure. PLoS One, 9, e101271.

    Not in our library10.1371/journal.pone.0101271

Cited by papers we hold 10

Reads

Read by people on this page

None yet.

Checked or read by AI through naulon

None yet.

A person counts once a day per paper. We keep no cookie and no address: a reader is a hash that changes every day. Any month under five reads shows no number.

Are you an author?

Is this your paper?

Claim it to add your note and be paid when agents cite it. Free.