Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Mirrors
extractor
Commits
4233b4c4
Commit
4233b4c4
authored
Sep 14, 2016
by
jkvis
Browse files
Added repeat structure variant
parent
716433c2
Changes
2
Hide whitespace changes
Inline
Side-by-side
extractor/describe.py
View file @
4233b4c4
...
...
@@ -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
:
...
...
extractor/variant.py
View file @
4233b4c4
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment