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 {