This repository has been archived by the owner on Jul 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
Graph invariant fix #19
Open
tylerperyea
wants to merge
28
commits into
master
Choose a base branch
from
graphInvariantFix
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
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
…antFix # Conflicts: # pom.xml # src/main/java/lychi/LyChIStandardizer.java
I merged with latest master and resolved all conflicts. All tests pass in java 8. I also bumped the version from 0.6 to 0.7.1 since the version of master is now 0.7.0 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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 fix incorporates the fixes for graph invariant issues found in the following pull requests:
#18
#17
More information on those parts can be found in those individual pull requests. This particular change, however, mostly concerns a fix for issues like the following:
The above 2 structures currently get the same lychi-3. This happens because of the way layer-3 is generated, which is by walking the graph in a specific order specified by a modified label-agnostic graph invariant value. The issue is that the original graph invariant values for the atoms are based on the framework, but ties are broken by using the atom number (as discussed in a previous pull request). The tie breaking is actually not done as a strict tie breaker, but by multiplying the invariant number by the atomic numbers. This means that order can be shifted around for the same framework even when there is no framework symmetry involved. In the case above, the multiplying the nitrogen (7) by its graph invariant number ends up giving the same order of atom labels for both, which is how the lychi-3 is calculated.
This fix piggy-backs on the fix from pull 18, but decides to not try to preserve old Lychis, as that seems to not be possible while still fixing this issue. A new test was added to ensure that this works for this case, and a few other tests needed to be modified to not expect the exact lychi that it produced before.
CAUTION! This will change a VERY large portion of lychi values for structures. If this version is used, it can not be assumed compatible with any other lychi previously made.