ntHash2: recursive spaced seed hashing for nucleotide sequences
Open Access
- 24 August 2022
- journal article
- research article
- Published by Oxford University Press (OUP) in Bioinformatics
- Vol. 38 (20) , 4812-4813
Abstract
Spaced seeds are robust alternatives to k-mers in analyzing nucleotide sequences with high base mismatch rates. Hashing is also crucial for efficiently storing abundant sequence data. Here, we introduce ntHash2, a fast algorithm for spaced seed hashing that can be integrated into various bioinformatics tools for efficient sequence analysis with applications in genome research. ntHash2 is up to 2.1× faster at hashing various spaced seeds than the previous version and 3.8× faster than conventional hashing algorithms with naïve adaptation. Additionally, we reduced the collision rate of ntHash for longer k-mer lengths and improved the uniformity of the hash distribution by modifying the canonical hashing mechanism. ntHash2 is freely available online at github.com/bcgsc/ntHash under an MIT license. Supplementary data are available at Bioinformatics online.Keywords
Funding Information
- National Institutes of Health (2R01HG007182-04A1)
- National Institutes of Health
This publication has 4 references indexed in Scilit:
- Mismatch-tolerant, alignment-free sequence classification using multiple spaced seeds and multiindex Bloom filtersProceedings of the National Academy of Sciences, 2020
- Iterative Spaced Seed Hashing: Closing the Gap Between Spaced Seed Hashing and k -mer HashingJournal of Computational Biology, 2020
- ntHash: recursive nucleotide hashingBioinformatics, 2016
- PatternHunter: faster and more sensitive homology searchBioinformatics, 2002