Skip to main content

Wrapper for RDKit's RunReactants to improve stereochemistry handling

Project description

PyPI version Maintenance License Run Tests Build Docs Open In Colab

rdchiral_plus

Wrapper for RDKit's RunReactants to improve stereochemistry handling

This repository is a fork of rdchiral. It has been modified for improved performance, and is statically typed wherever possible so that it can be optionally compiled with mypyc for faster execution while maintaining consistency with the upstream library. These modifications provide comparable speed to the fast C++ version (rdchiral_cpp), with all of the benefits of being written in Python. This library is pip installable and cross platform.

This library has high consistency with the python rdchiral library, and can be used as a drop in replacement:

  • rdchiralRun (1000 templates applied to 1000 reactants): 99.98% consistent
  • rdchiralRunText (1000 templates applied to 100 reactants): 99.97% consistent
  • rdchiralExtract (templates extracted from 50,016 mapped reactions): 94.99% consistent

See here for details on how consistency is measured against the original library.

Requirements

  • RDKit (version >= 2019)
  • Python (version >= 3.10)

Installation

Install rdchiral_plus from PyPI:

pip install rdchiral-plus

Or install rdchiral_plus with pip directly from this repo:

pip install git+https://github.com/denovochem/rdchiral_plus.git

For mypyc compilation:

RDCHIRAL_USE_MYPYC=1 pip install "git+https://github.com/denovochem/rdchiral_plus.git"

Basic usage

from rdchiral import rdchiralRunText, rdchiralReaction, rdchiralReactants

# Run directly from SMARTS and SMILES strings
# This is slower than pre-initializing rdchiralReaction and rdchiralReactants when
# processing a large number of reactions
reaction_smarts = '[C:1][OH:2]>>[C:1][O:2][C]'
reactant_smiles = 'OCC(=O)OCCCO'
outcomes = rdchiralRunText(reaction_smarts, reactant_smiles)
print(outcomes)

# Pre-initialize then run
rxn = rdchiralReaction(reaction_smarts)
reactants = rdchiralReactants(reactant_smiles)
outcomes = rdchiralRun(rxn, reactants)
print(outcomes)

# Get list of atoms that changed
outcomes, mapped_outcomes = rdchiralRun(rxn, reactants, return_mapped=True)
print(outcomes, mapped_outcomes)

Documentation

Full documentation is available here

Contributing

  • Feature ideas and bug reports are welcome on the Issue Tracker.
  • Fork the source code on GitHub, make changes and file a pull request.

License

rdchiral_plus is licensed under the MIT license.

References

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rdchiral_plus-0.3.1.tar.gz (41.1 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

rdchiral_plus-0.3.1-cp313-cp313-win_amd64.whl (266.0 kB view details)

Uploaded CPython 3.13Windows x86-64

rdchiral_plus-0.3.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl (579.4 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

rdchiral_plus-0.3.1-cp313-cp313-macosx_11_0_arm64.whl (352.5 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

rdchiral_plus-0.3.1-cp312-cp312-win_amd64.whl (265.8 kB view details)

Uploaded CPython 3.12Windows x86-64

rdchiral_plus-0.3.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl (583.3 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

rdchiral_plus-0.3.1-cp312-cp312-macosx_11_0_arm64.whl (353.3 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

rdchiral_plus-0.3.1-cp311-cp311-win_amd64.whl (264.8 kB view details)

Uploaded CPython 3.11Windows x86-64

rdchiral_plus-0.3.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl (556.3 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

rdchiral_plus-0.3.1-cp311-cp311-macosx_11_0_arm64.whl (351.4 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

rdchiral_plus-0.3.1-cp310-cp310-win_amd64.whl (264.7 kB view details)

Uploaded CPython 3.10Windows x86-64

rdchiral_plus-0.3.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl (552.9 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

rdchiral_plus-0.3.1-cp310-cp310-macosx_11_0_arm64.whl (353.5 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

Details for the file rdchiral_plus-0.3.1.tar.gz.

File metadata

  • Download URL: rdchiral_plus-0.3.1.tar.gz
  • Upload date:
  • Size: 41.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for rdchiral_plus-0.3.1.tar.gz
Algorithm Hash digest
SHA256 9c22c701304cb5a32ccae49d2a80c45e263cd2be524f33aa006ba9ca56ee5875
MD5 39fcea351d2d3ebe444e0c9a88efeaff
BLAKE2b-256 38cf33142da29520abbc9fa2f93e335ae4a548aced792d1ff4b8710783900a24

See more details on using hashes here.

Provenance

The following attestation bundles were made for rdchiral_plus-0.3.1.tar.gz:

Publisher: publish.yml on denovochem/rdchiral_plus

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file rdchiral_plus-0.3.1-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for rdchiral_plus-0.3.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 1702e50fe8ee9f208060dd6e913005922f00ec3a2573387350e798de2b15eac8
MD5 2ceebf26c59fadcbb24c0deb55c33a86
BLAKE2b-256 3e18e0c8cae1e22af9cc28b850e35e3b9fdf48f840bddb5da8444fb5db5c8bba

See more details on using hashes here.

Provenance

The following attestation bundles were made for rdchiral_plus-0.3.1-cp313-cp313-win_amd64.whl:

Publisher: publish.yml on denovochem/rdchiral_plus

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file rdchiral_plus-0.3.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for rdchiral_plus-0.3.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a2909ad051e48e8f92f53b5693203d4f7753e4ceb3f22df29457f1eb7accd7ad
MD5 422112792e304ec43c7b5191abef5815
BLAKE2b-256 eb56df0aec7994ac683d1c53c443fa8de9c42061c912194af4b9abef5a493c42

See more details on using hashes here.

Provenance

The following attestation bundles were made for rdchiral_plus-0.3.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl:

Publisher: publish.yml on denovochem/rdchiral_plus

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file rdchiral_plus-0.3.1-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for rdchiral_plus-0.3.1-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 315868af7db74e93da6d73828fbe8c1685159b8ae22fcf61b05fbc2d87597c7d
MD5 1ca7d8aec39ce0539753e81200a4e5e5
BLAKE2b-256 c68dcdf11cb13d3aa6429fa9c93290b6752fbcfae0573f534b5e97d733425db0

See more details on using hashes here.

Provenance

The following attestation bundles were made for rdchiral_plus-0.3.1-cp313-cp313-macosx_11_0_arm64.whl:

Publisher: publish.yml on denovochem/rdchiral_plus

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file rdchiral_plus-0.3.1-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for rdchiral_plus-0.3.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 34b649d6d0a322bdab32784b7d90e7b1c1e2340dc449399617d13dfda18b4bb4
MD5 9a97ceca800b75a21e1234b3c1502e40
BLAKE2b-256 23e3b6d0da69d0fc5fd06e4c85e3d908fde7998fa5bffc959badd541dc44a510

See more details on using hashes here.

Provenance

The following attestation bundles were made for rdchiral_plus-0.3.1-cp312-cp312-win_amd64.whl:

Publisher: publish.yml on denovochem/rdchiral_plus

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file rdchiral_plus-0.3.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for rdchiral_plus-0.3.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 42d617cb0e142d2f7e6ef778d19d535438758f6ccc94936f064246fec6012285
MD5 d617b1592bbb9d22dfcd1656e8fee0c2
BLAKE2b-256 2094ddda97f412d6bcaca124a899bd6a3d8ebca1efd796a69951b41c1f125100

See more details on using hashes here.

Provenance

The following attestation bundles were made for rdchiral_plus-0.3.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl:

Publisher: publish.yml on denovochem/rdchiral_plus

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file rdchiral_plus-0.3.1-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for rdchiral_plus-0.3.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a2fd29de77fe90a66bb83675b683856aa5a9790ff473bf1cc34d6f7d4ab1a5d1
MD5 0197474a7f688540314a6c630080bbd5
BLAKE2b-256 774b4b22c5011037623eebf0dbbb5365607e9e5f5a3b0dd0022307158585268a

See more details on using hashes here.

Provenance

The following attestation bundles were made for rdchiral_plus-0.3.1-cp312-cp312-macosx_11_0_arm64.whl:

Publisher: publish.yml on denovochem/rdchiral_plus

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file rdchiral_plus-0.3.1-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for rdchiral_plus-0.3.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b9f8984b8a87e569da37bf48c1f258a77b9660d178a16eca0444675cc148412b
MD5 97f90c5eac36a57d1301a56ae4baeefc
BLAKE2b-256 981fdf1d5e3311c6e703e053c8a953a1594a7fc599bbb33cfa869b7fce6171ec

See more details on using hashes here.

Provenance

The following attestation bundles were made for rdchiral_plus-0.3.1-cp311-cp311-win_amd64.whl:

Publisher: publish.yml on denovochem/rdchiral_plus

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file rdchiral_plus-0.3.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for rdchiral_plus-0.3.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 256cce0faa87adc0df6772a1e0f8db62ff8b7b7f7df9bb4082563fe232b5a098
MD5 66f3b43215d37bec9d0d9b0e1b059abd
BLAKE2b-256 c6a18c195414c701ab13c5ca7d9e71f67ed7d95bc3d881b6aa58652f7b3142d2

See more details on using hashes here.

Provenance

The following attestation bundles were made for rdchiral_plus-0.3.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl:

Publisher: publish.yml on denovochem/rdchiral_plus

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file rdchiral_plus-0.3.1-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for rdchiral_plus-0.3.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dd64b24c3d3539ab414bbbee7b97a9a105f08679e8babf6e856c1c3e888b1145
MD5 d4552b85308337ce049d5da243af6a16
BLAKE2b-256 ecd003637bf82bfad230866c1281bcaf4e7f4e0deabc553bc1d36020d6181edd

See more details on using hashes here.

Provenance

The following attestation bundles were made for rdchiral_plus-0.3.1-cp311-cp311-macosx_11_0_arm64.whl:

Publisher: publish.yml on denovochem/rdchiral_plus

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file rdchiral_plus-0.3.1-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for rdchiral_plus-0.3.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 16cae66400f932cbd2ab3a7dbeb39763309709914f8814533edacb5dc7a92df7
MD5 4b9927d8863e7bcca2230fe928f5a6a6
BLAKE2b-256 c9d05ee1565adc73f911a56ec0fadf8a7df1da17b1b00a027ade6ba952d60a40

See more details on using hashes here.

Provenance

The following attestation bundles were made for rdchiral_plus-0.3.1-cp310-cp310-win_amd64.whl:

Publisher: publish.yml on denovochem/rdchiral_plus

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file rdchiral_plus-0.3.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for rdchiral_plus-0.3.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 0d5cca420314e350b1d4fe33b29c90f06c5e5b4b86dda4a9339ecf1fe6c3bb18
MD5 bf4a34dffde73afa834d8fc0af756a28
BLAKE2b-256 182196de5cfed8264958400a56c198ce3483ac3f83c6067fb8f41a979a06f401

See more details on using hashes here.

Provenance

The following attestation bundles were made for rdchiral_plus-0.3.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl:

Publisher: publish.yml on denovochem/rdchiral_plus

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file rdchiral_plus-0.3.1-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for rdchiral_plus-0.3.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e72fe6733d177caa99527b918fc48b1a6a8ab22db6723a017be47dc4c9f5d032
MD5 35eab2d3a021d47424f93a81339ea6c6
BLAKE2b-256 72d3cf1de78fcf24dfd508cc09510eac1ca1135a37b5acef7bc0ce3b5cde9778

See more details on using hashes here.

Provenance

The following attestation bundles were made for rdchiral_plus-0.3.1-cp310-cp310-macosx_11_0_arm64.whl:

Publisher: publish.yml on denovochem/rdchiral_plus

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page