Skip to main content

Development Status :: 3 - Alpha

SMILES featurizer

PyPI package Code style: black PyPI

A Python package that automatically generates derived feature variables from a column with SMILES (Simplified Molecular-Input Line-Entry System)

The python package, SMILES Featurizer helps quickly and painlessly explore the baseline and key features for many projects that use SMILES strings. It's still in the development phase, and there are some errors with certain SMILES strings due to dependencies in the package. There are no scheduled regular updates, and I welcome pull requests at any time. I intentionally did not encapsulate it highly as a class, and I maintain it in the form of functions. This is because it is based on the processing of a single data frame and because the service is highly likely to be modified.


Install

$ pip install smilesfeaturizer
$ pip install git+https://github.com/dsdanielpark/SMILES-featurizer.git

Usage Open In Colab

The dataset assumes the presence of SMILES strings in a column named SMILES. See tutorial notebook.

Feature generation

  • Create fingerprint columns for SMILES representations based on various packages RDKit, Mol2Vec, DataMol, MolFeat, Scikit-Learn.

    from smilesfeaturizer import generate_smiles_feature
    
    df = generate_smiles_feature(df) # default method="simple"
    
    df = generate_smiles_feature(df, method="specific") 
    

Create dashboard

  • Through the dashboard, you can determine which compounds exhibit what prediction performance.

    from smilesfeaturizer import create_inline_dash_dashboard
    
    # Load your DataFrame and specify the columns
    true_col = 'pIC50'
    predicted_col = 'predicted_pIC50'
    
    # Create and run the Dash dashboard
    create_inline_dash_dashboard(df, true_col, predicted_col)
    

Save reporting images

  • Molecular images, basic information, and the prediction versus actual values are visually represented in bar graphs for easy viewing.
    from smilesfeaturizer import smiles_insight_plot
    
    selected_metric = 'RMSE'  # Choose the error metric you want to display
    true_col = 'pIC50'  # Replace with your true column name
    predicted_col = 'predicted_pIC50'  # Replace with your predicted column name
    smiles_insight_plot(df[:1], true_col, predicted_col, selected_metric, 'output_folder', show=True)
    

License

Apache 2.0

Bugs and Issues

Sincerely grateful for any reports on new features or bugs. Your valuable feedback on the code is highly appreciated.

Contacts


Copyright (c) 2023 MinWoo Park, South Korea

Metadata

Release files for smilesfeaturizer 0.1.3

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

Source distribution (sdist)

Source distribution for smilesfeaturizer 0.1.3
File Size Uploaded Provenance Actions
smilesfeaturizer-0.1.3.tar.gz 19.3 MB Without provenance Details for smilesfeaturizer-0.1.3.tar.gz

Built distribution (wheel)

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

Total release size: 38.6 MB

Release files / smilesfeaturizer-0.1.3.tar.gz

Download URL smilesfeaturizer-0.1.3.tar.gz
Size 19.3 MB
Tags Source
SHA-256 checksum
How to use checksums
c9abc16b66011fc9b3bfd1954f3d08b107d07694a68ff43518516ba8f0acd9c8
BLAKE2b-256 checksum
How to use checksums
1fce58b7e2d6657f7344d10c936069d52aeda6b8a069bf3225d1c355b7f262fd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.12

Release files / smilesfeaturizer-0.1.3-py3-none-any.whl

Download URL smilesfeaturizer-0.1.3-py3-none-any.whl
Size 19.3 MB
Tags Python 3
SHA-256 checksum
How to use checksums
8a1fc03f0c3665afdc6873bccb3becba0a0e65f4897554fcd8009b4be81d6b4d
BLAKE2b-256 checksum
How to use checksums
abd13f2fd9abb7734b324c92da1815acdab98a872033df8be542fc349a812b45
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.12

Security for smilesfeaturizer 0.1.3

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