How kochgroup/chi-som works
ChI-SOM trains self-organizing maps for molecular datasets, then supports analysis through a desktop viewer or headless plots. The main workflow is to create or load fingerprint datasets, train on CPU or CUDA, derive map outputs, and explore or visualize the results. The graph preserves documented large-dataset storage, interactive filtering and inspection, and command-line viewing. Some relationships are based on the SOURCE INDEX’s import references rather than full excerpts; links among unsampled subsystems are omitted where their runtime wiring is uncertain.
Main entry points: __init__.py Python API · _som.py SOM model · gui.py Interactive viewer · datastores.py HDF5 datasets
Components 19
SOM training
- SOM model
src/chisom/_som.py - CPU trainer
src/chisom/_core/cpu/trainer.py - Distance functions
src/chisom/_core/cpu/distance.py - Neighborhood kernels
src/chisom/_core/cpu/kernel.py - U-Matrix
src/chisom/_core/cpu/umatrix.py - CUDA trainer
src/chisom/_core/cuda/trainer.py - U-distance graph
src/chisom/_core/graph.py - SOM analysis
src/chisom/analysis.py
Molecular data
- Dataset creator
src/chisom/io/datastore_creation.py - Dataset factories
src/chisom/io/datastore_factories.py - HDF5 datasets
src/chisom/io/datastores.py - Dataset loading
src/chisom/io/loading.py
Visualization and exploration
- Map rendering
src/chisom/_core/render.py - Headless plotting
src/chisom/io/plotting.py - Viewer models
src/chisom/_interface/models.py - Interactive viewer
src/chisom/_interface/gui.py
User interfaces
- Python API
src/chisom/__init__.py - View command
src/chisom/cli.py
Other components
- Researcher
Connections 25
- Researcher → Python API: calls
- Python API → SOM model: exports
src/chisom/__init__.py - Python API → SOM analysis: exports
src/chisom/__init__.py - Python API → Headless plotting: exports
src/chisom/__init__.py - Python API → Interactive viewer: exports
src/chisom/__init__.py - SOM model → CPU trainer: selects backend
src/chisom/_som.py - SOM model → CUDA trainer: selects backend
src/chisom/_som.py - CPU trainer → Distance functions: uses
src/chisom/_core/cpu/trainer.py - CPU trainer → Neighborhood kernels: uses
src/chisom/_core/cpu/trainer.py - SOM model → U-Matrix: computes
src/chisom/_som.py - SOM model → U-distance graph: builds
src/chisom/_som.py - Dataset creator → Dataset factories: uses
src/chisom/io/datastore_creation.py - Researcher → Dataset creator: creates dataset
- Dataset loading → HDF5 datasets: opens
src/chisom/io/loading.py - View command → Dataset loading: loads data
src/chisom/cli.py - View command → Python API: uses
src/chisom/cli.py - Headless plotting → Map rendering: uses
src/chisom/io/plotting.py - Headless plotting → HDF5 datasets: reads
src/chisom/io/plotting.py - Viewer models → Map rendering: uses
src/chisom/_interface/models.py - Viewer models → HDF5 datasets: reads
src/chisom/_interface/models.py - Interactive viewer → Viewer models: uses
src/chisom/_interface/gui.py - Interactive viewer → Map rendering: uses
src/chisom/_interface/gui.py - Interactive viewer → Dataset loading: loads data
src/chisom/_interface/gui.py - Interactive viewer → HDF5 datasets: reads
src/chisom/_interface/gui.py - Researcher → View command: opens viewer