Spaces:
Sleeping
Sleeping
Commit
·
4c37bba
1
Parent(s):
0fad894
Update code/pdb_featureVector.py
Browse files- code/pdb_featureVector.py +3 -18
code/pdb_featureVector.py
CHANGED
|
@@ -1332,22 +1332,15 @@ def pdb(input_set, mode, impute):
|
|
| 1332 |
st.write('first')
|
| 1333 |
st.write(existing_free_sasa)
|
| 1334 |
pdb_only = data[data.source == 'PDB']
|
| 1335 |
-
|
| 1336 |
-
st.write(pdb_only)
|
| 1337 |
-
st.write(swiss_only)
|
| 1338 |
-
st.write(modbase_only)
|
| 1339 |
|
| 1340 |
for pdbID in pdb_only.pdbID.to_list():
|
| 1341 |
-
st.write('here2')
|
| 1342 |
if pdbID not in existing_free_sasa:
|
| 1343 |
-
st.write('here3')
|
| 1344 |
(run_freesasa(Path(path_to_output_files / 'pdb_structures' / f'{pdbID.lower()}.pdb'),
|
| 1345 |
Path(path_to_output_files / 'freesasa_files' / f'{pdbID.lower()}.txt'),
|
| 1346 |
include_hetatms=True,
|
| 1347 |
outdir=None, force_rerun=False, file_type='pdb'))
|
| 1348 |
-
|
| 1349 |
-
st.write('In list')
|
| 1350 |
-
st.write('here4')
|
| 1351 |
print('Calculation RSA for SwissModel Files...\n')
|
| 1352 |
swiss_only = data[data.source == 'SWISSMODEL']
|
| 1353 |
swiss_dp = []
|
|
@@ -1359,11 +1352,7 @@ def pdb(input_set, mode, impute):
|
|
| 1359 |
(run_freesasa(Path(path_to_output_files / 'swissmodel_structures' / f'{pdbID}.txt'),
|
| 1360 |
Path(path_to_output_files / 'freesasa_files' / f'{pdbID}.txt'), include_hetatms=True,
|
| 1361 |
outdir=None, force_rerun=False, file_type='pdb'))
|
| 1362 |
-
st.write('HERErERE')
|
| 1363 |
-
st.write(Path(path_to_output_files / 'swissmodel_structures' / f'{pdbID}.txt'))
|
| 1364 |
-
st.write(Path(path_to_output_files / 'freesasa_files' / f'{pdbID}.txt'))
|
| 1365 |
|
| 1366 |
-
st.write('şsfgjş')
|
| 1367 |
|
| 1368 |
print('Calculation RSA for Modbase Model Files...\n')
|
| 1369 |
modbase_only = data[data.source == 'MODBASE']
|
|
@@ -1375,11 +1364,7 @@ def pdb(input_set, mode, impute):
|
|
| 1375 |
outdir=None, force_rerun=False, file_type='pdb'))
|
| 1376 |
|
| 1377 |
# This annotation list is different than the prev one, keep it.
|
| 1378 |
-
|
| 1379 |
-
existing_free_sasa = [str(i) for i in existing_free_sasa]
|
| 1380 |
-
existing_free_sasa = [i.split('/')[-1].split('.')[0] for i in existing_free_sasa]
|
| 1381 |
-
st.write('second time')
|
| 1382 |
-
st.write(existing_free_sasa)
|
| 1383 |
annotation_list += ['domainStartonPDB', 'domainEndonPDB']
|
| 1384 |
|
| 1385 |
folder_path = path_to_output_files / 'freesasa_files'
|
|
|
|
| 1332 |
st.write('first')
|
| 1333 |
st.write(existing_free_sasa)
|
| 1334 |
pdb_only = data[data.source == 'PDB']
|
| 1335 |
+
|
|
|
|
|
|
|
|
|
|
| 1336 |
|
| 1337 |
for pdbID in pdb_only.pdbID.to_list():
|
|
|
|
| 1338 |
if pdbID not in existing_free_sasa:
|
|
|
|
| 1339 |
(run_freesasa(Path(path_to_output_files / 'pdb_structures' / f'{pdbID.lower()}.pdb'),
|
| 1340 |
Path(path_to_output_files / 'freesasa_files' / f'{pdbID.lower()}.txt'),
|
| 1341 |
include_hetatms=True,
|
| 1342 |
outdir=None, force_rerun=False, file_type='pdb'))
|
| 1343 |
+
|
|
|
|
|
|
|
| 1344 |
print('Calculation RSA for SwissModel Files...\n')
|
| 1345 |
swiss_only = data[data.source == 'SWISSMODEL']
|
| 1346 |
swiss_dp = []
|
|
|
|
| 1352 |
(run_freesasa(Path(path_to_output_files / 'swissmodel_structures' / f'{pdbID}.txt'),
|
| 1353 |
Path(path_to_output_files / 'freesasa_files' / f'{pdbID}.txt'), include_hetatms=True,
|
| 1354 |
outdir=None, force_rerun=False, file_type='pdb'))
|
|
|
|
|
|
|
|
|
|
| 1355 |
|
|
|
|
| 1356 |
|
| 1357 |
print('Calculation RSA for Modbase Model Files...\n')
|
| 1358 |
modbase_only = data[data.source == 'MODBASE']
|
|
|
|
| 1364 |
outdir=None, force_rerun=False, file_type='pdb'))
|
| 1365 |
|
| 1366 |
# This annotation list is different than the prev one, keep it.
|
| 1367 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1368 |
annotation_list += ['domainStartonPDB', 'domainEndonPDB']
|
| 1369 |
|
| 1370 |
folder_path = path_to_output_files / 'freesasa_files'
|