Skip to content

Commit

Permalink
revert changes as these were used for regressions
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidBSauer authored May 4, 2019
1 parent 9927c94 commit 51ea557
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions feature_calculation/protein.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,12 @@ def percent_thermolabile(AA_counts):
def EKQH(AA_counts):
#calculate the ratio of EK/QH in the proteome
EK = 0.0
QH=0.0
QT=0.0
for x in ['E','K']:
EK=EK+AA_counts[x]
for x in ['Q','H']:
QH=QH+AA_counts[x]
return EK/QH
for x in ['Q','T']:
QT=QT+AA_counts[x]
return EK/QT

def EFMR(AA_counts):
#calculate the fraction of EFMR in the proteome
Expand Down Expand Up @@ -124,6 +124,8 @@ def percent_ERK(AA_counts):
counts= sum(AA_counts.values())
for x in ['E','R','K']:
ERK=ERK+AA_counts[x]
for x in AAs:
counts=counts+AA_counts[x]
return ERK/counts

def LKQ(AA_counts):
Expand Down

0 comments on commit 51ea557

Please sign in to comment.