Centrifuger: Lossless Compression of Microbial Genomes for Efficient and Accurate Metagenomic Sequence Classification | SpringerLink
Skip to main content

Centrifuger: Lossless Compression of Microbial Genomes for Efficient and Accurate Metagenomic Sequence Classification

  • Conference paper
  • First Online:
Research in Computational Molecular Biology (RECOMB 2024)

Abstract

Centrifuger is an efficient taxonomic classification method that compares sequencing reads against a microbial genome database. Due to the increasing availability of microbial genomes, classification methods tend to store the genome database in an approximate way, keeping the memory footprint within a practical range. In contrast, Centrifuger losslessly compresses the Burrows-Wheeler transformed (BWT) sequence from microbial genomes using a novel compression algorithm called run-block compression. We prove that the run-block compression achieves sublinear space complexity, \(O(\frac{n}{\sqrt{l}})\) words, where \(n\) is the sequence length and \(l\) is the average run length. This space complexity falls between the no-compression wavelet tree representation using \(O\left(n\right)\) words and the run-length compression representation using \(O(\frac{n}{l})\) words. Run-block compression is effective at compressing microbial databases like RefSeq, where the average run length of the BWT sequence is low, e.g., about 6.8. Combining this compression method with other strategies for compacting the Ferragina-Manzini (FM) index, Centrifuger reduces the index size by half compared to its predecessor, Centrifuge. Lossless compression helps Centrifuger achieve greater accuracy than competing methods at lower taxonomic levels such as species and genus. Additionally, run-block compression supports rapid rank queries in \(O\left(log\sigma \right)\mathrm{ time}\), the same order as the wavelet-tree rank query. Despite its use of a compressed data structure, Centrifuger is as fast as Centrifuge in terms of processing speed.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Subscribe and save

Springer+ Basic
¥17,985 /Month
  • Get 10 units per month
  • Download Article/Chapter or eBook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Chapter
JPY 3498
Price includes VAT (Japan)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
JPY 14871
Price includes VAT (Japan)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
JPY 18589
Price includes VAT (Japan)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Similar content being viewed by others

References

  1. Knight, R., et al.: Best practices for analysing microbiomes. Nat. Rev. Microbiol. 16, 410–422 (2018). https://doi.org/10.1038/s41579-018-0029-9

    Article  Google Scholar 

  2. Pruitt, K.D., Tatusova, T., Maglott, D.R.: NCBI reference sequences (RefSeq): a curated non-redundant sequence database of genomes, transcripts and proteins. Nucleic Acids Res. 35, D61–D65 (2007). https://doi.org/10.1093/nar/gkl842

    Article  Google Scholar 

  3. Wood, D.E., Lu, J., Langmead, B.: Improved metagenomic analysis with Kraken 2. Genome Biol. 20, 257 (2019). https://doi.org/10.1186/s13059-019-1891-0

    Article  Google Scholar 

  4. Roberts, M., Hayes, W., Hunt, B.R., Mount, S.M., Yorke, J.A.: Reducing storage requirements for biological sequence comparison. Bioinformatics 20, 3363–3369 (2004). https://doi.org/10.1093/bioinformatics/bth408

    Article  Google Scholar 

  5. Kim, D., Song, L., Breitwieser, F.P., Salzberg, S.L.: Centrifuge: rapid and sensitive classification of metagenomic sequences. Genome Res. 26, 1721–1729 (2016). https://doi.org/10.1101/gr.210641.116

    Article  Google Scholar 

  6. Burrows, M., Wheeler, D.J.: A block-sorting lossless data compression algorithm. SRS Research Report. 124 (1994)

    Google Scholar 

  7. Ferragina, P., Manzini, G.: Opportunistic data structures with applications. In: Proceedings 41st Annual Symposium on Foundations of Computer Science, pp. 390–398 (2000). https://doi.org/10.1109/SFCS.2000.892127

  8. Gagie, T., Navarro, G., Prezza, N.: Optimal-Time Text Indexing in BWT-runs Bounded Space (2017). http://arxiv.org/abs/1705.10382

  9. Grossi, R., Gupta, A., Vitter, J.S.: High-order entropy-compressed text indexes. In: Proceedings of the Fourteenth Annual ACM-SIAM Symposium on Discrete Algorithms, pp. 841–850. Society for Industrial and Applied Mathematics, USA (2003)

    Google Scholar 

  10. Song, L., Langmead, B.: Centrifuger: lossless compression of microbial genomes for efficient and accurate metagenomic sequence classification (2023). https://www.biorxiv.org/content/10.1101/2023.11.15.567129v1, https://doi.org/10.1101/2023.11.15.567129

Download references

Acknowledgments

This work is supported by the NIH grants P20GM130454 (Dartmouth), 3P20GM130454-05WS (Dartmouth), R01HG011392 (B.L.), and R35GM139602 (B.L.).

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Li Song .

Editor information

Editors and Affiliations

Ethics declarations

The authors have no competing interests to declare that are relevant to the content of this article.

Rights and permissions

Reprints and permissions

Copyright information

© 2024 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Song, L., Langmead, B. (2024). Centrifuger: Lossless Compression of Microbial Genomes for Efficient and Accurate Metagenomic Sequence Classification. In: Ma, J. (eds) Research in Computational Molecular Biology. RECOMB 2024. Lecture Notes in Computer Science, vol 14758. Springer, Cham. https://doi.org/10.1007/978-1-0716-3989-4_22

Download citation

  • DOI: https://doi.org/10.1007/978-1-0716-3989-4_22

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-1-0716-3988-7

  • Online ISBN: 978-1-0716-3989-4

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics