Replies: 2 comments
-
Hi @l-Dr-MR-l, apologies for not catching this earlier! I saw you closed the discussion, did you manage to resolve your issue? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi @l-Dr-MR-l. I'm having the same problem. Did you manage to resolve the issue? I would like to hear from you or @a-r-j about this. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi I'm trying to create a dataloader from local PDB files using graphein.
I'm using
graphein.protein.config.ProteinGraphConfig
andconstruct_graph(config=self.graphein_config, path=file_path)
fromgraphein.protein.graphs
to generate a graph with node and edge features:'Graph named '6r49_protein_processed' with 2099 nodes and 2153 edges'
I then use
GraphFormatConvertor(src_format="nx", dst_format="pyg")
fromgraphein.ml.conversion
to transform this into a pyg Data object, but at this point it seems to lose all features leaving only coordinates:'Data(edge_index=[2, 4306], node_id=[2099], coords=[2099, 3], name='6r49_protein_processed', num_nodes=2099)'
Is there a correct way to get what I'm trying to achieve?
Are there any examples I might have missed?
Edit:
I've gotten a little bit further using
Which now gives a lets me construct a DataLoader with
dataloader = DataLoader(graph_list, batch_size=1, shuffle=True, drop_last=False)
But the output seems off:
It doesn't look like edge and node attributes are properly defined, instead all thrown into the
_store
.I'm just feeling my way through the dark here, again: any example code would be great in speeding me through. (or if I'm going completely in the wrong direction, it would help to know)
Beta Was this translation helpful? Give feedback.
All reactions