Commit Graph

47 Commits

Author SHA1 Message Date
Greg Landrum
32608ae0b4 Atoms bonded to metal atoms should always have their H counts explicit in SMILES (#8318)
* refactor the code to determine whether or not an atom is in brackets

* move the definition of isMetal to QueryOps

* atoms bound to metals in SMILES should always be in square brackets

Implementation and some test updates

needs confirmation that all of tests run

* basic tests pass

* java tests pass

* update js tests

* doc updates

* Update Code/GraphMol/catch_graphmol.cpp

Co-authored-by: Ricardo Rodriguez <ricrogz@users.noreply.github.com>

* Update Code/GraphMol/SmilesParse/test.cpp

Co-authored-by: Ricardo Rodriguez <ricrogz@users.noreply.github.com>

* finish fixing tests

* bump yaehmop version to allow compilation to work

---------

Co-authored-by: Ricardo Rodriguez <ricrogz@users.noreply.github.com>
2025-03-29 07:26:03 +01:00
Jeremy Monat
5362427d37 Expand on Explicit Valence Error - Partial Sanitization recipe (#8131)
* Expand on Explicit Valence Error - Partial Sanitization recipe, including adding molecular structures for the unsanitized and partially-sanitized iterations

* Format `argument=value`

* Fix typo in formatting

* Update label to *Original* Source

* Correct rdqueries import, and formatting of testoutput blocks

* Print out hybridization create doctests
2025-01-09 07:21:47 +01:00
Greg Landrum
fe6e239da2 Updates to the Docs/Book directory (#7942)
* doc updates

* add rdShapeAlign to the docs

* fix shape docs

* let's not add too much here, revert deprecation

* cleanup the python book

* more book cleanups

* bring in sphinx.napoleon so that we can use the numpy docstrings

* fix a typo

* Update rdkit.ML.rst
2024-10-22 16:07:25 +02:00
Jeremy Monat
f29dd30e84 Add to Cookbook "Include a Bond Index" recipe and image (#7939)
* Add "Include a Bond Index" recipe and image

* Add testoutput so doctest passes

* Use addBondIndices. Follow template of recipe "Include an Atom Index".
2024-10-22 04:31:08 +02:00
Greg Landrum
a6f0493fdd add HetAtomProtomerv2 (#7253) 2024-03-17 10:58:47 +01:00
nbehrnd
b4a7be91e2 update cookbook, draw molecule with atom indices (#7173)
* update cookbook, draw molecule atomic indices

By default, RDKit 2023.09.3 does not explicitly displays atom index 0.

* describe absence of atom index zero in the formula
2024-02-24 06:44:25 +01:00
Vincent F. Scalfani
4633c99498 Fixes #6472 - remove aromatic bond flags in Molhash anonymous graph (#7027)
* remove aromatic bond flags and add test.

* update cookbook molhash results.
2024-01-09 06:12:03 +01:00
David Cosgrove
f5c9fb6a31 Add newline to ConstrainedEmbed docstring. (#6596)
* Add newline to ConstrainedEmbed docstring.

* And another unconnected typo.

---------

Co-authored-by: David Cosgrove <david@cozchemix.co.uk>
2023-08-03 18:54:06 +02:00
Greg Landrum
8559f5d3a9 Add a new tautomer mol hash (#6289)
* backup

* does not work

* backup

* passes all tests

send more tests!

* backup

* seems to mostly work
needs cleanup still

* more tests + python wrappers

* more testing

* some cleanup

* fix problem with newer boost

* be more expansive about unsaturation

* be symmetric in choosing the starting bond
fix a test error

* passes all tests;
passes ChEMBL regression test

* docs

* update cookbook

* expose the new hash function to the cartridge too

* support v2 hash in the registration hash

* better testing

* alternate, simpler approach for that

* remove vestigial docs
2023-04-26 16:57:39 +02:00
Vincent F. Scalfani
46c1481097 update entry 1 and add 38 and 39. (#5918) 2023-01-04 07:07:40 +01:00
Jeremy Monat
ed52dcd2aa Add SMILES to each group abbreviation (#5908) 2022-12-30 08:03:22 +00:00
Vincent F. Scalfani
2138c51b8c Add 3 new examples to Cookbook. (#4404)
* add 3 new examples to Cookbook.

* adjust test setup in GettingStarted and RDKit_Book docs

* removed unnecessary rdMMPA import
2021-08-09 17:03:39 +02:00
Greg Landrum
5167c99fa3 Documentation cleanup and update (#3922)
* include info about query rendering

* Fixes #3897

* update images

* better documentation for the conformer generator

* conformer not conformation

* switch to using context managers and make sure we add hs before generating conformers

* yay more docs

* Finishing #3917

* more documentation of backwards-incompatible changes
2021-03-17 09:02:12 +01:00
Vincent F. Scalfani
bac9ebbdf2 Cookbook edits to fix rdkit#3917 (#3925) 2021-03-15 15:48:28 +01:00
Vincent F. Scalfani
5d91e91c03 Added draw with abbreviations example and reproducible SMILES (#3831) 2021-02-22 08:36:06 +01:00
Vincent F. Scalfani
c6cdbdd513 update Cookbook stereochemistry examples (#3604)
* update cookbook stereochemistry examples with new code.

* simplified double bond stereo example.
2020-12-02 06:57:48 +01:00
Vincent F. Scalfani
abe1741f02 Add nocharge algorithm example to cookbook (#3467)
* Add nocharge algorithm to cookbook

* clarified difference with Uncharger

* slight clarification to description.
2020-10-12 04:46:17 +02:00
Vincent F. Scalfani
d04bebb593 Add 3 new examples to cookbook (#3459) 2020-10-06 08:49:47 +02:00
Vincent F. Scalfani
ac396df23a Fix Cookbook formatting and added 4 new examples (#3345)
* add new images for CB examples 28 and 29

* formatting fixes and add 4 new examples

* clarified variables in sidechain-core enumeration example
2020-08-24 05:31:04 +02:00
hjuinj
6117222ff3 Cookbook entry for ETKDG with rings (#3129)
* cookbook entry for etkdg with rings

* cookbook entry for etkdg with rings

Co-authored-by: Shuzhe Wang <shuwang@eu-login-27.euler.ethz.ch>
Co-authored-by: Shuzhe Wang <shuwang@eu-login-29.euler.ethz.ch>
2020-05-05 04:38:23 +02:00
Vincent F. Scalfani
66354d9d51 Add 5 new recipes to Cookbook (#3014)
* Add 5 new recipes to Cookbook and associated images.

* fixed the requested changes.
2020-03-21 14:03:26 +01:00
Greg Landrum
eb846091cc Include running the documentation tests as part of the CI runs (#2932)
* initial attempt to run doctests in CI

* add cairo support; disable other builds until we are done with this

* we don't actually need cairo
Adds cleanup code to cookbook

* be explicit about SVG
it does not seem like this should be necessary, but...

* turn the other tests back on now that the doctests work

* try enabling the doc tests for mac and win too

* remove mac tests again, fix problem with windows

* trying to get tests working on windows

* stop requesting PNGs in the cookbook

* skip calls to molstogridimage too

* remove vestigial doctest directive
2020-02-13 15:23:48 +01:00
Vincent F. Scalfani
d9124a8556 Add a new Cookbook v2 to the RDKit docs (#2884)
* Added Cookbook_v2 title to toctree index.rst file

* Add Cookbook_v2 PNG images

* Add RDKit Cookbook_v2.rst document

* Added all corrections and suggestions from reviewer round 1

* Added note about reverse mapping.

* suggested changes

* rename step1

* replace old cookbook with the new one

* replace old cookbook with the new one

* replace old cookbook with the new one

* Minor corrections added requested in greg review

* Removed old markdown Cookbook and renamed new document Cookbook.rst

* fixed a note typo

Co-authored-by: Greg Landrum <greg.landrum@gmail.com>
2020-01-22 14:17:58 +01:00
Greg Landrum
1e1241413d move cookbook to markdown 2015-08-26 11:51:50 +02:00
JP
a8be3d5fa4 Fixed missing ':' for correct python code listing. 2015-05-04 10:40:00 +02:00
JP
86513e9d40 Seems I cannot spell "symettry" 2015-05-04 10:32:48 +02:00
JP
7d5de59168 Added the RSMD calculation over N molecules in the cookbook.
Also updated the PDF to the recent version (this was from 2013).

Fixed the MakeFile to run 'make html' (does not require apidocs
anymore).
2015-04-30 16:35:42 +02:00
Greg Landrum
f9465b6186 fix a typo in the docs 2015-04-16 05:52:06 +02:00
Greg Landrum
a42d75cb1f fix a typo 2015-04-11 17:15:25 +02:00
Greg Landrum
feea550096 update MCS example in cookbook to use new implementation 2015-04-11 17:08:57 +02:00
Greg Landrum
31d6760495 add clustering example from the google code wiki to cookbook 2015-04-11 16:56:30 +02:00
Greg Landrum
676a77ee2d fix a formatting problem in the cookbook 2015-03-14 07:56:59 +01:00
Greg Landrum
6632055b1b remove excessive precision from the TFD output 2015-02-22 04:59:56 +01:00
Sereina
436b38fcf5 update 3D functionality in Cookbook 2014-11-04 12:13:05 +01:00
Sereina
8cd075f629 update 3D functionality in Cookbook 2014-11-04 12:11:24 +01:00
Sereina
11f8f96279 update 3D functionality in Cookbook 2014-11-04 11:52:40 +01:00
Sereina
6ff6c16444 update 3D functionality in Cookbook 2014-11-04 11:51:38 +01:00
Sereina
3e0f04cabf update 3D functionality in Cookbook 2014-11-04 10:38:04 +01:00
Sereina
55f874c9fe Description of 3D functionality including torsion fingerprints added 2014-11-04 10:13:00 +01:00
Greg Landrum
06ff57f2c9 add a new recipe to the cookbook 2014-05-10 06:50:11 +02:00
Greg Landrum
bbb7fc6894 update docs 2014-02-04 16:30:00 +01:00
Greg Landrum
2a6acf32ca Adjust to changes from #133 2013-10-17 03:01:09 +02:00
sriniker
e84c748199 Update Cookbook.rst 2013-10-07 12:27:35 +02:00
Sereina Riniker
88133c7378 code fixes in documentation of similarity maps 2013-10-07 10:40:57 +02:00
sriniker
f6dce20a0a Update Cookbook.rst
scikit-learn and similarity maps for models
2013-10-04 15:42:22 +02:00
Greg Landrum
6ebc57b753 documentaiton update 2013-01-13 19:47:58 +00:00
Greg Landrum
bde14e486c add cookbook 2012-10-27 09:43:54 +00:00