Spaces:
Sleeping
Sleeping
Commit
·
35bdb15
1
Parent(s):
4256fa9
Update code/pdb_featureVector.py
Browse files
code/pdb_featureVector.py
CHANGED
|
@@ -281,7 +281,7 @@ def pdb(input_set, mode, impute):
|
|
| 281 |
pdb_info.at[index, 'resolution'] = 'nan'
|
| 282 |
index += 1
|
| 283 |
cnt += 1
|
| 284 |
-
|
| 285 |
print('PDB file processing finished..')
|
| 286 |
for filename in list(Path(path_to_output_files / 'pdb_structures').glob("*")):
|
| 287 |
try:
|
|
@@ -313,7 +313,7 @@ def pdb(input_set, mode, impute):
|
|
| 313 |
uniprot_matched.resolution == 'None'))]
|
| 314 |
no_pdb = no_pdb[~no_pdb.datapoint.isin(with_pdb.datapoint.to_list())]
|
| 315 |
no_pdb.drop(columns=['chain', 'pdbID', 'pdbSequence', 'resolution'], inplace=True)
|
| 316 |
-
|
| 317 |
print(
|
| 318 |
'PDB Information successfully added...\nPDB structures are found for %d of %d.\n%d of %d failed to match with PDB structure.\n'
|
| 319 |
% (len(with_pdb.drop_duplicates(['datapoint'])), len(uniprot_matched.drop_duplicates(['datapoint'])),
|
|
|
|
| 281 |
pdb_info.at[index, 'resolution'] = 'nan'
|
| 282 |
index += 1
|
| 283 |
cnt += 1
|
| 284 |
+
st.write(pdb_info)
|
| 285 |
print('PDB file processing finished..')
|
| 286 |
for filename in list(Path(path_to_output_files / 'pdb_structures').glob("*")):
|
| 287 |
try:
|
|
|
|
| 313 |
uniprot_matched.resolution == 'None'))]
|
| 314 |
no_pdb = no_pdb[~no_pdb.datapoint.isin(with_pdb.datapoint.to_list())]
|
| 315 |
no_pdb.drop(columns=['chain', 'pdbID', 'pdbSequence', 'resolution'], inplace=True)
|
| 316 |
+
st.write(with_pdb)
|
| 317 |
print(
|
| 318 |
'PDB Information successfully added...\nPDB structures are found for %d of %d.\n%d of %d failed to match with PDB structure.\n'
|
| 319 |
% (len(with_pdb.drop_duplicates(['datapoint'])), len(uniprot_matched.drop_duplicates(['datapoint'])),
|