Motion Correction & Segmentation (GUI)
Web App
The M2SD Web App provides a streamlined interface for running motion correction and segmentation analysis on imaging data. The app is built using Streamlit and can be run as a system service for continuous availability.
Requirements
- configured SQLJobScheduler
- System service setup (via systemd)
- a port available for web access
Key Features
- Path Search & Selection: Easily search and select data paths from a SQLite database cache
- Session Processing: Choose to process all sessions or select specific ones
- Main Options:
- Motion Correction (MC)
- Segmentation (SG)
- Overwrite existing files
- Advanced Settings:
- Concatenate files
- Compute metrics
- Export post-segmentation residuals
- Handle separate channels
- Motion correction iterations
Job Scheduling System
The app uses SQL Job Scheduler to manage analysis tasks:
- Job Queue: When analysis is initiated, jobs are added to a SQL-based queue
- Email Notifications: Users must provide an email address to receive notifications about:
- Job start
- Analysis progress
- Completion status
- Any errors encountered
Access
The web app can be accessed at: http://[server-address]:[port]/m2sd
. Based on what is in Application settings, the default port is 8503
.
Usage Flow
- Create or refresh database of eligible paths for analysis
- Search and select sessions to analyze
- Choose sessions to process
- Configure analysis options
- Click "Run Analysis" to queue jobs
- Monitor progress via email notifications