Skip to content

Commit

Permalink
fix : new_seq --> new_sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
sepandhaghighi committed Oct 9, 2024
1 parent 2fff03f commit 02fddbb
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions opr/primer.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,11 @@ def reverse(self, inplace=False):
:type inplace: bool
:return: new Primer object or None
"""
new_seq = self._sequence[::-1]
new_sequence = self._sequence[::-1]
if inplace:
self._sequence = new_seq
self._sequence = new_sequence
else:
return Primer(sequence=new_seq)
return Primer(sequence=new_sequence)

def complement(self, inplace=False):
"""
Expand All @@ -100,13 +100,13 @@ def complement(self, inplace=False):
:type inplace: bool
:return: new Primer object or None
"""
new_seq = ""
new_sequence = ""
for item in self._sequence:
new_seq += DNA_COMPLEMENT_MAP[item]
new_sequence += DNA_COMPLEMENT_MAP[item]
if inplace:
self._sequence = new_seq
self._sequence = new_sequence
else:
return Primer(sequence=new_seq)
return Primer(sequence=new_sequence)

@staticmethod
def validate_primer(sequence):
Expand Down

0 comments on commit 02fddbb

Please sign in to comment.