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

atom_descriptors #121

Closed
Xu22 opened this issue Jan 6, 2021 · 2 comments · Fixed by #122
Closed

atom_descriptors #121

Xu22 opened this issue Jan 6, 2021 · 2 comments · Fixed by #122

Comments

@Xu22
Copy link

Xu22 commented Jan 6, 2021

How can I add atom_descriptors to your model?

@hesther
Copy link
Contributor

hesther commented Jan 6, 2021

You can load atom descriptors from a sdf, npz or pkl file via the command line option --atom_descriptors_path <path_to_file> and use the descriptors either via --atom_descriptors feature (as extra atom features during the molecule featurization, that is, they are added to the regular atom features before the MPNN) or via --atom_descriptors descriptor (atomic descriptors are concatenated to the atomic feature vector after MPNN before aggregating the atoms to a molecule).

The data file should look like:

  • .npz descriptors are saved as 2D array for each molecule in the order of that in the data.csv
  • .pkl / .pckl / .pickle containing a pandas dataframe with smiles as index and numpy array of descriptors as columns
  • .sdf containing all mol blocks with descriptors as entries

Hope this helps!

@Xu22
Copy link
Author

Xu22 commented Jan 7, 2021

Thanks a lot!

@hesther hesther closed this as completed Jan 7, 2021
@hesther hesther linked a pull request Jan 8, 2021 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants