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

Replace monomer from library at view mode goes wrong for all types of monomer converded to @ symbol #5236

Open
AlexeyGirin opened this issue Aug 7, 2024 · 0 comments · May be fixed by #5478
Assignees
Labels

Comments

@AlexeyGirin
Copy link
Collaborator

AlexeyGirin commented Aug 7, 2024

NOTE: Common problem with all types of monomers wrapped into @ symbol on sequence mode

Steps to Reproduce

  1. Go to Macromolecules mode - Flex mode
  2. Load from file: Replace monomer from library at view mode goes wrong.zip
    image
  3. Go to Sequence mode
  4. Select last to symbols and click on C monomer from Peptide tab at Library
    image
  5. Press Yes in appeared "Confirm Your Action" dialog

Actual behavior
System made a cycled chain (What? Yes!)
image

Expected behavior
A peptide and all CHEMs replaced with C peptide
image
As per requirement:

.....4.2. If any of the selected symbols is @ (and it represents more that one monomer), modal window with a warning message should appear. Warning message: "Symbol @ can represent multiple monomers, all of them are going to be replaced. Do you want to proceed?".
..........4.2.1. "Yes" option -> all selected monomer(s) on canvas are replaced.
(Images for better understanding)
image
Go to sequence mode, select A and @:
image
Click on C in the library, "Yes" in the modal window:
image

Versions

  • Ketcher Version 2.24.0-rc.1 Build at 2024-08-06; 19:17:47
  • Indigo Toolkit Version 1.23.0-rc.1.0-g85f89b8f5-wasm32-wasm-clang-19.0.0
  • Windows 10 Pro
  • Chrome Version 127.0.6533.100 (Official Build) (64-bit)

Related issue - #4878

@AlexeyGirin AlexeyGirin added this to the Ketcher 2.24.0-rc.2 milestone Aug 8, 2024
@AlexeyGirin AlexeyGirin changed the title Replace monomer from library at view mode goes wrong Replace monomer from library at view mode goes wrong for all types of monomer converded to @ symbol Aug 8, 2024
rrodionov91 added a commit that referenced this issue Sep 10, 2024
…types of monomer converded to @ symbol

- implemented logic to replace all monomers in linker by monomer/rna from library
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants