Spaces:
Running
Running
Commit
·
d6bb324
1
Parent(s):
8c0e45e
Update code/pdb_featureVector.py
Browse files- code/pdb_featureVector.py +10 -3
code/pdb_featureVector.py
CHANGED
@@ -1329,16 +1329,17 @@ def pdb(input_set, mode, impute):
|
|
1329 |
existing_free_sasa = [str(i) for i in existing_free_sasa]
|
1330 |
existing_free_sasa = [i.split('/')[-1].split('.')[0] for i in existing_free_sasa]
|
1331 |
print('Calculation RSA for PDB Structure Files...\n')
|
1332 |
-
|
1333 |
pdb_only = data[data.source == 'PDB']
|
1334 |
for pdbID in pdb_only.pdbID.to_list():
|
|
|
1335 |
if pdbID not in existing_free_sasa:
|
1336 |
-
st.write('
|
1337 |
(run_freesasa(Path(path_to_output_files / 'pdb_structures' / f'{pdbID.lower()}.pdb'),
|
1338 |
Path(path_to_output_files / 'freesasa_files' / f'{pdbID.lower()}.txt'),
|
1339 |
include_hetatms=True,
|
1340 |
outdir=None, force_rerun=False, file_type='pdb'))
|
1341 |
-
|
1342 |
print('Calculation RSA for SwissModel Files...\n')
|
1343 |
swiss_only = data[data.source == 'SWISSMODEL']
|
1344 |
swiss_dp = []
|
@@ -1350,6 +1351,12 @@ def pdb(input_set, mode, impute):
|
|
1350 |
(run_freesasa(Path(path_to_output_files / 'swissmodel_structures' / f'{pdbID}.txt'),
|
1351 |
Path(path_to_output_files / 'freesasa_files' / f'{pdbID}.txt'), include_hetatms=True,
|
1352 |
outdir=None, force_rerun=False, file_type='pdb'))
|
|
|
|
|
|
|
|
|
|
|
|
|
1353 |
|
1354 |
print('Calculation RSA for Modbase Model Files...\n')
|
1355 |
modbase_only = data[data.source == 'MODBASE']
|
|
|
1329 |
existing_free_sasa = [str(i) for i in existing_free_sasa]
|
1330 |
existing_free_sasa = [i.split('/')[-1].split('.')[0] for i in existing_free_sasa]
|
1331 |
print('Calculation RSA for PDB Structure Files...\n')
|
1332 |
+
st.write('here1')
|
1333 |
pdb_only = data[data.source == 'PDB']
|
1334 |
for pdbID in pdb_only.pdbID.to_list():
|
1335 |
+
st.write('here2')
|
1336 |
if pdbID not in existing_free_sasa:
|
1337 |
+
st.write('here3')
|
1338 |
(run_freesasa(Path(path_to_output_files / 'pdb_structures' / f'{pdbID.lower()}.pdb'),
|
1339 |
Path(path_to_output_files / 'freesasa_files' / f'{pdbID.lower()}.txt'),
|
1340 |
include_hetatms=True,
|
1341 |
outdir=None, force_rerun=False, file_type='pdb'))
|
1342 |
+
st.write('here4')
|
1343 |
print('Calculation RSA for SwissModel Files...\n')
|
1344 |
swiss_only = data[data.source == 'SWISSMODEL']
|
1345 |
swiss_dp = []
|
|
|
1351 |
(run_freesasa(Path(path_to_output_files / 'swissmodel_structures' / f'{pdbID}.txt'),
|
1352 |
Path(path_to_output_files / 'freesasa_files' / f'{pdbID}.txt'), include_hetatms=True,
|
1353 |
outdir=None, force_rerun=False, file_type='pdb'))
|
1354 |
+
st.write('HERErERE')
|
1355 |
+
out = (run_freesasa(Path(path_to_output_files / 'swissmodel_structures' / f'{pdbID}.txt'),
|
1356 |
+
Path(path_to_output_files / 'freesasa_files' / f'{pdbID}.txt'), include_hetatms=True,
|
1357 |
+
outdir=None, force_rerun=False, file_type='pdb'))
|
1358 |
+
st.write('şsfgjş')
|
1359 |
+
st.write(out)
|
1360 |
|
1361 |
print('Calculation RSA for Modbase Model Files...\n')
|
1362 |
modbase_only = data[data.source == 'MODBASE']
|