Skip to main content

License Maintenance Workflow GitHub issues GitHub contributors GitHub release PyPI version fury.io versions DOI Documentation Status

GitHub Logo

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.

Installation

$ git clone https://github.com/OBrink/RanDepict.git
$ cd RanDepict 
$ 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

Development

Note We recommend using 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.8). We recommend miniconda3. On 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
$ echo -e "channels:\n - conda-forge\n - nodefaults" > ~/.condarc
$ conda update conda
$ conda install conda-libmamba-solver
$ conda config --set experimental_solver libmamba
$ conda create --name RanDepict python=3.8
$ conda activate RanDepict
# pypi has rdkit so not necessary to install it using conda
# $ conda install -c rdkit rdkit
$ pip install -e ".[dev]" # will install pytest and tox
# To run tests for python 3.8
$ tox -e py38

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 at the examples in our demo notebook. A more detailed documentation is provided here.

Here are some examples of depictions of caffeine without augmentations (left) and with augmentations (right) that were automatically created using RanDepict.

Cite Us

Acknowledgements

More information about our research group

GitHub Logo

Alt

Metadata

Release files for RanDepict 1.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for RanDepict 1.3.0
File Size Uploaded Provenance Actions
RanDepict-1.3.0.tar.gz 53.4 MB Without provenance Details for RanDepict-1.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for RanDepict 1.3.0
File Interpreter ABI Platform Actions
RanDepict-1.3.0-py3-none-any.whl Python 3 none any Details for RanDepict-1.3.0-py3-none-any.whl

Total release size: 106.8 MB

Release files / RanDepict-1.3.0.tar.gz

Download URL RanDepict-1.3.0.tar.gz
Size 53.4 MB
Tags Source
SHA-256 checksum
How to use checksums
824bcaf4e34afe7046a195593dd5216d6da3c5a9c7d841564c7dc0db302acd4c
BLAKE2b-256 checksum
How to use checksums
e098d6a05e416380f37027f877bf0dcb4a747feb0282ff8a7a507aa7fc6af219
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Release files / RanDepict-1.3.0-py3-none-any.whl

Download URL RanDepict-1.3.0-py3-none-any.whl
Size 53.5 MB
Tags Python 3
SHA-256 checksum
How to use checksums
ab28799f1f71bc3d1c138ed1b8071910b382800ed345b14c6e1528b22f73d4b7
BLAKE2b-256 checksum
How to use checksums
c82ce0faa07e0d3acb1f33e26c1f6870869e9da0b5d79814ccf24cf277f7810d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Security for RanDepict 1.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page