From 5e684d39b00d9e9cb80f4619bf80ffb58ea61a4f Mon Sep 17 00:00:00 2001 From: Thomas Krannich <krannich479@googlemail.com> Date: Thu, 17 Mar 2022 09:34:31 +0100 Subject: [PATCH] update PG IDs fields --- src/popins2_merge_and_set_mate.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/popins2_merge_and_set_mate.h b/src/popins2_merge_and_set_mate.h index 9efd71b..a11587f 100644 --- a/src/popins2_merge_and_set_mate.h +++ b/src/popins2_merge_and_set_mate.h @@ -103,10 +103,12 @@ inline void readRecordAndCorrectRIds(BamAlignmentRecord & record, BamFileIn & st inline CharString iterSuffix(const CharString &PG_ID, const std::unordered_set<char*> &ids, const unsigned i){ CharString ret; append(ret, PG_ID); - CharString suf = ".mH"; + CharString inf = ".mH"; + append(ret, inf); + char buffer[32]; + itoa(i, buffer, 10); // unsigned, char*, numerical base + CharString suf = buffer; append(ret, suf); - CharString iter = i; - append(ret, iter); if (ids.find(toCString(ret)) == ids.end()) return ret; -- GitLab