Commit 04cbde91 authored by Will Kaufhold's avatar Will Kaufhold Committed by cmaffeo2
Browse files

Fix from Will Kaufhold to add_nick routine when on_fwd_strand==False

parent f9d7ee2b
...@@ -744,8 +744,13 @@ class Segment(ConnectableElement, Group): ...@@ -744,8 +744,13 @@ class Segment(ConnectableElement, Group):
## TODO? Replace with abstract strand-based model? ## TODO? Replace with abstract strand-based model?
def add_nick(self, nt, on_fwd_strand=True): def add_nick(self, nt, on_fwd_strand=True):
self.add_3prime(nt,on_fwd_strand) if on_fwd_strand:
self.add_5prime(nt+1,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): def add_5prime(self, nt, on_fwd_strand=True):
if isinstance(self,SingleStrandedSegment): if isinstance(self,SingleStrandedSegment):
......
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