Skip to content

adding support for HETATM in caprieval #1279

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

VGPReys
Copy link
Contributor

@VGPReys VGPReys commented May 28, 2025

Checklist

  • Tests added for the new code
  • Documentation added for the code changes
  • Modifications / enhancements are reflected on the haddock3 user-manual
  • CHANGELOG.md is updated to incorporate new changes
  • Does not break licensing
  • Does not add any dependencies, if it does please add a thorough explanation

Summary of the Pull Request

Adding support to use HETATM from reference file in caprieval module.
This is performed by using an additional parameter: keep_hetatm (default false) in the module allowing to keep HETATM from the input reference file.

Related Issue

Closes #1271

@VGPReys VGPReys requested a review from a team May 29, 2025 07:44
@VGPReys VGPReys self-assigned this May 29, 2025
@@ -445,6 +445,7 @@ def load_coords(
numbering_dic=None,
model2ref_chain_dict=None,
add_resname=None,
extract_hetatm: bool = False,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a bit a confusing naming. Does it mean extracting from the PDB and thus not using it?

keep_hetatm could be a clearer parameter...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This of course affects all other changes

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And do we want the default to be false?

try:
mod_coord_dic, _ = load_coords(
self.model,
self.atoms,
numbering_dic=self.model2ref_numbering,
model2ref_chain_dict=self.model2ref_chain_dict,
extract_hetatm=self.keep_hetatm,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here you thus use keep_hetatm, which seems the more logical naming.

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.

Allow references containing HETATM in caprieval
2 participants