Ym420 commited on
Commit
b37bdd4
·
verified ·
1 Parent(s): 3aa031b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -46,7 +46,7 @@ def extract_features_app(seq: str) -> pd.DataFrame:
46
  dipeptides_seq = [seq[i:i+2] for i in range(len(seq)-1)]
47
 
48
  if len(seq) < 2:
49
- physchem_features = [0]*11
50
  else:
51
  mw = np.mean([h(dp, aa_mass) for dp in dipeptides_seq])
52
  charge = np.mean([h(dp, aa_charge) for dp in dipeptides_seq])
 
46
  dipeptides_seq = [seq[i:i+2] for i in range(len(seq)-1)]
47
 
48
  if len(seq) < 2:
49
+ physchem_features = [0]*12
50
  else:
51
  mw = np.mean([h(dp, aa_mass) for dp in dipeptides_seq])
52
  charge = np.mean([h(dp, aa_charge) for dp in dipeptides_seq])