Navigation Menu

Skip to content
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

Fingerprint was ignoring pseudo atoms... which these entire fragments… #305

Merged
merged 3 commits into from Apr 26, 2017

Conversation

johnmay
Copy link
Member

@johnmay johnmay commented Apr 25, 2017

… were.

Fix test regressions, not sure why I missed this.

@johnmay
Copy link
Member Author

johnmay commented Apr 25, 2017

Grrr hold off on this... the hybridisation fingerprint was doing more than I thought. If you think about it in this case it really is useless as you should get n paths.

@johnmay
Copy link
Member Author

johnmay commented Apr 25, 2017

Okay to commit now, the last commit shows how using the fingerprint isn't useful - all the FPs are the same :-).

@johnmay johnmay mentioned this pull request Apr 25, 2017
@@ -365,8 +365,9 @@ public void makeCanonicalSmileFromRingSystems(String dataFileIn, String dataFile
public List<IBitFingerprint> makeFingerprintsFromSdf(boolean anyAtom, boolean anyAtomAnyBond,
Map<String, Integer> timings, BufferedReader fin, int limit) throws Exception {

IFingerprinter fingerPrinter = new HybridizationFingerprinter(HybridizationFingerprinter.DEFAULT_SIZE,
HybridizationFingerprinter fingerPrinter = new HybridizationFingerprinter(HybridizationFingerprinter.DEFAULT_SIZE,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The basic idea of this one is that sp2 hybridization is a lot more stable than aromaticity...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep... but the atoms were all anonymised! :-)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But only in the 3D builder stack, right? There this was used as a backup: first it would try to find a matching ring system with the correct elements, and second, if no such ring was found, at least a ring system for the same ring sizes but possibly different chem. elements in the ring...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(But the general sp2 FP should not anonymize atoms by default!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No it doesn't... but yes only the template matcher;

But only in the 3D builder stack, right? There this was used as a backup: first it would try to find a matching ring system with the correct elements, and second, if no such ring was found, at least a ring system for the same ring sizes but possibly different chem. elements in the ring...

Maybe that was intended but it wasn't doing that.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mmm... that's a serious regression then...

@egonw egonw merged commit 6cba891 into master Apr 26, 2017
@johnmay johnmay deleted the patch/3dfix branch May 6, 2017 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants