Skip to content

Commit

Permalink
Merge pull request #52 from Jinyeong-Yang/dev_JY
Browse files Browse the repository at this point in the history
🐛 SynonymousPE bug fixed!
  • Loading branch information
Goosang-Yu authored Jan 2, 2024
2 parents fead54c + a2c7ac6 commit ca55c03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions genet/design/functional.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,8 @@ def generate(self, rtt_frame:int, strand:str) -> pd.DataFrame:
# priority 결정하는 부분 ##########################################
# 1/ Edit class에 따라서 분류하고, 각 class에 따라 값을 할당
if mut_pos in [5, 6]: edit_class = 'PAM_edit'; priority = 1
elif mut_pos < ep - 1 : edit_class = 'LHA_edit'; priority = 2 + ep - mut_pos
elif mut_pos > ep - 1 : edit_class = 'RHA_edit'; priority = 3 + ep + mut_pos
elif mut_pos < ep : edit_class = 'LHA_edit'; priority = 2 + ep - mut_pos
elif mut_pos > ep : edit_class = 'RHA_edit'; priority = 3 + ep + mut_pos

# 2/ GC contents가 변화하면 값 증가
if gc_fraction(codon) != gc_fraction(mut_codon): priority += 1
Expand Down

0 comments on commit ca55c03

Please sign in to comment.