From 51ea557c67315d6ccab4a45d2aaf3b25894b6165 Mon Sep 17 00:00:00 2001 From: David B Sauer <40378905+DavidBSauer@users.noreply.github.com> Date: Fri, 3 May 2019 20:20:31 -0400 Subject: [PATCH] revert changes as these were used for regressions --- feature_calculation/protein.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/feature_calculation/protein.py b/feature_calculation/protein.py index b9d5363..f31965e 100755 --- a/feature_calculation/protein.py +++ b/feature_calculation/protein.py @@ -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 @@ -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):