Spaces:
Sleeping
Sleeping
Commit
·
bb5a846
1
Parent(s):
fbeaeb1
Update code/pdb_featureVector.py
Browse files
code/pdb_featureVector.py
CHANGED
|
@@ -289,10 +289,10 @@ def pdb(input_set, mode, impute):
|
|
| 289 |
pdb_info.at[index, 'resolution'] = resolution
|
| 290 |
index += 1
|
| 291 |
|
| 292 |
-
|
| 293 |
-
|
| 294 |
-
|
| 295 |
-
|
| 296 |
print('PDB file processing finished..')
|
| 297 |
for filename in list(Path(path_to_output_files / 'pdb_structures').glob("*")):
|
| 298 |
try:
|
|
@@ -308,14 +308,15 @@ def pdb(input_set, mode, impute):
|
|
| 308 |
filename.rename(filename_replace_ext.with_suffix('.pdb'))
|
| 309 |
except:
|
| 310 |
FileNotFoundError
|
| 311 |
-
|
|
|
|
| 312 |
uniprot_matched = pd.merge(uniprot_matched, pdb_info, on='uniprotID', how='left')
|
| 313 |
uniprot_matched = uniprot_matched.astype(str)
|
| 314 |
uniprot_matched = uniprot_matched.drop_duplicates()
|
| 315 |
uniprot_matched = uniprot_matched.merge(pdb_fasta, on=['pdbID', 'chain'], how='left')
|
| 316 |
uniprot_matched = uniprot_matched.astype(str)
|
| 317 |
-
|
| 318 |
-
|
| 319 |
with_pdb = uniprot_matched[(uniprot_matched.pdbID != 'nan') & (
|
| 320 |
(uniprot_matched.resolution != 'nan') & (uniprot_matched.resolution != 'OT') & (
|
| 321 |
uniprot_matched.resolution != 'None'))].drop_duplicates()
|
|
|
|
| 289 |
pdb_info.at[index, 'resolution'] = resolution
|
| 290 |
index += 1
|
| 291 |
|
| 292 |
+
st.write('PDB INFO')
|
| 293 |
+
st.write(pdb_info)
|
| 294 |
+
st.write('PDB FASTA')
|
| 295 |
+
st.write(pdb_fasta)
|
| 296 |
print('PDB file processing finished..')
|
| 297 |
for filename in list(Path(path_to_output_files / 'pdb_structures').glob("*")):
|
| 298 |
try:
|
|
|
|
| 308 |
filename.rename(filename_replace_ext.with_suffix('.pdb'))
|
| 309 |
except:
|
| 310 |
FileNotFoundError
|
| 311 |
+
st.write('uniprot_matched before')
|
| 312 |
+
st.write(uniprot_matched)
|
| 313 |
uniprot_matched = pd.merge(uniprot_matched, pdb_info, on='uniprotID', how='left')
|
| 314 |
uniprot_matched = uniprot_matched.astype(str)
|
| 315 |
uniprot_matched = uniprot_matched.drop_duplicates()
|
| 316 |
uniprot_matched = uniprot_matched.merge(pdb_fasta, on=['pdbID', 'chain'], how='left')
|
| 317 |
uniprot_matched = uniprot_matched.astype(str)
|
| 318 |
+
st.write('uniprot_matched after')
|
| 319 |
+
st.write(uniprot_matched)
|
| 320 |
with_pdb = uniprot_matched[(uniprot_matched.pdbID != 'nan') & (
|
| 321 |
(uniprot_matched.resolution != 'nan') & (uniprot_matched.resolution != 'OT') & (
|
| 322 |
uniprot_matched.resolution != 'None'))].drop_duplicates()
|