Ym420 commited on
Commit
b0cda6a
·
verified ·
1 Parent(s): 90e4163

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -46,9 +46,9 @@ def extract_features_app(seq: str) -> pd.DataFrame:
46
  if len(seq) < 2:
47
  physchem_features = [0]*11
48
  else:
49
- hydro = np.mean([h(dp, hydrophobicity_scale) for dp in dipeptides_seq])
50
  mw = np.mean([h(dp, aa_mass) for dp in dipeptides_seq])
51
  charge = np.mean([h(dp, aa_charge) for dp in dipeptides_seq])
 
52
  aromatic = np.mean([(dp[0] in 'FWY') + (dp[1] in 'FWY') for dp in dipeptides_seq]) / 2.0
53
  pI = np.mean([h(dp, {aa: 7 + (int(aa in 'KRH') - int(aa in 'DE')) for aa in aa_list}) for dp in dipeptides_seq])
54
  instability = np.mean([((dp[0] in 'DEKR') + (dp[1] in 'DEKR')) / 2.0 for dp in dipeptides_seq])
 
46
  if len(seq) < 2:
47
  physchem_features = [0]*11
48
  else:
 
49
  mw = np.mean([h(dp, aa_mass) for dp in dipeptides_seq])
50
  charge = np.mean([h(dp, aa_charge) for dp in dipeptides_seq])
51
+ hydro = np.mean([h(dp, hydrophobicity_scale) for dp in dipeptides_seq])
52
  aromatic = np.mean([(dp[0] in 'FWY') + (dp[1] in 'FWY') for dp in dipeptides_seq]) / 2.0
53
  pI = np.mean([h(dp, {aa: 7 + (int(aa in 'KRH') - int(aa in 'DE')) for aa in aa_list}) for dp in dipeptides_seq])
54
  instability = np.mean([((dp[0] in 'DEKR') + (dp[1] in 'DEKR')) / 2.0 for dp in dipeptides_seq])