Skip to content

Commit

Permalink
fix : minor bug in basic_melting_temperature_calc function fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
sepandhaghighi committed Oct 9, 2024
1 parent c0da11a commit a1c31e9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions opr/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ def basic_melting_temperature_calc(sequence):
:type sequence: str
:return: melting temperature as float
"""
a_count = self._sequence.count('A')
t_count = self._sequence.count('T')
c_count = self._sequence.count('C')
g_count = self._sequence.count('G')
a_count = sequence.count('A')
t_count = sequence.count('T')
c_count = sequence.count('C')
g_count = sequence.count('G')
if len(sequence) <= 13:
melting_temperature = (a_count + t_count) * 2 + (g_count + c_count) * 4
else:
Expand Down

0 comments on commit a1c31e9

Please sign in to comment.