a-r-j / graphein

Protein Graph Library
https://graphein.ai/
MIT License
1.03k stars 131 forks source link

AlphaFold download function fails if nonexistent Uniprot ID entry / 404 error #225

Closed kamurani closed 1 year ago

kamurani commented 1 year ago

When loading in data automatically (e.g. using graphein.ml.ProteinGraphDataset), if a particular uniprot ID is given that doesn't have an AlphaFold entry (e.g. "A9UF07", "P78527"), an exception is thrown by wget. This should be captured and used to return None or similar as the filepath; and the DataSet should exclude this from the data that will be then loaded as the downstream graphs will not be able to be created.