graphein icon indicating copy to clipboard operation
graphein copied to clipboard

Error in tdc_developability.ipynb notebook

Open velocirraptor23 opened this issue 1 year ago • 1 comments

I was trying to follow this notebook but in the part for training (Creating Datasets) I got this error:

File /cluster/ddu/cmmartinez001/graphein/notebooks/../graphein/ml/conversion.py:274, in GraphFormatConvertor.convert_nx_to_pyg(self, G) 264 """ 265 Converts NetworkX graph to pytorch_geometric.data.Data object. Requires PyTorch Geometric (https://pytorch-geometric.readthedocs.io/en/latest/) to be installed. 266 (...) 270 :rtype: pytorch_geometric.data.Data 271 """ 273 # Initialise dict used to construct Data object & Assign node ids as a feature --> 274 data = {"node_id": list(G.nodes())} 275 G = nx.convert_node_labels_to_integers(G) 277 # Construct Edge Index

AttributeError: 'NoneType' object has no attribute 'nodes'

I think I instaled everything but I am not sure why i got this.

BW,

Cesar

velocirraptor23 avatar Jun 17 '24 16:06 velocirraptor23

Could you narrow down which PDB id is failing? I suspect this is related to #409 through deprecation of a PDB accession.

a-r-j avatar Sep 16 '24 12:09 a-r-j