PRISM Studio Overview
PRISM Studio is the web-based interface for PRISM. It provides a user-friendly way to manage projects, convert data, validate datasets, and run scoring recipes.
Launching PRISM Studio
python prism-studio.py
Your browser opens to http://localhost:5001. If it doesn’t open automatically, navigate there manually.
Daily health checks (repo root):
# fast sanity check
bash scripts/ci/run_local_smoke.sh
# full required gate
bash scripts/ci/run_runtime_gate.sh
Home Page
The home page shows:
Current Project – The active project (if loaded)
Quick Actions – Common tasks
Recent Projects – Previously opened projects
Getting Started – Links to documentation and workshop
Projects Page
Create New Project
Creates a YODA-structured project:
project_name/
├── dataset_description.json
├── participants.tsv
├── sub-001/
│ └── ... ← PRISM validates here
├── code/ ← Your analysis scripts
├── analysis/ ← Results and derivatives
├── project.json ← Project metadata
├── contributors.json ← Team information
└── CITATION.cff ← Citation file
Fields:
Project Name: Folder name (no spaces, use underscores)
Project Location: Parent directory
Open Existing Project
Load a project by selecting its project.json file or the project folder.
Recent Projects: Click any recent project to quickly reopen it.
Project Metadata
Once a project is loaded, you can edit:
Dataset Description – Name, authors, license
Participants – Demographic variables, NeuroBagel compliance
Settings – Library paths, default modalities
Validator Page
Running Validation
Your project folder is pre-selected
Click Validate
Wait for results (progress shown)
Understanding Results
Results are grouped by severity:
Icon |
Level |
Meaning |
|---|---|---|
❌ |
Error |
Must fix – dataset is invalid |
⚠️ |
Warning |
Should fix – may cause issues |
💡 |
Suggestion |
Could improve – best practices |
Result Details
Click any issue to see:
File path – Which file has the problem
Error code – e.g., PRISM101
Description – What’s wrong
How to fix – Suggested solution
Auto-Fix
Some issues can be fixed automatically:
Click the Auto-Fix button on fixable issues
Review the proposed changes
Apply fixes
BIDS Validation
Toggle Include BIDS Validation to also run the standard BIDS validator. This checks MRI-specific requirements.
Converter Page
Supported Formats
Format |
Extension |
Notes |
|---|---|---|
Excel |
|
Multiple sheets supported |
CSV |
|
Comma-separated |
TSV |
|
Tab-separated |
SPSS |
|
With value labels |
LimeSurvey |
|
Special handling for LS exports |
Conversion Workflow
Select Source File – Browse or drag-and-drop
Preview Data – Check columns and rows
Map Columns:
Select the participant ID column
Choose which columns to include
Set the task name
Convert – Generate PRISM-formatted files
Save to Project – Copy files to your project dataset root
Participants Mapping
For demographic data with custom encodings:
Click Participants Mapping
Define transformation rules
Apply to generate standardized
participants.tsv
See Participants Mapping for details.
Tools
File Management
Renamer by Example: Quickly rename files to PRISM/BIDS format.
Enter an example:
participant_001_task.tsv→sub-001_task-depression_survey.tsvApply the pattern to all similar files
Folder Organizer: Move flat files into subject/session/modality folders.
Survey Export
Survey Generator: Create survey files from scratch or templates.
Survey Customizer: Modify existing surveys:
Add/remove items
Edit response options
Update translations
Library Browser: Browse the official PRISM survey library with 100+ validated instruments.
Recipes & Scoring
Recipe Runner:
Select your dataset
Choose recipes (scoring algorithms)
Run to calculate scores
Export as SPSS (.save) or CSV
Recipe Features:
Sum scores, mean scores, reverse coding
Conditional scoring (subscales)
Custom formulas
Value labels for SPSS
Template Editor
Create and edit survey/biometrics metadata templates:
Items: Questions, response options
Bilingual: German and English text
Schema Validation: Ensures templates are valid
Keyboard Shortcuts
Shortcut |
Action |
|---|---|
|
Save current file |
|
Open project |
|
Run validation |
Quitting PRISM Studio
Click Quit in the navigation bar (red X icon) to:
Save any unsaved changes
Shut down the web server
Close the application
Or press Ctrl+C in the terminal where PRISM Studio is running.