Skip to main content

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

Project description

Development Status :: 3 - Alpha

SMILES featurizer

PyPI package Code style: black PyPI

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


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.

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

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

smilesfeaturizer-0.1.2.tar.gz (19.3 MB view hashes)

Uploaded Source

Built Distribution

smilesfeaturizer-0.1.2-py3-none-any.whl (19.3 MB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page