Skip to content

#7141 fix: blank Calculate Properties when multiple small molecules on canv…#9488

Open
Nizomkhujaev wants to merge 2 commits intomasterfrom
7141-system-shows-molecular-mass-and-molecular-formula-even-if-few-chains-on-the-canvas
Open

#7141 fix: blank Calculate Properties when multiple small molecules on canv…#9488
Nizomkhujaev wants to merge 2 commits intomasterfrom
7141-system-shows-molecular-mass-and-molecular-formula-even-if-few-chains-on-the-canvas

Conversation

@Nizomkhujaev
Copy link
Collaborator

…as with no selection

How the feature works? / How did you fix the issue?

(Screenshots, videos, or GIFs, if applicable)

Fix incorrect molecular properties for multiple standalone micromolecules

When two or more standalone small molecules were loaded from KET and Calculate Properties was opened without any selection, the system incorrectly displayed the molecular formula and mass for only one structure.

Root cause

ChainsCollection.fromMonomers() filters out micromolecule fragments. As a result, the chain count defaulted to 0, preventing the multi-chain guard from being triggered.

Fix

Added a connectivity check across all monomers, including micromolecule fragments, to properly detect multiple chains when no selection is made.

Check list

  • unit-tests written
  • e2e-tests written
  • documentation updated
  • PR name follows the pattern #1234 – issue name
  • branch name doesn't contain '#'
  • PR is linked with the issue
  • base branch (master or release/xx) is correct
  • task status changed to "Code review"
  • reviewers are notified about the pull request

@Nizomkhujaev Nizomkhujaev changed the title fix: blank Calculate Properties when multiple small molecules on canv… 7141 fix: blank Calculate Properties when multiple small molecules on canv… Mar 19, 2026
@Nizomkhujaev Nizomkhujaev changed the title 7141 fix: blank Calculate Properties when multiple small molecules on canv… #7141 fix: blank Calculate Properties when multiple small molecules on canv… Mar 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

System shows molecular mass and molecular formula even if few chains on the canvas

1 participant