zetayue / MXMNet

Source code for "Molecular Mechanics-Driven Graph Neural Network with Multiplex Graph for Molecular Structures"
MIT License
69 stars 16 forks source link

Example to add ESOL dataset #2

Closed thegodone closed 3 years ago

thegodone commented 3 years ago

You give an interesting code and example, but I don't see how to use it with esol dataset.

I have seen that you combine pos and atom label in your data.x. but how do you build your edge_index ?

is it a local bonded index like in classical graphs or for full molecule indexes ?

Also does the Hs are needed for other target than QM9 ?

zetayue commented 3 years ago

I have seen that you combine pos and atom label in your data.x. but how do you build your edge_index ? is it a local bonded index like in classical graphs or for full molecule indexes ?

We represent each molecular graph as a multiplex graph including (1) the global layer that captures global interactions and (2) the local layer that captures local interactions. Thus our model needs two edge_index information, edge_index_g and edge_index_l:

Also does the Hs are needed for other target than QM9 ?

We think this depends on the task being investigated as well as the computational resources. Besides, if the 3D molecular structures are not precise enough, including Hs might not be a good idea.