From dd4fdfd4a7753ce13236eee6691a4b7f5ca97339 Mon Sep 17 00:00:00 2001 From: Tobias Rausch Date: Mon, 4 Mar 2024 16:41:56 +0100 Subject: [PATCH] svlen insertions --- src/compvcf.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/compvcf.h b/src/compvcf.h index dbcf8da..781c0b9 100644 --- a/src/compvcf.h +++ b/src/compvcf.h @@ -265,6 +265,10 @@ namespace sansa // Insertion length if (_isKeyPresent(hdr, "INSLEN")) { if (bcf_get_info_int32(hdr, rec, "INSLEN", &inslen, &ninslen) > 0) inslenVal = *inslen; + } else if (svtVal == "INS") { + if (_isKeyPresent(hdr, "SVLEN")) { + if (bcf_get_info_int32(hdr, rec, "SVLEN", &inslen, &ninslen) > 0) inslenVal = *inslen; + } } // BNDs