Skip to content
Snippets Groups Projects
Commit 649d7169 authored by Laros's avatar Laros Committed by Vermaat
Browse files

Fixed inserting raw sequence bug.

ins[T;A;T;G] should be insTATG
parent 926ab303
No related branches found
No related tags found
No related merge requests found
......@@ -509,8 +509,10 @@ def var2RawVar(s1, s2, var, seq_list=[], DNA=True):
#if
return RawVar(DNA=DNA, start=var.reference_start,
end=var.reference_start + 1,
inserted=seq_list or SeqList(s2[var.sample_start:var.sample_end]),
type="ins", shift=shift)
inserted=seq_list or
SeqList([s2[var.sample_start:var.sample_end]]), type="ins",
shift=shift, sample_start=var.sample_start,
sample_end=var.sample_end)
#if
# Deletion.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment