How bramvdfange/bpexi works
Spectraculair is a web application for uploading IR, UV-VIS, H-NMR and 13C-NMR spectra, then visualizing, preprocessing and analyzing them with PCA. Users work through a React dashboard; its controls send requests to Django REST endpoints, which parse data, persist spectra and processing results, and return data for charts and exports. The README documents the wider feature set; connections for unsampled backend details are limited to documented or indexed relationships, rather than inferred call chains.
Main entry points: api_views.py API Handlers · DashboardPage.jsx Dashboard · Sidebar.jsx Workflow Controls · ChartCard.jsx Analysis Panel
Components 19
Dashboard UI
- Dashboard
_internal/bpexi_project/bpexi_project/frontend/src/pages/DashboardPage.jsx - Workflow Controls
_internal/bpexi_project/bpexi_project/frontend/src/components/Sidebar.jsx - Spectrum Upload
_internal/bpexi_project/bpexi_project/frontend/src/components/UploadDropzone.jsx - Preprocessing Controls
_internal/bpexi_project/bpexi_project/frontend/src/components/PreprocessingPanel.jsx - PCA Settings
_internal/bpexi_project/bpexi_project/frontend/src/components/PCASettings.jsx - Chart View
_internal/bpexi_project/bpexi_project/frontend/src/components/RawDataView.jsx - PCA Plots
_internal/bpexi_project/bpexi_project/frontend/src/components/PCAView.jsx - Analysis Panel
_internal/bpexi_project/bpexi_project/frontend/src/components/ChartCard.jsx - PDF Export
_internal/bpexi_project/bpexi_project/frontend/src/utils/exportToPDF.js
API and Workflow
- API Routes
_internal/bpexi_project/bpexi_app/api_urls.py - API Handlers
_internal/bpexi_project/bpexi_app/api_views.py - Template Upload Views
_internal/bpexi_project/bpexi_app/views.py - JSON Serializers
_internal/bpexi_project/bpexi_app/serializers.py
Spectral Analysis
- Parsing and Processing
_internal/bpexi_project/bpexi_app/utils/processing_script.py
Persisted Data
- Dataset Records
_internal/bpexi_project/bpexi_app/models.py - Spectra and Metadata
_internal/bpexi_project/bpexi_app/models.py - Processed Results
_internal/bpexi_project/bpexi_app/models.py - PCA Results
_internal/bpexi_project/bpexi_app/models.py
Other components
- Analyst
Connections 22
- Analyst → Dashboard: uses
- Dashboard → Workflow Controls: renders
_internal/bpexi_project/bpexi_project/frontend/src/pages/DashboardPage.jsx - Dashboard → Analysis Panel: renders
_internal/bpexi_project/bpexi_project/frontend/src/pages/DashboardPage.jsx - Workflow Controls → Spectrum Upload: renders
_internal/bpexi_project/bpexi_project/frontend/src/components/Sidebar.jsx - Workflow Controls → Preprocessing Controls: renders
_internal/bpexi_project/bpexi_project/frontend/src/components/Sidebar.jsx - Workflow Controls → PCA Settings: renders
_internal/bpexi_project/bpexi_project/frontend/src/components/Sidebar.jsx - Analysis Panel → Chart View: renders
_internal/bpexi_project/bpexi_project/frontend/src/components/ChartCard.jsx - Analysis Panel → PCA Plots: renders
_internal/bpexi_project/bpexi_project/frontend/src/components/ChartCard.jsx - Analysis Panel → PDF Export: calls
_internal/bpexi_project/bpexi_project/frontend/src/components/ChartCard.jsx - Dashboard → API Handlers: requests
_internal/bpexi_project/bpexi_project/frontend/src/pages/DashboardPage.jsx - API Routes → API Handlers: routes to
_internal/bpexi_project/bpexi_app/api_urls.py - API Handlers → Parsing and Processing: calls parsers
_internal/bpexi_project/bpexi_app/api_views.py - API Handlers → Dataset Records: reads and writes
_internal/bpexi_project/bpexi_app/api_views.py - API Handlers → Spectra and Metadata: reads and writes
_internal/bpexi_project/bpexi_app/api_views.py - API Handlers → Processed Results: writes
_internal/bpexi_project/bpexi_app/api_views.py - API Handlers → PCA Results: writes
_internal/bpexi_project/bpexi_app/api_views.py - API Handlers → JSON Serializers: serializes
_internal/bpexi_project/bpexi_app/api_views.py - Parsing and Processing → PCA Results: calculates
_internal/bpexi_project/bpexi_app/utils/processing_script.py - Template Upload Views → Parsing and Processing: uses
_internal/bpexi_project/bpexi_app/views.py - Template Upload Views → Dataset Records: creates
_internal/bpexi_project/bpexi_app/views.py - Template Upload Views → Spectra and Metadata: writes
_internal/bpexi_project/bpexi_app/views.py - API Handlers → API Routes: exposed by
_internal/bpexi_project/bpexi_app/api_urls.py