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
tbgl
tools
mrdna
Commits
04cbde91
Commit
04cbde91
authored
Jan 07, 2020
by
Will Kaufhold
Committed by
cmaffeo2
Jan 07, 2020
Browse files
Fix from Will Kaufhold to add_nick routine when on_fwd_strand==False
parent
f9d7ee2b
Changes
1
Show whitespace changes
Inline
Side-by-side
mrdna/segmentmodel.py
View file @
04cbde91
...
...
@@ -744,8 +744,13 @@ class Segment(ConnectableElement, Group):
## TODO? Replace with abstract strand-based model?
def
add_nick
(
self
,
nt
,
on_fwd_strand
=
True
):
if
on_fwd_strand
:
self
.
add_3prime
(
nt
,
on_fwd_strand
)
self
.
add_5prime
(
nt
+
1
,
on_fwd_strand
)
else
:
self
.
add_5prime
(
nt
,
on_fwd_strand
)
self
.
add_3prime
(
nt
+
1
,
on_fwd_strand
)
def
add_5prime
(
self
,
nt
,
on_fwd_strand
=
True
):
if
isinstance
(
self
,
SingleStrandedSegment
):
...
...
Write
Preview
Supports
Markdown
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