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

Add empty options for atom charges and isotops #3339

Closed
AlexanderSavelyev opened this issue Sep 19, 2023 · 1 comment · Fixed by #3392
Closed

Add empty options for atom charges and isotops #3339

AlexanderSavelyev opened this issue Sep 19, 2023 · 1 comment · Fixed by #3392

Comments

@AlexanderSavelyev
Copy link
Contributor

AlexanderSavelyev commented Sep 19, 2023

Background
Current charge and isotope default value is 0 which makes it incorrect when using inside a SMARTS query

Solution

  • Add empty values for the charge and isotope (not specified)
  • Validation for charge should be integer, minimum -999, maximum 999
  • Validation for isotope: integer, minimum 0, maximum 999
  • isotope should be added for the SMARTS custom query using notation
  • e.g. if charge is 0 then customQuery = +0
  • atom = carbon and isotope=12 then customQuery = #6;12
  • atom = carbon, aromaticity=aliphatic and isotope=13 then customQuery = C;13
@AlexanderSavelyev AlexanderSavelyev added this to the Refined Backlog milestone Sep 19, 2023
@AKZhuk AKZhuk linked a pull request Oct 3, 2023 that will close this issue
9 tasks
AKZhuk added a commit that referenced this issue Oct 3, 2023
AKZhuk added a commit that referenced this issue Oct 4, 2023
AKZhuk added a commit that referenced this issue Oct 4, 2023
Nitvex pushed a commit that referenced this issue Oct 5, 2023
* #3339 - Add empty options for atom charges and isotops

* #3339 - Add empty options for atom charges and isotops
- Fix failed tests

* #3339 - Add empty options for atom charges and isotops
- Fix pr comment
@ViktoriaTkacheva
Copy link
Collaborator

The isotope is displayed before the element – based on the examples in Solution, the isotope should be displayed after the element

2023-10-17_17h06_13.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

4 participants