Files
obitools4/pkg
Eric Coissac 1a1adb83ac Add error marker support for k-mers with enhanced documentation
This commit introduces error marker functionality for k-mers with odd lengths up to 31. The top 2 bits of each k-mer are now reserved for error coding (0-3), allowing for error detection and correction capabilities. Key changes include:

- Added constants KmerErrorMask and KmerSequenceMask for bit manipulation
- Implemented SetKmerError, GetKmerError, and ClearKmerError functions
- Updated EncodeKmers, ExtractSuperKmers, EncodeNormalizedKmers functions to enforce k ≤ 31
- Enhanced ReverseComplement to preserve error bits during reverse complement operations
- Added comprehensive tests for error marker functionality including edge cases and integration tests

The maximum k-mer size is now capped at 31 to accommodate the error bits, ensuring that k-mers with odd lengths ≤ 31 utilize only 62 bits of the 64-bit uint64, leaving the top 2 bits available for error coding.
2026-02-04 16:21:47 +01:00
..
2025-11-06 15:43:13 +01:00
2025-11-18 15:30:20 +01:00
2024-05-14 08:16:12 +02:00
2025-01-27 17:23:07 +01:00
2025-06-17 09:06:42 +02:00
2025-06-04 09:48:10 +02:00
2023-12-05 15:28:29 +01:00
2025-11-18 15:30:20 +01:00
2025-12-18 14:11:11 +01:00
2025-11-18 15:30:20 +01:00