Commit 925c4dec authored by J.K. Vis's avatar J.K. Vis
Browse files

Added support for insertions in transpositions

parent 552aac95
......@@ -207,10 +207,15 @@ static void transposition_extractor(char const* const reference,
for (size_t i = 0; i < transposition.size(); ++i)
{
// Ignore all deletions (or deleted parts).
if (transposition[i].sample_end - transposition[i].sample_start > 0)
if (transposition[i].type == IDENTITY ||
transposition[i].type == REVERSE_COMPLEMENT)
{
result.push_back(Variant(reference_start, reference_end, transposition[i].reference_start, transposition[i].reference_end, transposition[i].type));
} // if
else if (transposition[i].sample_end - transposition[i].sample_start > 0)
{
result.push_back(Variant(reference_start, reference_end, transposition[i].sample_start, transposition[i].sample_end, transposition[i].type));
} // if
} // for
result[open].type |= TRANSPOSITION_OPEN;
result[result.size() - 1].type |= TRANSPOSITION_CLOSE;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment