Skip to main content

STOUT V2.0 - Smiles TO iUpac Translator Version 2.0

Project description

License Maintenance Workflow GitHub issues GitHub contributors tensorflow GitHub release PyPI version fury.io versions

GitHub Logo

STOUT V2.0 - Smiles TO iUpac Translator Version 2.0

This repository contains STOUT-V2, SMILES to IUPAC name translator using transformers. STOUT-V2 can translate SMILES to IUPAC names and IUPAC names back to a valid SMILES string. STOUT-V1 is already published and for more details check here

OS-Support: Linux, MACOS and Windows (On Windows you can run STOUT inside the Ubuntu shell). But It is highly recommended to use a Linux system.

Usage

We suggest to use STOUT inside a Conda environment, which makes the dependencies to install easily.

  • 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

How to install STOUT

Install directly using PyPi

pip install STOUT-pypi

In a conda environment

conda create --name STOUT python=3.8 
conda activate STOUT
conda install -c decimer stout-pypi

Staright from the repository

pip install git+https://github.com/Kohulan/Smiles-TO-iUpac-Translator.git

Simple usage

from STOUT import translate_forward, translate_reverse

# SMILES to IUPAC name translation

SMILES = "CN1C=NC2=C1C(=O)N(C(=O)N2C)C"
IUPAC_name = translate_forward(SMILES)
print("IUPAC name of "+SMILES+" is: "+IUPAC_name)

# IUPAC name to SMILES translation

IUPAC_name = "1,3,7-trimethylpurine-2,6-dione"
SMILES = translate_reverse(IUPAC_name)
print("SMILES of "+IUPAC_name+" is: "+SMILES)

Happy Brewing... 🍺

How to cite us?

Rajan, K., Zielesny, A. & Steinbeck, C. STOUT: SMILES to IUPAC names using neural machine translation. J Cheminform 13, 34 (2021). https://doi.org/10.1186/s13321-021-00512-4

Acknowledgement

  • Research supported with Cloud TPUs from Google's TPU Research Cloud (TRC)

STOUT-V2 is part of DECIMER project

GitHub Logo

More about Us

GitHub Logo

Alt

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

STOUT-pypi-2.0.5.tar.gz (23.3 kB view details)

Uploaded Source

Built Distribution

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

STOUT_pypi-2.0.5-py3-none-any.whl (20.1 kB view details)

Uploaded Python 3

File details

Details for the file STOUT-pypi-2.0.5.tar.gz.

File metadata

  • Download URL: STOUT-pypi-2.0.5.tar.gz
  • Upload date:
  • Size: 23.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for STOUT-pypi-2.0.5.tar.gz
Algorithm Hash digest
SHA256 4bba9cccaf79e898b4e97e4bfa1a079633b9ce9865db65a051a2424884c667a7
MD5 59daa3d1f4e43e2737bf20750a485b30
BLAKE2b-256 a98f3470f2a973629cd26bce5520724d24955680e0d10a2337cc397027af1d69

See more details on using hashes here.

File details

Details for the file STOUT_pypi-2.0.5-py3-none-any.whl.

File metadata

  • Download URL: STOUT_pypi-2.0.5-py3-none-any.whl
  • Upload date:
  • Size: 20.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for STOUT_pypi-2.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 b002d0254b22073255c3563a9438b87012eeec0344e0a6183bffca26a15ce775
MD5 618278942f22736271d189e761361973
BLAKE2b-256 2e5d4042638e326ef0e9fcb9f556406607762afbb3c6f9035692ff71588b584f

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