Commit Graph

56 Commits

Author SHA1 Message Date
Greg Landrum
339fa081e5 Merge fix/github908 branch 2016-07-27 04:49:55 +02:00
Greg Landrum
e846a96123 Fix github #868 (#925)
* fix an incorrect status message

* Fixes #868

Switch the warning to only occur if we have a non-negated atomic number query with value=1
2016-05-31 13:23:21 -04:00
Greg Landrum
f4265f3d75 doc clarification 2016-02-17 06:08:43 +01:00
Greg Landrum
38f8a92d2b Fixes #754 2016-02-17 05:15:53 +01:00
Greg Landrum
4f2aa0f51e Fixes #758 2016-02-08 16:11:22 +01:00
Greg Landrum
70c2995cf8 Fixes #717
This changes the CIPCode and CIPRank atom properties to no longer be computed properties.
Note: under linux I was unable to actually get the bug to manifest (converting the uint property to an int didn't cause problems), but that doesn't mean it shouldn't still be fixed.
2016-01-06 03:45:14 +01:00
Greg Landrum
23d7df99f0 Fixes #678 2015-12-17 04:11:21 +01:00
kelley
5dbec2fe85 Adds rdcasts where appropriate 2015-11-29 17:52:27 -05:00
Greg Landrum
e08e0d16d8 first pass, using google style 2015-11-14 14:58:11 +01:00
Greg Landrum
e37296d7c7 post review 2015-11-14 08:08:14 +01:00
Brian Kelley
a146c3826a Remove unused variables/functions and register keyword 2015-10-18 10:01:00 -04:00
Greg Landrum
33306bc2bb fix the chiral volume flag 2015-08-14 16:07:21 +02:00
Greg Landrum
076550908d fix another merge Hs bug 2015-08-03 12:23:54 +02:00
Greg Landrum
b89b3a8831 Fixes #544
hopefully for real this time
2015-07-31 10:30:18 +02:00
Greg Landrum
f6f6313ab1 fix removal of negated H queries 2015-07-24 17:20:39 -04:00
Greg Landrum
b051a842cc another patch for #544 2015-07-23 11:05:30 -04:00
Greg Landrum
2821907842 Fixes #544 2015-07-23 08:36:16 -04:00
Brian Kelley
020a9a8f36 Change merge_unmappped_only to more consistent mergeUnmappedOnly 2015-04-26 09:03:28 -04:00
Brian Kelley
61dd0b16a5 Add merge_unmapped_only option to MergeQueryHs
By default all atoms are merged, however when
this flag is true, any mapped atom will convert
explicit Hs to implicit.  This is due to not
wanting to convert mapped hydrogens taking
part in reactions.
2015-04-23 09:54:23 -04:00
Brian Kelley
95a92282d1 Dictionary access is saniztized and optimized.
o rdkit gains a RDKit::common_properties namespace that contains common string value properties

 o Dict.h and below gain getPropIfPresent that attempts to retrieve a property and returns
  true/false on success or failure.  This is used to optimize access.

 o rdkit learns how to pass property keys by reference, not value.

A new namespace has been added to RDKit, common_properties
that contains the std::string values for commonly used
properties.  This helps to avoid typos in string values
but also avoids a creation of std::strings from character
values.  All accessors (has/get/clear and getPropIfPresent) now pass
the key by reference.

Additionally, getPropIfPresent removes the double lookup
of hasProp/getProp which can be a significant speedup
in the smiles and smarts parsers (10-20%)
2015-01-15 12:23:29 -05:00
Greg Landrum
d2504ddb0a Fixes #190 2014-03-01 06:37:33 +01:00
Greg Landrum
9f4471f872 more on #204
A few other cleanups
2014-02-06 06:43:28 +01:00
ptosco
8b17ef13fd - modified Code/GraphMol/AddHs.cpp so that hydrogens are not
removed when the heavy atom they are connected to is not
  in its default valence state, while it has one of the
  acceptable valence states (otherwise it still has to be
  removed for sanitization purposes)
- updated the MMFF validation suite SMILES accordingly
2014-02-01 13:05:10 +01:00
Greg Landrum
02027ad0bd passes all tests 2014-01-28 09:26:23 +01:00
ptosco
dded46bf0d - removed a spurious #ifdef [...] #endif from
Code/ForceField/MMFF/testMMFFForceField.h
- re-prepared the SDF files from their MOL2 counterparts present in the
  original  MMFF validation suites. For this purpose a C++ program was
  written which only uses information in MOL2 files and in .fc files
  provided by Halgren. The C++ program does not depend on RDKit.
- re-prepared the SMILES files from their SDF counterparts using
  a Python script which calls MolToSmiles()
- found an issue which affects 2 files in the test suite, namely
  ERULE_05 and PO02A (only the hypervalent notation). The issue is
  connected with removal of hydrogens bonded to phosphorous and
  appears to be fixed by the modifications in Code/GraphMol/AddHs.cpp
  and Code/GraphMol/SmilesParse/SmilesWrite.cpp. This issue is
  independent of the changes ini the SDF files; indeed, it has
  always been present, and had been previously addressed by
  manual correction of the two SMILES strings
2014-01-27 19:05:49 +01:00
Greg Landrum
c13a643e06 Fixes #191 2014-01-12 05:42:50 +01:00
Greg Landrum
b45423be3e rename makeAtomNumEqualsQuery() to makeAtomNumQuery() 2013-12-14 09:14:57 +01:00
Greg Landrum
2e1bb83ea0 add in-place form of mergeQueryHs() 2013-10-04 08:56:38 +02:00
Greg Landrum
c95d57aa54 add in-place form of addHs() 2013-10-04 07:58:53 +02:00
Greg Landrum
937ee9f60a add in-place form of removeHs() 2013-10-04 07:19:01 +02:00
Greg Landrum
a4734bbd43 start using the alternate getProp form 2013-07-20 07:26:06 -04:00
Greg Landrum
61f333db07 a couple copyright cleanups 2013-07-04 09:21:03 +02:00
Greg Landrum
326007754b this was broken by the fix for #42 2013-07-04 08:19:51 +02:00
Greg Landrum
0b45f3c320 fix GitHub issue 8
This breaks the InChI python unit tests, so those need to be cleaned up.
2013-03-01 06:54:33 +00:00
Greg Landrum
5324c9c783 fix and test sf.net issue 272 2012-12-12 04:39:55 +00:00
Greg Landrum
e7d25d7973 tests passing except reactions 2012-04-21 04:40:55 +00:00
Greg Landrum
164a9b19c8 update the way query Hs are merged 2011-09-28 05:24:38 +00:00
Greg Landrum
f3fbef45c5 update copyright statements 2010-09-26 17:04:37 +00:00
Greg Landrum
052ec66542 cleanups:
remove x bit from headers and sources;
remove a couple empty files from Code/GraphMol
2010-09-08 04:25:57 +00:00
Greg Landrum
84b3909a3a fix a leak when removeHs fails 2010-06-08 13:49:00 +00:00
Greg Landrum
2805355f34 First pass at the rewrite:
this gets rid of all the "preceding atom" code and passes all tests on linux

builds on other OS's and more extensive regression testing is required
2010-05-31 14:08:11 +00:00
Greg Landrum
db1f25b16c chirality support in the fix for issue 2951221 2010-02-14 06:39:51 +00:00
Greg Landrum
8daba8ff30 fix sf.net issue 2951221: note this doesn't add Hs to chiral centers correctly 2010-02-13 14:53:47 +00:00
Greg Landrum
e3ebc00ed5 fix and test bug 2762917 2009-04-15 04:39:10 +00:00
Greg Landrum
e05580e495 This is a sizeable one: change the way BGL is used so that atoms and bonds are stored as bundled properties
instead of using the property map interface.
A nice side-effect is that the wart of having to use property maps to loop over bonds or atom neighbors
is now gone.
This potentially breaks lots of client C++ code.
2009-02-11 20:19:25 +00:00
Greg Landrum
a74e024dc3 make mergeQueryHs work when there is no query to start with 2008-12-10 16:43:14 +00:00
Greg Landrum
023f7b4f0f Merge changes from the iterative chirality branch:
https://rdkit.svn.sourceforge.net/svnroot/rdkit/branches/IterativeChirality_20Aug2008
into the trunk.
This covers revs 798-828.

Dependent chirality should now be correctly handled, but the
handling of ring stereochemistry, i.e. things like:
C[C@H]1CC[C@H](C)CC1
is still not 100% correct.
2008-09-19 09:40:15 +00:00
Greg Landrum
3c57caabfb partially tested fix for sf.net bug 1894348 2008-02-15 16:13:12 +00:00
Greg Landrum
a788e29511 merge the changes from the CanonicalizerRework30Nov branch in.
The changes are revs 451:498.
2008-01-30 14:53:04 +00:00
Greg Landrum
430a83bd96 merge in the jamfiles from the bjam branch;
various and sundry minor code cleanups;
this probably does not yet build on windows... that is next
2007-11-23 15:55:30 +00:00