Skip to content

[WIP] Correct elements for hybrid topology transformations that undergo element changes#108

Open
hannahbaumann wants to merge 62 commits into
mainfrom
correct_elements_stateb
Open

[WIP] Correct elements for hybrid topology transformations that undergo element changes#108
hannahbaumann wants to merge 62 commits into
mainfrom
correct_elements_stateb

Conversation

@hannahbaumann
Copy link
Copy Markdown
Contributor

This functionality may also be better in openfe.

hannahbaumann and others added 30 commits February 20, 2026 11:08
Co-authored-by: Irfan Alibay <IAlibay@users.noreply.github.com>
Comment thread src/openfe_analysis/tests/utils/test_universe_utils.py
Comment on lines +91 to +95
def correct_elements(
atomgroup: mda.AtomGroup,
rdmol: Chem.Mol,
atom_mapping: dict[int, int] | None = None,
) -> None:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This looks great, it might be worthing checking you can round trip a ligand, so for a real Htop output fix stateB which uses different elements and connectivity, then compare the input SMC with the fixed atomgroup and check that the atoms and bonds match exactly.

Base automatically changed from spyrmsd to main May 28, 2026 08:27
@hannahbaumann
Copy link
Copy Markdown
Contributor Author

pre-commit.ci autofix

@codecov
Copy link
Copy Markdown

codecov Bot commented May 28, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.13%. Comparing base (c1bdddc) to head (0be05e0).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #108      +/-   ##
==========================================
+ Coverage   98.05%   98.13%   +0.08%     
==========================================
  Files           9        9              
  Lines         462      482      +20     
==========================================
+ Hits          453      473      +20     
  Misses          9        9              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

2 participants