fatmacankara commited on
Commit
86da608
·
1 Parent(s): bcf16e9

Update code/pdb_featureVector.py

Browse files
Files changed (1) hide show
  1. code/pdb_featureVector.py +2 -1
code/pdb_featureVector.py CHANGED
@@ -1635,8 +1635,8 @@ def pdb(input_set, mode, impute):
1635
  'glycosylation_dist', 'propeptide_dist']]
1636
  ready = data.copy()
1637
  # Imputation
1638
- st.write('IMPUT FV', impute)
1639
  if (impute == 'True') or (impute == 'true'):
 
1640
  filler = [17.84, 30.8, 24.96, 13.12, 23.62, 18.97, 20.87, 29.59, 20.7, 12.7, 22.85, 17.21, 9.8, 9, 15.99, 16.82,
1641
  20.46, 24.58, 9.99, 17.43, 20.08, 30.91, 20.86, 22.14, 21.91, 28.45, 17.81, 25.12, 20.33, 22.36]
1642
  col_index = 0
@@ -1648,6 +1648,7 @@ def pdb(input_set, mode, impute):
1648
  ready['sasa'] = ready['sasa'].fillna(29.5)
1649
  ready['location_3state'] = ready['location_3state'].fillna('unknown')
1650
  elif (impute == 'False') or (impute == 'false'):
 
1651
  pass
1652
  ready = ready.replace({'nan': np.NaN})
1653
  ready.to_csv(path_to_output_files / 'featurevector_pdb.txt', sep='\t', index=False)
 
1635
  'glycosylation_dist', 'propeptide_dist']]
1636
  ready = data.copy()
1637
  # Imputation
 
1638
  if (impute == 'True') or (impute == 'true'):
1639
+ st.write('HERE', impute)
1640
  filler = [17.84, 30.8, 24.96, 13.12, 23.62, 18.97, 20.87, 29.59, 20.7, 12.7, 22.85, 17.21, 9.8, 9, 15.99, 16.82,
1641
  20.46, 24.58, 9.99, 17.43, 20.08, 30.91, 20.86, 22.14, 21.91, 28.45, 17.81, 25.12, 20.33, 22.36]
1642
  col_index = 0
 
1648
  ready['sasa'] = ready['sasa'].fillna(29.5)
1649
  ready['location_3state'] = ready['location_3state'].fillna('unknown')
1650
  elif (impute == 'False') or (impute == 'false'):
1651
+ st.write('DEĞİL', impute)
1652
  pass
1653
  ready = ready.replace({'nan': np.NaN})
1654
  ready.to_csv(path_to_output_files / 'featurevector_pdb.txt', sep='\t', index=False)