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

WIP: Syntree visualisation with graphviz #19

Closed

Conversation

chrulm
Copy link
Collaborator

@chrulm chrulm commented Dec 19, 2022

Visualize syntree with graphviz instead of mermaid.js.

Works by plotting all chemicals as pngs and then uses graphviz to create a single image of the entire syntree.

Reason for change:

To do:

  • update readme
  • write (some) tests
  • figure out how to plot in higher resolution, ideally svg
  • add target node to plot (if present/available as smiles)
  • add wrapper or script to plot multiple syntrees with sane defaults
  • add direct display in jupyter notebooks

Inspiration from: https://github.com/MolecularAI/aizynthfinder/blob/9e44989213c11f1bb647a00b8756e0c76a8f4b52/aizynthfinder/utils/image.py

- moves hparam config into respective file to `get_args()`
- hence deletes yaml files
- disable `TQDMProgressBar` on HPC
- allows class weights for `act`
- save checkpoints/logs/etc to new dir set by `init_save_dir()`
  - also bumps rdkit to 2022.03 for compatibility with datamol
add: test iclr models can be loaded from ckpts
@chrulm chrulm closed this Dec 19, 2022
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 this pull request may close these issues.

None yet

1 participant