add automated toppar generation for unknown small molecules#1476
Merged
rvhonorato merged 53 commits intomainfrom Feb 27, 2026
Merged
add automated toppar generation for unknown small molecules#1476rvhonorato merged 53 commits intomainfrom
rvhonorato merged 53 commits intomainfrom
Conversation
Member
Author
|
Sorted it out (: |
auto-merge was automatically disabled
February 25, 2026 13:01
Pull request was converted to draft
in the example toml file
amjjbonvin
previously approved these changes
Feb 26, 2026
Member
amjjbonvin
left a comment
There was a problem hiding this comment.
Very nice! Works perfectly on my side
Would it be possible to also compile the prodrg exec for aarch64-linux?
Member
Author
|
added the binary for |
add `has_chrome` decorator
amjjbonvin
approved these changes
Feb 27, 2026
Member
amjjbonvin
left a comment
There was a problem hiding this comment.
A very nice addition!
Works fine on my side - will should do some benchmarking on a protein-ligand dataset to check the performance (the shape docking set is a good one for this).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are about to submit a new Pull Request. Before continuing make sure you read the contributing guidelines.
Checklist
CHANGELOG.mdis updated to incorporate new changesSummary of the Pull Request
This PR adds a new
libligandwith the purpose of handling small molecules, in this case specifically the creation.topand.paramfiles using PRODRG.Currently when the user does not input
ligand_param/top_fnameand the input contains any unknown hetatms, there are just deleted during sanitization. I am not sure if this is the desired behaviour or not, but assuming it is - I added a new boolean parameter calledautotopparto ensure this pathway of removing unknown atoms can be preserved.So to trigger the automated generation, the user needs to set
autotoppar=trueand if this parameter is defined together withligand_param/top_fname,ligand_param/top_fnametakes priority.The automated topology/param generation of small molecules is done via
prodrg- shipped as a binary with the code after this PR. I also added two sanitization methods to removeNBONdsfrom the parameters generated by prodrg as they can interfer with haddock ones, and also found that prodrg will sometimes add a:to the topology which breaks CNS syntax - so there is another method to clean it.And needles to say this only applies to things that are not known by haddock, which is defined in
haddock.core.supported_molecules.When we automate the toppar generation, what means is that we are effectively setting the
ligand_param/top_fnamefor the user. This is easily done in the module that generates it, but this value needs to be propagated so that modules downstream on the workflow can also access it. To deal with this behaviour I added a new logic inlibworkflowto handle this propagation.Related Issue
#1475
Additional Info
We currently only have prodrg binaries for
x86_64-linuxandarm64-darwin- when we have others they should also be added here, but we need to handle this elsewhere, please look here: https://github.com/haddocking/prodrgrun_prodrgwill fail graciously ifautotoppar=truein an unsupported architecture.