Spaces:
Sleeping
Sleeping
Commit
·
5e445fa
1
Parent(s):
b12804e
Update code/pdb_featureVector.py
Browse files
code/pdb_featureVector.py
CHANGED
|
@@ -256,7 +256,13 @@ def pdb(input_set, mode, impute):
|
|
| 256 |
modbase = isZeroDistance(modbase)
|
| 257 |
modbase = match3DModels(modbase)
|
| 258 |
modbase = selectMaxAnnot(modbase)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 259 |
modbase = modbase.sort_values(by=['datapoint', 'quality_score', 'distance','hitTotal', 'annotTotal'], ascending=[True, True, True, True, True])
|
|
|
|
|
|
|
| 260 |
modbase = modbase.drop_duplicates(['datapoint'])
|
| 261 |
modbase.replace({'[]': np.NaN, 'hit': 0.0}, inplace=True)
|
| 262 |
st.write('modbase SIMP')
|
|
|
|
| 256 |
modbase = isZeroDistance(modbase)
|
| 257 |
modbase = match3DModels(modbase)
|
| 258 |
modbase = selectMaxAnnot(modbase)
|
| 259 |
+
modbase['quality_score'] = modbase['quality_score'].astype(float)
|
| 260 |
+
modbase['distance'] = modbase['distance'].astype(float)
|
| 261 |
+
modbase['hitTotal'] = modbase['hitTotal'].astype(float)
|
| 262 |
+
modbase['annotTotal'] = modbase['annotTotal'].astype(float)
|
| 263 |
modbase = modbase.sort_values(by=['datapoint', 'quality_score', 'distance','hitTotal', 'annotTotal'], ascending=[True, True, True, True, True])
|
| 264 |
+
st.write('SORTED')
|
| 265 |
+
st.write(modbase)
|
| 266 |
modbase = modbase.drop_duplicates(['datapoint'])
|
| 267 |
modbase.replace({'[]': np.NaN, 'hit': 0.0}, inplace=True)
|
| 268 |
st.write('modbase SIMP')
|