Skip to main content

A reaction-level embedding descriptor.

Project description

RXNEmb

PyPI - Downloads Python version
License: MIT

RXNEmb is a novel reaction-level embedding descriptor generated via the pre-trained model RXNGraphormer. It captures chemical bond formation and cleavage patterns, enabling data-driven reaction classification, mechanistic interpretation, and reaction space visualization.

🚀 Overview

The preprint paper is available at https://arxiv.org/pdf/2601.03689 .

🔧 Installation

pip install rxnemb

💡 Generate RXNEmb Descriptor

Basic Usage

Example 1: Generate reaction embeddings from SMILES list

from rxnemb import RXNEMB

generator = RXNEMB()

# prepare reaction SMILES
# here are some examples
rxn_smiles_lst = [
    "O=C(O)c1ccccc1.[Cl-]>>O=C(Cl)c1ccccc1",  
    "C1CCOC1.C1CCOC1.O.O=C(O)C(Br)c1ccccc1>>OCC(Br)c1ccccc1",
    # ... more 
]

# output
rxn_emb = generator.gen_rxn_emb(rxn_smiles_lst)
print(rxn_emb.shape) # torch.Size([2, 768])

Use Customized Model

If you want to train your own model from scratch, please refer to the instructions in the RXNGraphormer repository.

After training is done, you can load the model by specifying the path to the directory containing your model weights and configuration file:

from rxnemb import RXNEMB

generator = RXNEMB('/path/to/your/own/model')

📚 Citation

If you use RXNEmb in your research, please cite:

@misc{RXNEmb_liu2026,
      title={A Pre-trained Reaction Embedding Descriptor Capturing Bond Transformation Patterns}, 
      author={Weiqi Liu and Fenglei Cao and Yuan Qi and Li-Cheng Xu},
      date = {2026-01-07},
      eprint={2601.03689},
      archivePrefix={arXiv},
      primaryClass={cs.LG},
      doi = {10.48550/arXiv.2601.03689},
      url={https://arxiv.org/abs/2601.03689}, 
      pubstate = {prepublished},
}

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

rxnemb-1.0.1.tar.gz (55.3 MB view details)

Uploaded Source

Built Distribution

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

rxnemb-1.0.1-py3-none-any.whl (55.3 MB view details)

Uploaded Python 3

File details

Details for the file rxnemb-1.0.1.tar.gz.

File metadata

  • Download URL: rxnemb-1.0.1.tar.gz
  • Upload date:
  • Size: 55.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for rxnemb-1.0.1.tar.gz
Algorithm Hash digest
SHA256 ef9bb964a266f7cd1d4694c1d5016abd7c239cccab494de5e56986a6358029c4
MD5 f2d595c17b05c2521d6eb8c97ceafa05
BLAKE2b-256 fa7760512cd3ef86cd17edc0276b4e68f2ab618caca90d85adf5329d77bc6b18

See more details on using hashes here.

File details

Details for the file rxnemb-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: rxnemb-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 55.3 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for rxnemb-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 61c4ba7ebb5d540eb413aa0a45cca9b0407ba017e71279d806a57ffde7ccb125
MD5 be7b7455b38c721f9b49113a6ee5ca4d
BLAKE2b-256 19ee2fa17c1f78c98ff14b93d5924d271219ee07cc265f61b95b0e32457fe11a

See more details on using hashes here.

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