-
Notifications
You must be signed in to change notification settings - Fork 111
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
#1446 Dearomatization does not work with query features #1455
Merged
AlexanderSavelyev
merged 13 commits into
epam:master
from
AliaksandrDziarkach:bugfix/1446-dearomatize-query-molecules
Dec 27, 2023
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
411d3e7
#1446 Dearomatization does not work with query features
AliaksandrDziarkach 87d797f
#1446 Dearomatization does not work with query features
AliaksandrDziarkach 4aa137c
#1446 Dearomatization does not work with query features
AliaksandrDziarkach 906b9d8
#1446 Dearomatization does not work with query features
AliaksandrDziarkach 17bcf6a
#1446 Dearomatization does not work with query features
AliaksandrDziarkach bbfc06f
#1446 Dearomatization does not work with query features
AliaksandrDziarkach 8553b62
#1446 Dearomatization does not work with query features
AliaksandrDziarkach a0d4c21
#1446 Dearomatization does not work with query features
AliaksandrDziarkach 89073d5
Merge branch 'master' into bugfix/1446-dearomatize-query-molecules
AliaksandrDziarkach 82fce07
Merge branch 'master' into bugfix/1446-dearomatize-query-molecules
AliaksandrDziarkach 5eee872
#1446 Dearomatization does not work with query features
AliaksandrDziarkach 20bdea8
Merge branch 'master' into bugfix/1446-dearomatize-query-molecules
AliaksandrDziarkach 88c7c7e
#1446 Dearomatization does not work with query features
AliaksandrDziarkach File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
**** Dearomatize query molecules | ||
Aromatic: c1ccccc1 | ||
Dearomatized: [#6]1-[#6]=[#6]-[#6]=[#6]-[#6]=1 | ||
|
||
Aromatic: c1cccc[c;h0]1 | ||
Dearomatized: [#6]1-[#6]=[#6]-[#6]=[#6]-[#6;h0]=1 | ||
|
||
Aromatic: c1cccc[c;X4]1 | ||
Dearomatized: [#6]1-[#6]=[#6]-[#6]=[#6]-[#6;X4]=1 | ||
|
||
Aromatic: [#6]12:[#6]:[#6]:[#6]:[#6]:[#6]:1:[#6]:[#7]:[#7;h1]:2 | ||
Dearomatized: [#6]12-[#6]=[#6]-[#6]=[#6]-[#6]-1=[#6]-[#7]-[#7;h1]=2 | ||
|
||
Aromatic: [#6]12:[#6]:[#6]:[#6]:[#6]:[#6]:1:[#6]:[#7]:[#7;h0]:2 | ||
Dearomatized: [#6]12-[#6]=[#6]-[#6]=[#6]-[#6]-1=[#6]-[#7]-[#7;h0]=2 | ||
|
||
Aromatic: [#6]12:[#6]:[#6]:[#6]:[#6]:[#6]:1:[#6]:[#7;h0]:[#7]:2 | ||
Dearomatized: [#6]12-[#6]=[#6]-[#6]=[#6]-[#6]=1-[#6]=[#7;h0]-[#7]-2 | ||
|
||
Aromatic: [#6]12:[#6]:[#6]:[#6]:[#6]:[#6]:1:[#6]:[#7;h0]:[#7;h0]:2 | ||
Cannot be dearomatized: [#6]12:[#6]:[#6]:[#6]:[#6]:[#6]:1:[#6]:[#7;h0]:[#7;h0]:2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
import os | ||
import sys | ||
|
||
sys.path.append( | ||
os.path.normpath( | ||
os.path.join(os.path.abspath(__file__), "..", "..", "..", "common") | ||
) | ||
) | ||
from env_indigo import * | ||
|
||
print("**** Dearomatize query molecules") | ||
|
||
indigo = Indigo() | ||
|
||
m = indigo.loadSmarts("c1ccccc1") | ||
print("Aromatic: %s" % m.smarts()) | ||
m.dearomatize() | ||
print("Dearomatized: %s\n" % m.smarts()) | ||
|
||
m = indigo.loadSmarts("c1[ch0]cccc1") | ||
print("Aromatic: %s" % m.smarts()) | ||
m.dearomatize() | ||
print("Dearomatized: %s\n" % m.smarts()) | ||
|
||
m = indigo.loadSmarts("c1[cX4]cccc1") | ||
print("Aromatic: %s" % m.smarts()) | ||
m.dearomatize() | ||
print("Dearomatized: %s\n" % m.smarts()) | ||
|
||
m = indigo.loadSmarts("[#6]12:[#7;h1]:[#7]:[#6]:[#6]:1:[#6]:[#6]:[#6]:[#6]:2") | ||
print("Aromatic: %s" % m.smarts()) | ||
m.dearomatize() | ||
print("Dearomatized: %s\n" % m.smarts()) | ||
|
||
m = indigo.loadSmarts("[#6]12:[#7;h0]:[#7]:[#6]:[#6]:1:[#6]:[#6]:[#6]:[#6]:2") | ||
print("Aromatic: %s" % m.smarts()) | ||
m.dearomatize() | ||
print("Dearomatized: %s\n" % m.smarts()) | ||
|
||
m = indigo.loadSmarts("[#6]12:[#7]:[#7;h0]:[#6]:[#6]:1:[#6]:[#6]:[#6]:[#6]:2") | ||
print("Aromatic: %s" % m.smarts()) | ||
m.dearomatize() | ||
print("Dearomatized: %s\n" % m.smarts()) | ||
|
||
m = indigo.loadSmarts( | ||
"[#6]12:[#7;h0]:[#7;h0]:[#6]:[#6]:1:[#6]:[#6]:[#6]:[#6]:2" | ||
) | ||
print("Aromatic: %s" % m.smarts()) | ||
m.dearomatize() | ||
print("Cannot be dearomatized: %s\n" % m.smarts()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This comment was marked as resolved.
Sorry, something went wrong.