Spaces:
Sleeping
Sleeping
Commit
·
304a79b
1
Parent(s):
d6bb324
Update code/pdb_featureVector.py
Browse files- code/pdb_featureVector.py +12 -6
code/pdb_featureVector.py
CHANGED
@@ -1329,7 +1329,8 @@ 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 |
-
st.write('
|
|
|
1333 |
pdb_only = data[data.source == 'PDB']
|
1334 |
for pdbID in pdb_only.pdbID.to_list():
|
1335 |
st.write('here2')
|
@@ -1339,6 +1340,8 @@ def pdb(input_set, mode, impute):
|
|
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']
|
@@ -1352,11 +1355,10 @@ def pdb(input_set, mode, impute):
|
|
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 |
-
|
1356 |
-
|
1357 |
-
|
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']
|
@@ -1368,7 +1370,11 @@ def pdb(input_set, mode, impute):
|
|
1368 |
outdir=None, force_rerun=False, file_type='pdb'))
|
1369 |
|
1370 |
# This annotation list is different than the prev one, keep it.
|
1371 |
-
|
|
|
|
|
|
|
|
|
1372 |
annotation_list += ['domainStartonPDB', 'domainEndonPDB']
|
1373 |
|
1374 |
folder_path = path_to_output_files / 'freesasa_files'
|
|
|
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('first')
|
1333 |
+
st.write(existing_free_sasa)
|
1334 |
pdb_only = data[data.source == 'PDB']
|
1335 |
for pdbID in pdb_only.pdbID.to_list():
|
1336 |
st.write('here2')
|
|
|
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 |
+
else:
|
1344 |
+
st.write('In list')
|
1345 |
st.write('here4')
|
1346 |
print('Calculation RSA for SwissModel Files...\n')
|
1347 |
swiss_only = data[data.source == 'SWISSMODEL']
|
|
|
1355 |
Path(path_to_output_files / 'freesasa_files' / f'{pdbID}.txt'), include_hetatms=True,
|
1356 |
outdir=None, force_rerun=False, file_type='pdb'))
|
1357 |
st.write('HERErERE')
|
1358 |
+
st.write(Path(path_to_output_files / 'swissmodel_structures' / f'{pdbID}.txt'))
|
1359 |
+
st.write(Path(path_to_output_files / 'freesasa_files' / f'{pdbID}.txt'))
|
1360 |
+
|
1361 |
st.write('şsfgjş')
|
|
|
1362 |
|
1363 |
print('Calculation RSA for Modbase Model Files...\n')
|
1364 |
modbase_only = data[data.source == 'MODBASE']
|
|
|
1370 |
outdir=None, force_rerun=False, file_type='pdb'))
|
1371 |
|
1372 |
# This annotation list is different than the prev one, keep it.
|
1373 |
+
existing_free_sasa = list(Path(path_to_output_files / 'freesasa_files').glob("*"))
|
1374 |
+
existing_free_sasa = [str(i) for i in existing_free_sasa]
|
1375 |
+
existing_free_sasa = [i.split('/')[-1].split('.')[0] for i in existing_free_sasa]
|
1376 |
+
st.write('second time')
|
1377 |
+
st.write(existing_free_sasa)
|
1378 |
annotation_list += ['domainStartonPDB', 'domainEndonPDB']
|
1379 |
|
1380 |
folder_path = path_to_output_files / 'freesasa_files'
|