-
Notifications
You must be signed in to change notification settings - Fork 18
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
Script to plan RBFE alchemical networks #31
Conversation
Hello @hannahbaumann! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:
Comment last updated at 2024-06-11 08:59:25 UTC |
get_settings_charge_changes() | ||
|
||
|
||
# Test that the number of transformation files for solvent and complex are equal |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needed tests:
- Serialize LigandNetwork; check it's there and that the network has the files we need it to have
- Check the score annotations for at least one edge
- Check the smcs have partial charges for at least one edge
- Check the type of files being created (so is there a json and how many)
- Check the settings in the JSON files (i.e. we should know that there are N json files with charge changes and N without)
… raise warning for charge changing transformations
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just reminding myself that I still have to look at the residue name stuff!
ligand_network = openfe.ligand_network_planning.generate_lomap_network( | ||
molecules=smcs, mappers=mapper, scorer=scorer) | ||
# Raise an error if the network is not connected | ||
if ligand_network.is_connected() is False: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is purely a "comment on python programming style" not something you need to take any action on.
Just wanted to say that folks generally expect "if not X" rather than "if X is False".
""" | ||
offmol = smc.to_openff() | ||
with toolkit_registry_manager(amber_rdkit): | ||
offmol.assign_partial_charges(partial_charge_method="am1bcc") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here we should be enforcing the input conformer when assigning partial charges
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed this!
openfe.LigandNetwork | ||
The Lomap generated LigandNetwork. | ||
""" | ||
mapper = kartograf.KartografAtomMapper(atom_map_hydrogens=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
from today's call - should we pin the defaults?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added this!
Co-authored-by: Irfan Alibay <IAlibay@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks Good to me!
I think for the future, we should make more use of the alchemical network planners, or develop them further, sucht they are more useful. But this is not an issue for this time. Still would like to get feedback on those. @IAlibay @hannahbaumann
Yeah - this is definitely at the top of my mind as we plan out our next pieces of work. |
Input submission checklist
input_structures/prepared_structures/<set_name>/<system_name>
For each submitted directory:
PREPARATION_DETAILS.md
fileprotein.pdb
cofactors.sdf
ligands.sdf
edges.csv
Summary of changes
Licensing agreement