DeepSMILES
This Python module can convert well-formed SMILES (that is, as writen by a cheminformatics toolkit) to DeepSMILES. It also does the reverse conversion.
Install the latest version with:
pip install --upgrade deepsmiles
DeepSMILES is a SMILES-like syntax suited to machine learning. Rings are indicated using a single symbol instead of two, while branches do not use matching parentheses but rather use a right parenthesis as a ‘pop’ operator.
For example, benzene is c1ccccc1 in SMILES but cccccc6 in DeepSMILES (where the 6 indicates the ring size). As a branch example, the SMILES C(Br)(OC)I can be converted to the DeepSMILES CBr)OC))I. For more information, please see the corresponding preprint.
The library is used as follows:
import deepsmiles
print("DeepSMILES version: %s" % deepsmiles.__version__)
converter = deepsmiles.Converter(rings=True, branches=True)
print(converter) # record the options used
encoded = converter.encode("c1cccc(C(=O)Cl)c1")
print("Encoded: %s" % encoded)
try:
decoded = converter.decode(encoded)
except deepsmiles.DecodeError as e:
decoded = None
print("DecodeError! Error message was '%s'" % e.message)
if decoded:
print("Decoded: %s" % decoded)
Metadata
Release files for deepsmiles 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| deepsmiles-1.0.1.tar.gz | 8.0 kB | Without provenance | Details for deepsmiles-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| deepsmiles-1.0.1-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for deepsmiles-1.0.1-py2.py3-none-any.whl |
Total release size: 20.6 kB
Release files / deepsmiles-1.0.1.tar.gz
| Download URL | deepsmiles-1.0.1.tar.gz |
|---|---|
| Size | 8.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
83c12dfd51684aa6fb69e64fbded890af1ab34b046eeb9808361dde6d0a5bd0e
|
|
BLAKE2b-256 checksum How to use checksums |
86f52ab36f143a1f34c2ff0ad558f09fa1cf226e58d18ffab616be80bc4b5dff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.3.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.3
|
Release files / deepsmiles-1.0.1-py2.py3-none-any.whl
| Download URL | deepsmiles-1.0.1-py2.py3-none-any.whl |
|---|---|
| Size | 12.6 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
e78a5967868634d9b58a1bb9f5deeaa266a179f27b37fbd631ae53ea5b070ba1
|
|
BLAKE2b-256 checksum How to use checksums |
c4aac043624e7cdac49811725dfc139423b5092bbf7cccb5a346d63ea0f364c1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.3.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.3
|
Security for deepsmiles 1.0.1
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.