From ce55be5ff38eb5e3a7a5c964073a27b532804a29 Mon Sep 17 00:00:00 2001 From: Brian Ondov Date: Fri, 30 Sep 2016 19:37:39 -0400 Subject: [PATCH] for for insertion rendering in Gingr --- src/harvest/VariantList.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/harvest/VariantList.cpp b/src/harvest/VariantList.cpp index 258d350..794b2ed 100644 --- a/src/harvest/VariantList.cpp +++ b/src/harvest/VariantList.cpp @@ -274,7 +274,14 @@ void VariantList::addVariantsFromAlignment(const vector & seqs, const Re if ( referenceList.getReferenceCount() ) { - varNew->reference = referenceList.getReference(sequence).sequence[position]; + if ( offset > 0 ) + { + varNew->reference = '-'; + } + else + { + varNew->reference = referenceList.getReference(sequence).sequence[position]; + } } else {