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

Search monomer in library by IDT #4853

Closed
olganaz opened this issue Jun 17, 2024 · 1 comment · Fixed by #5373
Closed

Search monomer in library by IDT #4853

olganaz opened this issue Jun 17, 2024 · 1 comment · Fixed by #5373
Assignees
Labels
feature request IDT Bucket: IDT related issues Test Cases Written Test cases has been written for that issue

Comments

@olganaz
Copy link
Collaborator

olganaz commented Jun 17, 2024

Background
Since the IDT alias is displayed only by hover, it is almost impossible to find the desired monomer in the library.

Requirements

  1. User should be able to search by IDT aliases in a library using search bar.

  2. User should be able to search by a part of IDT aliases.

For example: iPr should return a monomer with alias i6diPr, and so should 6diP

  1. Single symbol / in a query should result in displaying all the monomers that have IDT alias.

  2. The symbol after / is the first symbol of the IDT alias (the position indicator - 5, i or 3).

In example: /5deoxyU/, 5 is the first symbol of the alias.
In example: /i6diPr/, i is the first symbol of the alias.
Searching /5deo should return a monomer with alias 5deoxyU, but searching /deo should not.

  1. The symbol before the second / is the last symbol of the IDT alias.

In example: /5deoxyU/, U is the last symbol of the alias.
In example: /i6diPr/, r is the last symbol of the alias.
Searching diPr/ should return a monomer with alias i6diPr, but searching diP/ should not.

  1. If there is any symbol after the second slash, there shouldn't be any results.

Searching /5deoxyU/ should return a monomer with alias 5deoxyU, but searching /5deoxyU// should return nothing.
Searching /i6diPr/ should return a monomer with alias i6diPr, but searching /i6diPr/5deo should return nothing.

  1. The search is not case sensitive.

Both /5deo and /5DEO should return the monomer with alias 5deoxyU.

@AlexeyGirin
Copy link
Collaborator

Verified.
Versions

  • Ketcher Version 2.25.0-rc.1 Build at 2024-09-03; 15:31:03
  • Indigo Toolkit Version 1.24.0-rc.1.0-gb8f099851-wasm32-wasm-clang-19.0.0
  • Chrome Version 128.0.6613.120 (Official Build) (64-bit)
  • Win10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request IDT Bucket: IDT related issues Test Cases Written Test cases has been written for that issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants