-
Notifications
You must be signed in to change notification settings - Fork 174
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 ability to define attachment points for molecules #4530
Labels
Milestone
Comments
Tests added to the automation table. |
rrodionov91
added a commit
that referenced
this issue
May 9, 2024
…hem attachment points in macromolecules mode - unblocked rglabels to attachment points conversion for molecules
9 tasks
rrodionov91
added a commit
that referenced
this issue
May 10, 2024
…hem attachment points in macromolecules mode (#4598) - unblocked rglabels to attachment points conversion for molecules - added validation for attachment points creation from rglabels
This was referenced May 13, 2024
Verified.
|
rrodionov91
changed the title
Convert Rx connection points created in molecules mode into chem attachment points in macromolecules mode
Add ability to define attachment points for molecules
May 17, 2024
Reopened due to requirements change. |
AlexeyGirin
removed
the
Test Cases Written
Test cases has been written for that issue
label
May 17, 2024
This was referenced May 18, 2024
rrodionov91
added a commit
that referenced
this issue
May 27, 2024
- added conversion of molecules to superatoms without label after adding superatom attachment points - added connections between molecules and monomers
9 tasks
rrodionov91
added a commit
that referenced
this issue
May 30, 2024
- added conversion of molecules to superatoms without label after adding superatom attachment points - added connections between molecules and monomers
AlexeyGirin
added
the
Test Cases Written
Test cases has been written for that issue
label
May 31, 2024
rrodionov91
added a commit
that referenced
this issue
May 31, 2024
- added conversion of molecules to superatoms without label after adding superatom attachment points - added connections between molecules and monomers
This was referenced Jun 6, 2024
This was referenced Jun 6, 2024
This was referenced Jun 21, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Background
Currently there is no way to define attachment points for molecules, so it is not possible to connect them in macromolecules mode with monomer.
Solution
New items should be added to atom context menu: Add attachment point, Remove attachment point. It should appear only for atoms which are NOT part of s-group.
When add attachment point, system should create new superatom s-group for whole structure implicitly without label. System should draw label(R1/.../R8) depends on next free attachment point number and single bond from atom to that label. If all 8 attachment points exist in structure system should NOT create attachment point.
System should NOT allow to show brackets and collapse superatoms without labels.
When remove attachment point system should delete label and corresponding bond. When last attachment point deleted system should delete s-group superatom.
Such attachment points should be converted into monomer attachment points during the switching to macromolecules mode and vice versa.
System should save such attachment points to sgroup.attachmentPoints field during the serialization to ket format and should set leavingGroup new atom H.
Extra info:
What happens if I apply R-Group on AP label?
No, since AP is not an atom - its a label connected to atom by bond (we can do that with atom AP label connected to)
Can I wrap atom/molecule with AP to R-Group fragment tool?
No, since AP is not an atom - its a label connected to atom by bond (we can do that with atom AP label connected to)
Can I attach "old" AP to new AP?
No, since AP is not an atom - its a label connected to atom by bond (we can do that with atom AP label connected to)
Can I charge (A+/A-) AP?
No, since AP is not an atom - its a label connected to atom by bond (we can do that with atom AP label connected to)
Can I bond AP with bond? (i.e. attach bond to AP)
No, since AP is not an atom - its a label connected to atom by bond (we can do that with atom AP label connected to)
Erase logic (since system enumerate AP automatically). What if we have R1, R2, R3 and I delete R2 and add NEW AP? What if we have R1-R8 in place and I delete R2 and try to add new AP?
Gaps should start be filled if we rich the R8 (later this will be changed to let user choose AP name himself)
Selection logic? Partial selection? Should selection be saved in KET?
Selection should work the same as for atoms but without saving selection state in KET file
Extra work over selection login is needed here. Will be done separatedy
Items in context menu? Context menu if selected together with bond and atom?
Only Delete item should be remain in the context menu for now
Open from IMAGE?
Load from image is not supported
Should we support save to:
We support all formats that support s-groups and attachment points
If no - just got it lost in save file + warning in save dialog
C[C@H](n)C(*)=O |$;;;_AP1;;_AP2;$|
Copy/Cut/Paste logic?
Should work if at least one atom is selected for copy, if only AP label - than NO
Undo/Redo logic since we have two Undo/Redo sequences in Micro and Macro - how to resolve conflicts? Invalidate?
Switching between Micro and Macro should invalidated Undo-Redo sequence
Aromatize/Dearomatize should work
Yes.
Layout should work
Yes. (AP label behave as atom)
Clean Up should work
Yes.
Calculate CIPs should work
Yes.
Structure Check should work
Yes.
Calculate values should work (? - doesn't work for R-Groups now)
Yes. (probably will require to to correct indigo - leaving group should disappear
3D view should work
No, should be hydrogen in there. Should not crash
Bond between micro and macro - can we edit it and change its type? Set query properties?
No. We shouldn't allow that
Connect molecule over AP? Should we allow?
Yes. But no extra dialogs (such as Remove abbreviation) should appear. Connection should be established but AP info should remain virtually in memory and should appear back if we delete bond. Should remain even after save/load to ket/mol3000. Should be visual indication on the canvas in the same manner as if it done in Marvin
Since AP is s-group - should we allow Remove Abbreviation?
No. Never. it is not an s-group
Stand alone connection point since it is s-group?
No. it is not.
Is it possible to connect AP to single atom?
Yes we can
Open questions
25. Label numbering - allow users to set
26. Label/living group operations
27. Undo/Redo - inclusion of mode switching in it - is this a bug? Valentin sees that yes, but Roman claims that this is what they wanted. It looks like a crutch. Sasha was always against it.
The text was updated successfully, but these errors were encountered: