Skip to main content

Streamlit app to explore chemical clustering!

Project description

Logo ChemCluster

- ChemCluster -

ChemCluster is an interactive web application for cheminformatics and molecular analysis, focusing on forming and visualizing molecular clusters built using Streamlit, RDKit, and scikit-learn.

Final project for the course Practical Programming in Chemistry — EPFL CH-200

📦 Package overview

ChemCluster is an interactive cheminformatics platform developed at EPFL in 2025 as part of the Practical Programming in Chemistry course. It is a user-friendly web application designed to explore and analyze chemical structures, either individually via the formation of conformers or as datasets.

This tool enables users to compute key molecular properties, visualize 2D and 3D structures, and perform clustering based on molecular similarity or conformer geometry. It also offers filtering options to help select clusters matching specific physicochemical criteria.

🌟 Features

  • Load molecule files (.sdf, .mol) or SMILES in .csv format
  • Compute key molecular descriptors (MW, logP, TPSA, H-bond donors/acceptors, etc.)
  • Visualize 2D molecular structures with RDKit
  • Generate 3D conformers and visualize them interactively using Py3Dmol
  • Apply PCA for dimensionality reduction
  • Cluster molecules using KMeans with automatic silhouette score optimization
  • Click to view molecular properties directly from PCA plot
  • Export clusters and molecular data to .csv

🛠️ Installation

  1. Clone the repository:
git clone https://github.com/erubbia/ChemCluster.git
cd ChemCluster
  1. Create and activate the conda environment:
conda env create -f environment.yml
conda activate chemcluster-env
  1. Run the Streamlit application:
streamlit run app.py

📖 Usage

After launching the app, access it via Streamlit’s local interface.

You can:

  • Analyze a single molecule by inputting a SMILES string or drawing the structure
  • Upload a dataset of molecules to perform PCA and clustering
  • Click on any point in the scatter plot to view its structure and properties
  • Use filters to identify clusters with desirable properties (e.g., high LogP, low MW)
  • Export selected clusters as CSV files for further analysis

📂 License

MIT License


👨‍🔬 Developers

  • Elisa Rubbia, Master's student in Molecular and Biological Chemistry at EPFL GitHub - erubbia

  • Romain Guichonnet, Master's student in Molecular and Biological Chemistry at EPFL GitHub - Romainguich

  • Flavia Zabala Perez, Master's student in Molecular and Biological Chemistry at EPFL GitHub - Flaviazab

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

chemcluster-0.1.0.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

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

chemcluster-0.1.0-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file chemcluster-0.1.0.tar.gz.

File metadata

  • Download URL: chemcluster-0.1.0.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.17

File hashes

Hashes for chemcluster-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c9082356d3399fd5e2399b9b71a1bb17fd866b046b9193e420701d318bfb5aea
MD5 df267795c4987196bda7cf7b86c9c625
BLAKE2b-256 551c4f53f69f626160a9638bb721aa2f1151d2319fd50a05185c525e90043e44

See more details on using hashes here.

File details

Details for the file chemcluster-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: chemcluster-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.17

File hashes

Hashes for chemcluster-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c96844522d84aa66809421bc1ce4cc47e965e588f1c636c82c1073747a6f3532
MD5 d420939dd19df3b55614705e351aef54
BLAKE2b-256 7dcd83148652205f97a540f272a7c5a803d156c53f31a5f84449ec3c8b98f453

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