-
-
Notifications
You must be signed in to change notification settings - Fork 443
Distance geometry method #1875
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
Distance geometry method #1875
Conversation
I can't remember - did we merge this in separately? Certainly many of your fixes were needed in the DG code. |
If I.remember correctly, this PR is just for notifying my progress to others and still have a lot of problems. We should not merge. |
3535060
to
9cf8b4d
Compare
update:
I want to discuss where to put |
@n-yoshikawa - is this ready for review? |
Yes, it's ready. I put BFGS library at |
This looks good - can we move the LBFGS outside of If you can change the |
I moved the Also, I found an issue on treatment of chiral center which may cause segmentation fault, so I want to debug it before merge. |
I solved the chiral center problem, but some of tests failed. This is possibly because convergence check by I will try canonical SMILES based convergence check and see how it works. |
I don't think you need a canonical SMILES. As long as the atoms aren't re-ordered, I don't think the SMILES should change order, right? But I'd like to get a list of some cases where the DG declares success but the canonical SMILES is wrong (i.e., before any MMFF cleanup, etc.) - let's see why the stereo constraints claims to be correct and the SMILES is wrong. That seems like a bug. |
I intended to use canonical SMILES for checking input and predicted chirality as the latest commit. It worked in my local environment, but it didn't in Travis CI. I'm investigating why. I will prepare some cases where the judgement of DG and canonical SMILES does not match. |
I'd like to merge this, but I'm not sure what to do about the test failures.. Any ideas? |
The test failure is supposed to be caused by the difference between SMILES generate from the predicted molecule ( Line 918 in 18b5248
|
The difference may be caused by the fact that you are branching off an old version of master. I would rebase on master if I were you, check for the failure, and then force push to this branch. Note that it is a very good idea to make a copy of your local git repo before doing this in case you need to revert. |
dc6d564
to
cf56677
Compare
I tried rebase, but the test still failed. |
I'll take a look. |
I misunderstood the meaning of In addition to distance geometry related test failures, there are many tests failing. I'm not sure rebase was successful. Closing this pull request and branching from the current master may make problem easier. Line 915 in 2f51910
|
There is no need to close this PR: |
test/testdistgeom.py
Outdated
# A series of aromatic strings, which should convert to themselves | ||
self.smiles = [ | ||
'c1ccccc1', # benzene | ||
'C/C=C\C', # Z-butene |
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.
r'C/C=C\C'
or 'C/C=C\\C'
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.
Fixed. Thank you for your comment.
test/CMakeLists.txt
Outdated
@@ -275,7 +269,7 @@ endif (PYTHON_BINDINGS) | |||
function(add_depict_test testname obfile image_file ref_image) | |||
set(depict_dir ${CMAKE_BINARY_DIR}/depict_test) | |||
add_test(NAME test_${testname} COMMAND ${CMAKE_SOURCE_DIR}/test/test_depiction.sh | |||
${CMAKE_BINARY_DIR}/bin/obabel ${ImageMagick_convert_EXECUTABLE} | |||
${CMAKE_BINARY_DIR}/bin/babel ${ImageMagick_convert_EXECUTABLE} |
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.
Should not be modified.
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.
You are right. This file should be fixed.
@n-yoshikawa - you read my mind- last night I was thinking 'let's just have easier tests for now and work on improving' |
I made the test case easier to pass the test for now. I think it is allowed as distance geometry is described as "unstable" in the document I want to improve distance geometry anyway and I want to have advice about how to implement |
This pull request is my update to #1738.