From ef5a2cfa9726c8ea3b5095cd0e509d37cbba7020 Mon Sep 17 00:00:00 2001 From: zqfang Date: Wed, 21 Aug 2024 13:45:34 -0700 Subject: [PATCH] indel key match to convert output --- haplomap/src/vep.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/haplomap/src/vep.cpp b/haplomap/src/vep.cpp index f75ab1e..080dd3d 100644 --- a/haplomap/src/vep.cpp +++ b/haplomap/src/vep.cpp @@ -201,10 +201,7 @@ std::string VarirantEeffectPredictor::set_key(std::string location, std::string std::string _vc = var_class.substr(0,3); this->upcase(_vc); - key = chrom + "_" - + std::to_string(start) + "_" - + std::to_string(end) + "_" - + _vc; + key = chrom + "_" + std::to_string(start); if (var_class == "snv") { @@ -222,7 +219,7 @@ std::string VarirantEeffectPredictor::set_key(std::string location, std::string } else { - key = "SV_" + key; + key = "SV_" + key + "_" + std::to_string(end) + "_" + _vc; } return key;