-
Notifications
You must be signed in to change notification settings - Fork 128
#1256 - Inability to save a structure with R-Group in the SDF file format #3763
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
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
c664b73
#3648 - updated output naming for tests
f7e8a14
Merge branch 'epam:master' into master
ost2025 d77d18e
Merge branch 'epam:master' into master
ost2025 e689983
Merge branch 'epam:master' into master
ost2025 7132642
Merge branch 'epam:master' into master
ost2025 a505a94
Merge branch 'epam:master' into master
ost2025 728c7c7
#1256 - fixed the issue and updated tests
22bdad7
add indigoGetFragmentSdf to java
fc02cac
add indigoGetFragmentSdf to dotNET
8df7810
Merge branch 'epam:master' into bug_fix_1256
ost2025 a44e5ea
fixes by PR requested changes
42df4a7
fixes by PR requested changes 2
aefff60
fixes by PR requested changes 3
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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,8 @@ | ||
| *** KET to SDF *** | ||
| 1256-ketR20-from2815.sdf:SUCCEED | ||
| 1256-query-independent-rgroup.sdf:SUCCEED | ||
| 1256-salt-attached-rgroup.sdf:SUCCEED | ||
| 1256-standard-plus-two-independent.sdf:SUCCEED | ||
| 1256-two-independent-rgroups.sdf:SUCCEED | ||
| 1256-reaction-one-independent-rgroup.sdf:SUCCEED | ||
| 1256-reaction-two-independent-rgroups.sdf:SUCCEED |
This file contains hidden or 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 hidden or 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,64 @@ | ||
| import os | ||
| import sys | ||
|
|
||
| sys.path.append( | ||
| os.path.normpath( | ||
| os.path.join(os.path.abspath(__file__), "..", "..", "..", "common") | ||
| ) | ||
| ) | ||
| from common.util import compare_diff | ||
| from env_indigo import * # noqa | ||
|
|
||
| indigo = Indigo() | ||
| indigo.setOption("json-saving-pretty", True) | ||
| indigo.setOption("molfile-saving-skip-date", True) | ||
| indigo.setOption("ignore-stereochemistry-errors", True) | ||
|
|
||
| print("*** KET to SDF ***") | ||
|
|
||
| root = joinPathPy("molecules/", __file__) | ||
| ref_path = joinPathPy("ref/", __file__) | ||
|
|
||
| files = [ | ||
|
NikolaiBalabanov marked this conversation as resolved.
|
||
| "1256-ketR20-from2815", | ||
| "1256-salt-attached-rgroup", | ||
| "1256-two-independent-rgroups", | ||
| "1256-standard-plus-two-independent", | ||
| "1256-query-independent-rgroup", | ||
| ] | ||
|
|
||
| files.sort() | ||
| for filename in files: | ||
| try: | ||
| ket = indigo.loadMoleculeFromFile( | ||
| os.path.join(root, filename + ".ket") | ||
| ) | ||
| except IndigoException: | ||
| ket = indigo.loadQueryMoleculeFromFile( | ||
| os.path.join(root, filename + ".ket") | ||
| ) | ||
|
|
||
| sdf = ket.fragmentedSdf() | ||
| compare_diff(ref_path, filename + ".sdf", sdf) | ||
|
|
||
| root = joinPathPy("reactions/", __file__) | ||
| ref_path = joinPathPy("ref/", __file__) | ||
|
|
||
| files = [ | ||
| "1256-reaction-one-independent-rgroup", | ||
| "1256-reaction-two-independent-rgroups", | ||
| ] | ||
|
|
||
| files.sort() | ||
| for filename in files: | ||
| try: | ||
| ket = indigo.loadReactionFromFile( | ||
| os.path.join(root, filename + ".ket") | ||
| ) | ||
| except IndigoException: | ||
| ket = indigo.loadQueryReactionFromFile( | ||
| os.path.join(root, filename + ".ket") | ||
| ) | ||
|
|
||
| sdf = ket.fragmentedSdf() | ||
| compare_diff(ref_path, filename + ".sdf", sdf) | ||
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Non-blocker: Let's either add comment in all wrappers or take it off from all places.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is depended from file. indigo_object.py has comments in this style.