yunuk0 commited on
Commit
b00fda0
·
verified ·
1 Parent(s): ad8e37b

Delete utils/hydrophobicity.py

Browse files
Files changed (1) hide show
  1. utils/hydrophobicity.py +0 -11
utils/hydrophobicity.py DELETED
@@ -1,11 +0,0 @@
1
- def avg_hydrophobicity(seq: str) -> float:
2
- """Kyte–Doolittle scale 기반 평균 소수성 계산"""
3
- hp_map = {
4
- 'A': 1.8, 'R': -4.5, 'N': -3.5, 'D': -3.5, 'C': 2.5,
5
- 'Q': -3.5, 'E': -3.5, 'G': -0.4, 'H': -3.2, 'I': 4.5,
6
- 'L': 3.8, 'K': -3.9, 'M': 1.9, 'F': 2.8, 'P': -1.6,
7
- 'S': -0.8, 'T': -0.7, 'W': -0.9, 'Y': -1.3, 'V': 4.2
8
- }
9
- if not seq:
10
- return 0.0
11
- return sum(hp_map.get(aa, 0) for aa in seq) / len(seq)