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

Fix 202 #205

Merged
merged 2 commits into from
Jun 24, 2024
Merged

Fix 202 #205

merged 2 commits into from
Jun 24, 2024

Conversation

chryswoods
Copy link
Contributor

This pull request fixes issue #202.

  • I confirm that I have merged the latest version of devel into this branch before issuing this pull request (e.g. by running git pull origin devel): [y]
  • I confirm that I have added a changelog entry to the changelog (we will add a link to this PR as part of the review): [y]
  • I confirm that I have permission to release this code under the GPL3 license: [y]

Suggested reviewers:

@lohedges

Any additional context of information?

This should have fixed the bug - the code now ensures that the CGAtomIdx order will always match the AtomIdx order. I fixed the issues this caused in the protein merge code by making sure that added atoms were given their correct AtomIdx based on their added location in the molecule. Could you test this to see if this solves all the problems (and doesn't introduce other ones in BioSimSpace).

…AtomIdx order.

This works really well, except that it fails when merging submolecules, because the
CGAtomIdx order changes on commit. I need to fix this. I suspect it will be by converting
merged proteins into a single cutgroup?
…m is correct

for its position in the molecule (i.e. is one higher than the AtomIdx of the last
atom in the residue)
Copy link
Contributor

@lohedges lohedges left a comment

Choose a reason for hiding this comment

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

This is working perfectly and it doesn't appear to have any knock-on affects to other BioSimSpace functionality. (All tests pass and demos work)

@chryswoods chryswoods merged commit 26a79ee into devel Jun 24, 2024
5 checks passed
@chryswoods chryswoods deleted the fix_202 branch June 24, 2024 09:59
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.

[BUG] Inconsistent behaviour with reindexed molecules
2 participants