RanDepict is an easy-to-use utility to generate a big variety of chemical structure depictions (random depiction styles and image augmentations).
Project description
This repository contains RanDepict, an easy-to-use utility to generate a big variety of chemical structure depictions (random depiction styles and image augmentations) based on RDKit, CDK, Indigo and PIKAChU.
Usage
- To use RanDepict, clone the repository to your local disk and make sure you install all the necessary requirements.
We recommend to use RanDepict inside a Conda environment to facilitate the installation of the dependencies.
- Conda can be downloaded as part of the Anaconda or the Miniconda plattforms (Python 3.7). We recommend to install miniconda3. Using Linux you can get it with:
$ wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
$ bash Miniconda3-latest-Linux-x86_64.sh
Installation
$ git clone https://github.com/OBrink/RanDepict.git
$ cd RanDepict
$ conda create --name RanDepict python=3.7
$ conda activate RanDepict
$ conda install -c rdkit rdkit
$ conda install pip
$ python -m pip install -U pip #Upgrade pip
$ pip install .
Alternative
$ python -m pip install -U pip #Upgrade pip
$ pip install git+https://github.com/OBrink/RanDepict.git
Install from PyPI
$ pip install RanDepict
Basic usage:
from RanDepict import RandomDepictor
smiles = "CN1C=NC2=C1C(=O)N(C(=O)N2C)C"
with RandomDepictor() as depictor:
image = depictor(smiles)
Have a look in the RanDepictNotebook.ipynb for more examples and a more detailed documentation check here.
Here are some examples of depictions of caffeine without augmentations (left) and with augmentations (right) that were automatically created using RanDepict.
Cite Us
- Brinkhaus, H.O., Rajan, K., Zielesny, A. et al. RanDepict: Random chemical structure depiction generator. J Cheminform 14, 31 (2022). https://doi.org/10.1186/s13321-022-00609-4
More information about our research group
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
RanDepict-1.0.9.tar.gz
(34.8 MB
view hashes)
Built Distribution
RanDepict-1.0.9-py3-none-any.whl
(34.9 MB
view hashes)
Close
Hashes for RanDepict-1.0.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb7cd7c0b5e9fe9b91ea8e597fcc5a421fbcbca9478cb3173ad9dfb99e440a23 |
|
MD5 | 927d6527d86ce65ff10423b21011435b |
|
BLAKE2b-256 | 4718d002a72f1bdb023a67c7a6d9f1f22c633e5f185e68de6ac6c560642e0b57 |