|
54 | 54 | // NOLINTBEGIN(*-narrowing-conversions) |
55 | 55 |
|
56 | 56 | // clang-format off |
57 | | -static constexpr std::array<std::uint8_t, 256> encoding = { |
| 57 | +static constexpr std::array<std::uint8_t, 96> encoding = { |
58 | 58 | 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, // 16 |
59 | 59 | 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, // 32 |
60 | 60 | 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, // 48 |
61 | 61 | 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, // 64 |
62 | 62 | 4, 0, 4, 1, 4, 4, 4, 2, 4, 4, 4, 4, 4, 4, 4, 4, // 80 |
63 | 63 | 4, 4, 4, 4, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, // 96 |
64 | | - 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, // 112 |
65 | | - 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, // 128 |
66 | | - 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, // 144 |
67 | | - 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, // 160 |
68 | | - 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, // 176 |
69 | | - 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, // 192 |
70 | | - 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, // 208 |
71 | | - 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, // 224 |
72 | | - 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, // 240 |
73 | | - 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4 // 256 |
74 | 64 | }; |
75 | 65 | // clang-format on |
76 | 66 |
|
@@ -150,8 +140,8 @@ get_basecall_model(const bamxx::bam_header &hdr) { |
150 | 140 | return {}; |
151 | 141 | } |
152 | 142 |
|
153 | | -// ADS: here the std::uint16_t allows for up to 256 reads, each contributing up |
154 | | -// to 256 "counts" in the probability encoding. |
| 143 | +// ADS: here the std::uint16_t allows for up to 256 reads, each contributing |
| 144 | +// up to 256 "counts" in the probability encoding. |
155 | 145 | typedef std::uint16_t count_type; |
156 | 146 |
|
157 | 147 | [[nodiscard]] static inline bool |
@@ -268,15 +258,13 @@ enum class missing_code : std::uint8_t { |
268 | 258 | unknown = 1, |
269 | 259 | }; |
270 | 260 |
|
271 | | -// NOLINTBEGIN(*-avoid-c-arrays) |
272 | | -static const char *const tag_values[] = { |
| 261 | +static constexpr auto tag_values = std::array<const char *, 5>{ |
273 | 262 | "CpG", // 0 |
274 | 263 | "CHH", // 1 |
275 | 264 | "CXG", // 2 |
276 | 265 | "CCG", // 3 |
277 | 266 | "N", // 4 |
278 | 267 | }; |
279 | | -// NOLINTEND(*-avoid-c-arrays) |
280 | 268 |
|
281 | 269 | struct mod_prob_buffer { |
282 | 270 | static constexpr auto init_capacity{128 * 1024}; |
|
0 commit comments