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

Cursor position after adding preset in sequence mode causes an incorrect sequence formation #6272

Closed
Zhirnoff opened this issue Jan 14, 2025 · 1 comment · Fixed by #6388, #6432, #6436 or #6437
Assignees
Labels
Priority: High Sequence mode Bucket: Sequence mode related issues Severity: High High level visibility to the user User`s Feedback

Comments

@Zhirnoff
Copy link
Collaborator

Description:
When adding an RNA preset (e.g., "AUCAU") in Macro mode, the cursor is incorrectly placed between the first nucleotide (e.g., "A") and the "p" (phosphate group). As a result, subsequent additions to the chain are misplaced, causing the RNA sequence to break and leading to an incorrect sequence structure. Ideally, the cursor should always move to the end of the chain after adding a preset.

Steps to Reproduce

  1. Open Ketcher in Macro mode -> Sequence mode and navigate to the RNA tab.
  2. Start clicking one by one on presets A, U, C, A, U
  3. Observe the cursor position after adding the first nucleotide.
  4. Continue adding presets and observe the chain formation.

Actual behavior
After clicking the first preset, the cursor is placed between the nucleotide (e.g., "A") and the "p" (phosphate group). This placement results in chain breaks and incorrect sequence formation when adding subsequent presets.

Expected behavior
After clicking a preset, the cursor should be positioned at the end of the chain, ensuring that all subsequent additions are appended correctly to form a continuous sequence.

Video

2025-01-14_15h07_26.mp4

Desktop:

  • OS: Windows 11
  • Browser Chrome
  • Version 131.0.6778.205 (Official Build) (64-bit)

Ketcher version
[Version 3.0.0-rc.1]
Indigo version
[Version 1.28.0-rc.1]

#188769167

@Zhirnoff Zhirnoff added bug Priority: High User`s Feedback Sequence mode Bucket: Sequence mode related issues Severity: High High level visibility to the user labels Jan 14, 2025
@Zhirnoff Zhirnoff added this to the Ketcher 3.0.0-rc.2 milestone Jan 14, 2025
@svvald svvald self-assigned this Jan 16, 2025
@AlexeyGirin AlexeyGirin removed the bug label Jan 16, 2025
@svvald svvald removed their assignment Jan 23, 2025
@tanas80 tanas80 self-assigned this Jan 24, 2025
@AlexeyGirin AlexeyGirin reopened this Jan 24, 2025
@rrodionov91 rrodionov91 assigned rrodionov91 and unassigned tanas80 Feb 6, 2025
rrodionov91 added a commit that referenced this issue Feb 6, 2025
@Zhirnoff
Copy link
Collaborator Author

Tested. Bug fixed.

2025-02-11_19h12_41.mp4

Desktop:

  • OS: Windows 11
  • Browser Chrome
  • Version 131.0.6778.205 (Official Build) (64-bit)

Ketcher version
[Version 3.0.0-rc.8]
Indigo version
[Version 1.28.0-rc.3]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment