Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data structure for molecules #13

Open
miaecle opened this issue Mar 18, 2020 · 3 comments
Open

Data structure for molecules #13

miaecle opened this issue Mar 18, 2020 · 3 comments

Comments

@miaecle
Copy link
Contributor

miaecle commented Mar 18, 2020

I noticed some existing code bases from previous work. Since we are heading towards using torch_geometric, which itself has pretty complete data structures for graphs, should we just directly use those? Otherwise I suppose we need to write codes to port our structures to torch_geometric compatible ones.

Also naming is a bit not intuitive:
neural_fp.py is mostly on mol-graph data structures. I didn't see a ECFP (or other fingerprint) function.
transformer.py defines many torch nn modules, many of which can be found in torch_geometric I believe.

I suggest organizing things the same way as deepchem? Such as dividing into subfolders for data manipulation, fingerprint, nn models, etc.

@rbharath
Copy link
Member

@miaecle This seems like a good idea! Would you have any pytorch-geometric example code that does this?

Sorry, copied in code from a couple of sources as starters so it's all jumbled in. I have an open PR that cleans it up a bit into the deepchem structure. I'll go ahead and merge that in so the repo looks a little cleaner.

The neural_fp.py and transformer.py code are from https://github.com/gmum/MAT originally, so they haven't been reworked yet.

@miaecle
Copy link
Contributor Author

miaecle commented Mar 19, 2020

@rbharath Sounds good, I can work on some basic data function to port things into torch_geometric.

@rbharath
Copy link
Member

@miaecle Great! That would be a very valuable contribution :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants