You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes the SAbDab database might be missing some PDBs mentioned in the sabdab_summary.tsv. For example, 5mhr. While trying to download this PDB from the following link(as mentioned in the code)
it'll fail and the 5mhr.pdb will be populated with the HTTP error instead of the desired data. It'll look something like this:
Not Found
The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.
Handling of such files is not supported in the pipeline and it'll break the code while trying to create the antibody.h5 file. It can be fixed by adding a simple function to delete those files. The following function can be called just after truncating the pdbs:
def delete_invalid_pdbs(pdb_file):
try:
f = open(pdb_file, 'r').read()
except FileNotFoundError:
f = ''
if "The requested URL was not found on the server" in f:
os.remove(pdb_file)
print("Deleted invalid pdb file: {}".format(pdb_file))
The text was updated successfully, but these errors were encountered:
Sometimes the SAbDab database might be missing some PDBs mentioned in the
sabdab_summary.tsv
. For example,5mhr
. While trying to download this PDB from the following link(as mentioned in the code)http://opig.stats.ox.ac.uk/webapps/newsabdab/sabdab/pdb/5mhr/?scheme=chothia`,
it'll fail and the
5mhr.pdb
will be populated with the HTTP error instead of the desired data. It'll look something like this:Handling of such files is not supported in the pipeline and it'll break the code while trying to create the
antibody.h5
file. It can be fixed by adding a simple function to delete those files. The following function can be called just after truncating the pdbs:The text was updated successfully, but these errors were encountered: