Spaces:
Sleeping
Sleeping
fatmacankara
commited on
Commit
·
152bc0f
1
Parent(s):
13ddb8b
Update code/pdb_featureVector.py
Browse files
code/pdb_featureVector.py
CHANGED
@@ -1635,8 +1635,7 @@ def pdb(input_set, mode, impute):
|
|
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
|
@@ -1650,8 +1649,6 @@ def pdb(input_set, mode, impute):
|
|
1650 |
elif (impute == 'False') or (impute == 'false'):
|
1651 |
st.write('DEĞİL', impute)
|
1652 |
pass
|
1653 |
-
else:
|
1654 |
-
st.write('aaa', impute)
|
1655 |
ready = ready.replace({'nan': np.NaN})
|
1656 |
ready.to_csv(path_to_output_files / 'featurevector_pdb.txt', sep='\t', index=False)
|
1657 |
if len(ready) == 0:
|
|
|
1635 |
'glycosylation_dist', 'propeptide_dist']]
|
1636 |
ready = data.copy()
|
1637 |
# Imputation
|
1638 |
+
if (impute == 'True') or (impute == 'true') or (impute == True):
|
|
|
1639 |
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,
|
1640 |
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]
|
1641 |
col_index = 0
|
|
|
1649 |
elif (impute == 'False') or (impute == 'false'):
|
1650 |
st.write('DEĞİL', impute)
|
1651 |
pass
|
|
|
|
|
1652 |
ready = ready.replace({'nan': np.NaN})
|
1653 |
ready.to_csv(path_to_output_files / 'featurevector_pdb.txt', sep='\t', index=False)
|
1654 |
if len(ready) == 0:
|