Spaces:
Sleeping
Sleeping
Commit
·
92ce04b
1
Parent(s):
d6d6c3a
Update code/pdb_featureVector.py
Browse files
code/pdb_featureVector.py
CHANGED
|
@@ -1306,12 +1306,13 @@ def pdb(input_set, mode, impute):
|
|
| 1306 |
existing_free_sasa = list(Path(path_to_output_files / 'freesasa_files').glob("*"))
|
| 1307 |
existing_free_sasa = [str(i) for i in existing_free_sasa]
|
| 1308 |
existing_free_sasa = [i.split('/')[-1].split('.')[0] for i in existing_free_sasa]
|
| 1309 |
-
|
| 1310 |
print('Calculation RSA for PDB Structure Files...\n')
|
| 1311 |
|
| 1312 |
pdb_only = data[data.source == 'PDB']
|
| 1313 |
for pdbID in pdb_only.pdbID.to_list():
|
| 1314 |
if pdbID not in existing_free_sasa:
|
|
|
|
| 1315 |
(run_freesasa(Path(path_to_output_files / 'pdb_structures' / f'{pdbID.lower()}.pdb'),
|
| 1316 |
Path(path_to_output_files / 'freesasa_files' / f'{pdbID.lower()}.txt'), include_hetatms=True,
|
| 1317 |
outdir=None, force_rerun=False, file_type='pdb'))
|
|
|
|
| 1306 |
existing_free_sasa = list(Path(path_to_output_files / 'freesasa_files').glob("*"))
|
| 1307 |
existing_free_sasa = [str(i) for i in existing_free_sasa]
|
| 1308 |
existing_free_sasa = [i.split('/')[-1].split('.')[0] for i in existing_free_sasa]
|
| 1309 |
+
st.write('existing_free_sasa', existing_free_sasa)
|
| 1310 |
print('Calculation RSA for PDB Structure Files...\n')
|
| 1311 |
|
| 1312 |
pdb_only = data[data.source == 'PDB']
|
| 1313 |
for pdbID in pdb_only.pdbID.to_list():
|
| 1314 |
if pdbID not in existing_free_sasa:
|
| 1315 |
+
st.write('I am here')
|
| 1316 |
(run_freesasa(Path(path_to_output_files / 'pdb_structures' / f'{pdbID.lower()}.pdb'),
|
| 1317 |
Path(path_to_output_files / 'freesasa_files' / f'{pdbID.lower()}.txt'), include_hetatms=True,
|
| 1318 |
outdir=None, force_rerun=False, file_type='pdb'))
|