Commit Graph

22 Commits

Author SHA1 Message Date
Maciej Wójcikowski
7987c7fa66 Treat bonds in PDB explicitly, but make blacklisted ones zero-order. (#1658) 2018-02-10 06:22:47 +01:00
Greg Landrum
ba12d98ad0 Removes ATOM/BOND_SPTR in boost::graph in favor of raw pointers (#1713)
* Removes ATOM/BOND_SPTR in boost::graph in favor of raw pointers

* Actually delete atoms and bonds...

* RWMol::clear now calls destroy to handle atom/bond deletion

* Changes broken Atom lookup for windows/gcc

* Adds tests for running with valgrind

* Adds test designed for valgrind and molecule deletions

* Removes RNG, actually tests bond deletions

* update swig wrappers

* deal with most recent changes on the main branch
2018-01-07 14:19:47 -05:00
Maciej Wójcikowski
10fbd483bb [MRG] Fix PDB reader + add argument to toggle proximity bonding (#1629)
* Add parameter to skip proximity bonding during PDB reading

* Test proximityBonding flag

* Remove multivalent Hs and bonds to metals in PDB

* Add tests for multivalent Hs and metal unbinding

* Remove covalent bonds to waters

* Test unbinding of HOHs

* Refactor funxtions

* Rename flag for cosistency

* Include flavor in double bond perception

* Add metalorganic test (APW ligand)

* Validate input foe IsBlacklistedPair and minor changes.
2017-11-15 06:53:31 +01:00
Greg Landrum
7c0bb0b743 clang-tidy output 2017-04-22 17:09:24 +02:00
Greg Landrum
adad6e55c2 Fix two problems with the PDB parsing (#1341)
* Fixes #1029

* Fixes #1340

* add test files
2017-03-04 12:34:27 -05:00
Greg Landrum
f4a02f5f13 Expanded sequence support (#1140)
* patch from Roger Sayle to support nucleic acids as well as amino acids

* add some tests which do not yet pass

* fix a bug I introduced in residue name parsing

* basic sequence testing

* add some more tests
2016-11-04 04:29:26 +01:00
Brian Kelley
34fef8baaf Rollup of warning squashing (with some tests diagnostics thrown in) 2016-04-30 13:25:48 -04:00
Greg Landrum
e08e0d16d8 first pass, using google style 2015-11-14 14:58:11 +01:00
Brian Kelley
daa7e62258 Fixes signed conversion issues (use rdcast) 2015-10-18 15:16:38 -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
8493f122b5 support multiconf PDB read 2014-10-24 14:41:11 +02:00
Greg Landrum
b717f9c127 Fixes #170 2013-12-01 06:35:01 +01:00
Greg Landrum
f6517b572e Fixes #166 2013-11-25 05:36:45 +01:00
Greg Landrum
1501af51a5 PDB reader/writer fixes;
add MolToMolFile() to python API
2013-10-25 05:02:09 +02:00
Greg Landrum
d48eca1a66 add patch from Roger to support chirality for standard amino acids 2013-10-04 15:03:58 +02:00
Greg Landrum
937ee9f60a add in-place form of removeHs() 2013-10-04 07:19:01 +02:00
Greg Landrum
ce17c2af5c remove the obsolete MONOMERINFO ifdefs 2013-10-03 09:52:48 +02:00
Greg Landrum
173c53c8e4 integrate Roger's bond-perception/assignment code 2013-09-30 05:11:31 +02:00
Greg Landrum
a75b3fe0b3 add PDB input to python wrapper 2013-09-29 16:15:30 +02:00
Greg Landrum
aa81189fde mv PDBParser.h code to FilePrasers.h 2013-09-29 15:50:32 +02:00
Greg Landrum
dc443ddb96 add some preconditions 2013-09-29 15:37:06 +02:00
Greg Landrum
4c355c089b First pass commit from Roger 2013-09-29 15:14:48 +02:00