RanDepict


NameRanDepict JSON
Version 1.3.0 PyPI version JSON
download
home_pagehttps://github.com/OBrink/RanDepict
SummaryRanDepict is an easy-to-use utility to generate a big variety of chemical structure depictions (random depiction styles and image augmentations).
upload_time2023-09-22 10:00:04
maintainerOtto Brinkhaus, Kohulan Rajan
docs_urlNone
authorOtto Brinkhaus
requires_python>=3.7
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            [![License](https://img.shields.io/badge/License-MIT%202.0-blue.svg)](https://opensource.org/licenses/MIt)
[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-blue.svg)](https://github.com/OBrink/RanDepict/graphs/commit-activity)
![Workflow](https://github.com/OBrink/RanDepict/actions/workflows/ci_pytest.yml/badge.svg)
[![GitHub issues](https://img.shields.io/github/issues/OBrink/RanDepict.svg)](https://GitHub.com/OBrink/RanDepict/issues/)
[![GitHub contributors](https://img.shields.io/github/contributors/OBrink/RanDepict.svg)](https://GitHub.com/OBrink/RanDepict/graphs/contributors/)
[![GitHub release](https://img.shields.io/github/release/OBrink/RanDepict.svg)](https://GitHub.com/OBrink/RanDepict/releases/)
[![PyPI version fury.io](https://badge.fury.io/py/RanDepict.svg)](https://pypi.python.org/pypi/RanDepict/)
![versions](https://img.shields.io/pypi/pyversions/RanDepict.svg)
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.5531702.svg)](https://doi.org/10.5281/zenodo.5531702)
[![Documentation Status](https://readthedocs.org/projects/randepict/badge/?version=latest)](https://randepict.readthedocs.io/en/latest/?badge=latest)

![GitHub Logo](https://github.com/OBrink/RanDepict/blob/main/RanDepict/logo_bg_white-1.png?raw=true)

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

```shell
$ git clone https://github.com/OBrink/RanDepict.git
$ cd RanDepict 
$ python -m pip install -U pip #Upgrade pip
$ pip install .
```

### Alternative
```shell
$ python -m pip install -U pip #Upgrade pip
$ pip install git+https://github.com/OBrink/RanDepict.git
```

### Install from PyPI
```shell
$ 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](https://www.anaconda.com/) or the [Miniconda](https://conda.io/en/latest/miniconda.html) plattforms (Python 3.8). We recommend `miniconda3`. On Linux you can get it with:

```shell
$ wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
$ bash Miniconda3-latest-Linux-x86_64.sh
```

```shell
$ 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: 
```python
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](https://github.com/OBrink/RanDepict/blob/main/examples/RanDepictNotebook.ipynb). A more detailed [documentation is provided here](https://randepict.readthedocs.io/en/latest/).

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

![](caffeine_no_augmentations.gif)   ![](caffeine_augmentations.gif)












## 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

## Acknowledgements

- We would like to thank [M. Isabel Agea](https://github.com/Iagea) and [Tulay Muezzinoglu](https://github.com/tulay) for their valuable contributions.

## More information about our research group

[![GitHub Logo](https://github.com/Kohulan/DECIMER-Image-to-SMILES/blob/master/assets/CheminfGit.png?raw=true)](https://cheminf.uni-jena.de)

![Alt](https://repobeats.axiom.co/api/embed/ed3e9be96b0f41907c027814b77621879557fb47.svg "Repobeats analytics image")

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/OBrink/RanDepict",
    "name": "RanDepict",
    "maintainer": "Otto Brinkhaus, Kohulan Rajan",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "otto.brinkhaus@uni-jena.de, kohulan.rajan@uni-jena.de",
    "keywords": "",
    "author": "Otto Brinkhaus",
    "author_email": "otto.brinkhaus@uni-jena.de, kohulan.rajan@uni-jena.de",
    "download_url": "https://files.pythonhosted.org/packages/e0/98/d6a05e416380f37027f877bf0dcb4a747feb0282ff8a7a507aa7fc6af219/RanDepict-1.3.0.tar.gz",
    "platform": null,
    "description": "[![License](https://img.shields.io/badge/License-MIT%202.0-blue.svg)](https://opensource.org/licenses/MIt)\n[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-blue.svg)](https://github.com/OBrink/RanDepict/graphs/commit-activity)\n![Workflow](https://github.com/OBrink/RanDepict/actions/workflows/ci_pytest.yml/badge.svg)\n[![GitHub issues](https://img.shields.io/github/issues/OBrink/RanDepict.svg)](https://GitHub.com/OBrink/RanDepict/issues/)\n[![GitHub contributors](https://img.shields.io/github/contributors/OBrink/RanDepict.svg)](https://GitHub.com/OBrink/RanDepict/graphs/contributors/)\n[![GitHub release](https://img.shields.io/github/release/OBrink/RanDepict.svg)](https://GitHub.com/OBrink/RanDepict/releases/)\n[![PyPI version fury.io](https://badge.fury.io/py/RanDepict.svg)](https://pypi.python.org/pypi/RanDepict/)\n![versions](https://img.shields.io/pypi/pyversions/RanDepict.svg)\n[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.5531702.svg)](https://doi.org/10.5281/zenodo.5531702)\n[![Documentation Status](https://readthedocs.org/projects/randepict/badge/?version=latest)](https://randepict.readthedocs.io/en/latest/?badge=latest)\n\n![GitHub Logo](https://github.com/OBrink/RanDepict/blob/main/RanDepict/logo_bg_white-1.png?raw=true)\n\nThis 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.\n\n## Usage\n-  To use RanDepict, clone the repository to your local disk and make sure you install all the necessary requirements.\n\n### Installation\n\n```shell\n$ git clone https://github.com/OBrink/RanDepict.git\n$ cd RanDepict \n$ python -m pip install -U pip #Upgrade pip\n$ pip install .\n```\n\n### Alternative\n```shell\n$ python -m pip install -U pip #Upgrade pip\n$ pip install git+https://github.com/OBrink/RanDepict.git\n```\n\n### Install from PyPI\n```shell\n$ pip install RanDepict\n```\n\n### Development\n\n> **Note**\n> We recommend using RanDepict inside a Conda environment to facilitate the installation of the dependencies.\n- Conda can be downloaded as part of the [Anaconda](https://www.anaconda.com/) or the [Miniconda](https://conda.io/en/latest/miniconda.html) plattforms (Python 3.8). We recommend `miniconda3`. On Linux you can get it with:\n\n```shell\n$ wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh\n$ bash Miniconda3-latest-Linux-x86_64.sh\n```\n\n```shell\n$ echo -e \"channels:\\n - conda-forge\\n - nodefaults\" > ~/.condarc\n$ conda update conda\n$ conda install conda-libmamba-solver\n$ conda config --set experimental_solver libmamba\n$ conda create --name RanDepict python=3.8\n$ conda activate RanDepict\n# pypi has rdkit so not necessary to install it using conda\n# $ conda install -c rdkit rdkit\n$ pip install -e \".[dev]\" # will install pytest and tox\n# To run tests for python 3.8\n$ tox -e py38\n```\n\n### Basic usage: \n```python\nfrom RanDepict import RandomDepictor\n\nsmiles = \"CN1C=NC2=C1C(=O)N(C(=O)N2C)C\"\n\nwith RandomDepictor() as depictor:\n    image = depictor(smiles)\n``` \n\nHave a look at the [examples in our demo notebook](https://github.com/OBrink/RanDepict/blob/main/examples/RanDepictNotebook.ipynb). A more detailed [documentation is provided here](https://randepict.readthedocs.io/en/latest/).\n\nHere are some examples of depictions of caffeine without augmentations (left) and with augmentations (right) that were automatically created using RanDepict. \n\n![](caffeine_no_augmentations.gif)   ![](caffeine_augmentations.gif)\n\n\n\n\n\n\n\n\n\n\n\n\n## Cite Us\n\n- 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\n\n## Acknowledgements\n\n- We would like to thank [M. Isabel Agea](https://github.com/Iagea) and [Tulay Muezzinoglu](https://github.com/tulay) for their valuable contributions.\n\n## More information about our research group\n\n[![GitHub Logo](https://github.com/Kohulan/DECIMER-Image-to-SMILES/blob/master/assets/CheminfGit.png?raw=true)](https://cheminf.uni-jena.de)\n\n![Alt](https://repobeats.axiom.co/api/embed/ed3e9be96b0f41907c027814b77621879557fb47.svg \"Repobeats analytics image\")\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "RanDepict is an easy-to-use utility to generate a big variety of chemical structure depictions (random depiction styles and image augmentations).",
    "version": "1.3.0",
    "project_urls": {
        "Homepage": "https://github.com/OBrink/RanDepict"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c82ce0faa07e0d3acb1f33e26c1f6870869e9da0b5d79814ccf24cf277f7810d",
                "md5": "dbbff39a6a715de959675fffa8156c44",
                "sha256": "ab28799f1f71bc3d1c138ed1b8071910b382800ed345b14c6e1528b22f73d4b7"
            },
            "downloads": -1,
            "filename": "RanDepict-1.3.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "dbbff39a6a715de959675fffa8156c44",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 53456909,
            "upload_time": "2023-09-22T09:59:58",
            "upload_time_iso_8601": "2023-09-22T09:59:58.747721Z",
            "url": "https://files.pythonhosted.org/packages/c8/2c/e0faa07e0d3acb1f33e26c1f6870869e9da0b5d79814ccf24cf277f7810d/RanDepict-1.3.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e098d6a05e416380f37027f877bf0dcb4a747feb0282ff8a7a507aa7fc6af219",
                "md5": "c063ead79104dd28cd01a8e194d7a199",
                "sha256": "824bcaf4e34afe7046a195593dd5216d6da3c5a9c7d841564c7dc0db302acd4c"
            },
            "downloads": -1,
            "filename": "RanDepict-1.3.0.tar.gz",
            "has_sig": false,
            "md5_digest": "c063ead79104dd28cd01a8e194d7a199",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 53380505,
            "upload_time": "2023-09-22T10:00:04",
            "upload_time_iso_8601": "2023-09-22T10:00:04.260399Z",
            "url": "https://files.pythonhosted.org/packages/e0/98/d6a05e416380f37027f877bf0dcb4a747feb0282ff8a7a507aa7fc6af219/RanDepict-1.3.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-09-22 10:00:04",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "OBrink",
    "github_project": "RanDepict",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "tox": true,
    "lcname": "randepict"
}
        
Elapsed time: 0.14649s