Commit 4233b4c4 authored by jkvis's avatar jkvis
Browse files

Added repeat structure variant

parent 716433c2
......@@ -463,7 +463,7 @@ def describe_repeats(reference, sample, units):
repeat += 1
if len(variant_list) > 0 or len(repeats) > 0:
description.append(DNAVar(start=reference_start + 1,end=reference_end,sample_start=sample_start,sample_end=sample_end,type='delins',inserted=seq_list))
description.append(DNAVar(start=reference_start + 1,end=reference_end,sample_start=sample_start,sample_end=sample_end,type='struct',inserted=seq_list))
suffix = describe_dna(reference[reference_end:], sample[sample_end:])
for variant in suffix:
......
......@@ -261,6 +261,8 @@ class DNAVar(object):
if self.type in ('ins', 'delins'):
return description + str(self.inserted)
elif self.type == 'struct':
return str(self.inserted)
return description
return description + '{0}>{1}'.format(self.deleted, self.inserted)
......
Markdown is supported
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