PPMI Skill (Dataset-Orchestration Layer)
Overview
ppmi-skill is the NeuroClaw orchestration skill for the Parkinson's Progression Markers Initiative (PPMI) dataset, launched by The Michael J. Fox Foundation.
It strictly follows the NeuroClaw hierarchical design principles:
- This skill only describes WHAT needs to be done and which tool skill to delegate to.
- It contains no implementation code or concrete commands.
- All concrete execution is delegated to existing base/tool skills via
claw-shell.
- Companion scripts in
scripts/ provide reference implementations for BIDS validation, phenotype extraction, and QC.
Core workflow (never bypassed):
- Identify input PPMI data and target modalities.
- Generate a numbered execution plan clearly stating WHAT needs to be done and which tool skill will handle each step.
- Present the full plan, estimated runtime, resource requirements, and risks to the user and wait for explicit confirmation ("YES" / "execute" / "proceed").
- On confirmation, delegate every step to the appropriate skill via
claw-shell.
- After execution, save all outputs in a clean directory structure (
ppmi_output/).
Research use only.
Quick Reference
| Task |
What needs to be done |
Delegate to |
Expected output |
| BIDS validation |
Validate PPMI BIDS structure |
scripts/validate_ppmi.py |
Validation report |
| sMRI processing |
Brain extraction, tissue segmentation |
smri-skill |
smri_output/ derivatives |
| rs-fMRI processing |
Preprocessing, denoising, connectivity |
fmri-skill |
fmri_output/ connectivity |
| dMRI processing |
Diffusion preprocessing, tensor metrics |
dwi-skill |
dwi_output/ metrics |
| Phenotype extraction |
Motor scores, cognitive, biomarkers |
scripts/extract_ppmi_phenotype.py |
Merged phenotype CSV |
| QC summary |
Per-subject quality control |
scripts/ppmi_qc_summary.py |
QC summary + exclusion list |
Dataset Characteristics
- Cohort: ~2,000+ participants
- PD patients: Parkinson's disease (early stage, drug-naive)
- Prodromal: REM sleep behavior disorder, hyposmia
- Healthy controls: Age-matched
- Scanner: 3T Siemens (multi-site)
- Modalities: T1w sMRI, rs-fMRI, dMRI/DTI, DaTscan SPECT
- Clinical: MDS-UPDRS, MoCA, UPSIT, REM sleep, DAT imaging
- Access: LONI IDA (ida.loni.usc.edu), PPMI data portal
- Format: BIDS-compliant (community conversion)
- Reference: Marek et al. (2011), Lancet Neurology
Supported Modalities
| Modality |
Description |
Details |
| T1w |
High-resolution structural MRI |
1mm isotropic, substantia nigra volumetry |
| rs-fMRI |
Resting-state functional MRI |
Basal ganglia connectivity |
| dMRI |
Diffusion-weighted imaging |
DTI, nigrostriatal tract integrity |
| DaTscan |
SPECT dopamine transporter |
Striatal binding ratios |
PPMI Clinical Measures
| Measure |
Description |
Domain |
| MDS-UPDRS |
Movement Disorder Society Unified PD Rating Scale |
Motor function |
| MoCA |
Montreal Cognitive Assessment |
Global cognition |
| UPSIT |
University of Pennsylvania Smell Identification Test |
Olfaction |
| RBD |
REM Sleep Behavior Disorder screening |
Sleep |
| H&Y |
Hoehn and Yahr staging |
Disease stage |
| DAT |
Dopamine transporter binding (SPECT) |
Dopaminergic function |
BIDS Preparation
Script: scripts/validate_ppmi.py
Validates PPMI BIDS structure and generates a compliance report.
python skills/ppmi-skill/scripts/validate_ppmi.py \
--input /path/to/PPMI/bids \
--output /path/to/ppmi_output/qc/bids_validation.csv
Features:
- BIDS directory structure validation
- Diagnostic group completeness (PD, prodromal, control)
- Modality completeness (T1w, rs-fMRI, dMRI)
- Clinical measure availability check
Core Workflow (Never Bypassed)
- Identify user target: full PPMI processing, imaging subset, phenotype extraction, or BIDS validation only.
- Generate a numbered plan with tools, outputs, runtime, storage, and risks.
- Wait for explicit confirmation (
YES / execute / proceed).
- On confirmation, run BIDS validation using
scripts/validate_ppmi.py.
- Delegate to
smri-skill for structural MRI processing.
- Delegate to
fmri-skill for rs-fMRI processing.
- Delegate to
dwi-skill for dMRI processing.
- If phenotype extraction is requested, run
scripts/extract_ppmi_phenotype.py.
- If QC summary is requested, run
scripts/ppmi_qc_summary.py.
- Save outputs into
ppmi_output/.
Modality Processing Delegation
| Modality |
Delegated skill |
Typical tasks |
Main outputs |
| sMRI (T1w) |
smri-skill |
brain extraction, tissue segmentation |
smri_output/ derivatives |
| rs-fMRI |
fmri-skill |
preprocessing, denoising, connectivity |
fmri_output/ connectivity |
| dMRI |
dwi-skill |
diffusion preprocessing, tensor metrics |
dwi_output/ metrics |
Standard Output Layout
ppmi_output/
├── bids/ # BIDS-staged data (or validation report)
├── smri/ # Structural MRI derivatives
├── fmri/ # Functional MRI derivatives (rs-fMRI connectivity)
├── dwi/ # Diffusion MRI derivatives (DTI metrics)
├── phenotype/ # Merged phenotype tables (motor, cognitive, biomarkers)
├── qc/ # QC summaries and exclusion lists
└── logs/ # Processing logs
Benchmark Adapter Guidance
For benchmark-style prompts, do not force the full orchestration when the task only asks for local PPMI data validation.
- If the task starts from PPMI data already present on disk and only asks for BIDS validation:
- Skip the download stage
- Default to the narrow path
local PPMI discovery -> BIDS validation -> report
- In benchmark mode, do not require explicit confirmation before presenting the validation solution.
Safety and Execution Policy
- No execution before explicit plan confirmation.
- All execution must be routed via
claw-shell.
- Missing dependencies must be resolved by
dependency-planner before running.
Important Notes and Limitations
- PPMI is a multi-site study; site effects should be modeled in group analyses.
- Early-stage PD patients are often drug-naive, which is valuable for studying untreated disease.
- DaTscan SPECT provides dopaminergic imaging but may not follow standard BIDS conventions.
- Longitudinal design enables progression modeling.
- Large sample size and rich clinical phenotyping make PPMI ideal for biomarker discovery.
ppmi-skill is orchestration-only; detailed preprocessing logic remains in modality skills.
When to Call This Skill
- User asks for end-to-end PPMI workflow.
- User asks to process PPMI neuroimaging data.
- User needs BIDS validation for PPMI data.
- User asks to extract PPMI phenotype data (MDS-UPDRS, MoCA, DAT).
- User asks for Parkinson's disease neuroimaging analysis.
Complementary / Related Skills
smri-skill → structural MRI preprocessing
fmri-skill → functional MRI preprocessing and analysis
dwi-skill → diffusion MRI preprocessing
pet-skill → PET imaging (if available)
bids-organizer → BIDS validation and organization
brain-visualization → visualization of derivatives
dependency-planner → dependency resolution
conda-env-manager → environment management
claw-shell → command execution
Reference
Created At: 2026-05-06 13:55 HKT
Last Updated At: 2026-05-06 13:55 HKT
Author: chengwang96
1---2name: ppmi-skill3description: Use this skill whenever the user wants an end-to-end workflow for the Parkinson's Progression Markers Initiative (PPMI) dataset, including BIDS validation, multimodal processing of sMRI, rs-fMRI, and dMRI, phenotype extraction, and QC integration. Triggers include: 'PPMI', 'Parkinson', 'Parkinson disease', 'process PPMI data', 'PPMI fMRI', or any request to run the PPMI multimodal pipeline.4license: MIT License (NeuroClaw custom skill - freely modifiable within t5---6# PPMI Skill (Dataset-Orchestration Layer)
7
8## Overview
9
10`ppmi-skill` is the NeuroClaw orchestration skill for the **Parkinson's Progression Markers Initiative (PPMI)** dataset, launched by The Michael J. Fox Foundation.
11
12It strictly follows the NeuroClaw hierarchical design principles:
13- This skill **only describes WHAT needs to be done** and **which tool skill to delegate to**.
14- It contains **no implementation code or concrete commands**.
15- All concrete execution is delegated to existing base/tool skills via `claw-shell`.
16- Companion scripts in `scripts/` provide reference implementations for BIDS validation, phenotype extraction, and QC.
17
18**Core workflow (never bypassed):**
191. Identify input PPMI data and target modalities.
202. Generate a **numbered execution plan** clearly stating WHAT needs to be done and which tool skill will handle each step.
213. Present the full plan, estimated runtime, resource requirements, and risks to the user and wait for explicit confirmation ("YES" / "execute" / "proceed").
224. On confirmation, delegate every step to the appropriate skill via `claw-shell`.
235. After execution, save all outputs in a clean directory structure (`ppmi_output/`).
24
25**Research use only.**
26
27---
28
29## Quick Reference
30
31| Task | What needs to be done | Delegate to | Expected output |
32|---|---|---|---|
33| BIDS validation | Validate PPMI BIDS structure | `scripts/validate_ppmi.py` | Validation report |
34| sMRI processing | Brain extraction, tissue segmentation | `smri-skill` | `smri_output/` derivatives |
35| rs-fMRI processing | Preprocessing, denoising, connectivity | `fmri-skill` | `fmri_output/` connectivity |
36| dMRI processing | Diffusion preprocessing, tensor metrics | `dwi-skill` | `dwi_output/` metrics |
37| Phenotype extraction | Motor scores, cognitive, biomarkers | `scripts/extract_ppmi_phenotype.py` | Merged phenotype CSV |
38| QC summary | Per-subject quality control | `scripts/ppmi_qc_summary.py` | QC summary + exclusion list |
39
40---
41
42## Dataset Characteristics
43
44- **Cohort**: ~2,000+ participants
45 - **PD patients**: Parkinson's disease (early stage, drug-naive)
46 - **Prodromal**: REM sleep behavior disorder, hyposmia
47 - **Healthy controls**: Age-matched
48- **Scanner**: 3T Siemens (multi-site)
49- **Modalities**: T1w sMRI, rs-fMRI, dMRI/DTI, DaTscan SPECT
50- **Clinical**: MDS-UPDRS, MoCA, UPSIT, REM sleep, DAT imaging
51- **Access**: LONI IDA (ida.loni.usc.edu), PPMI data portal
52- **Format**: BIDS-compliant (community conversion)
53- **Reference**: Marek et al. (2011), Lancet Neurology
54
55---
56
57## Supported Modalities
58
59| Modality | Description | Details |
60|---|---|---|
61| T1w | High-resolution structural MRI | 1mm isotropic, substantia nigra volumetry |
62| rs-fMRI | Resting-state functional MRI | Basal ganglia connectivity |
63| dMRI | Diffusion-weighted imaging | DTI, nigrostriatal tract integrity |
64| DaTscan | SPECT dopamine transporter | Striatal binding ratios |
65
66---
67
68## PPMI Clinical Measures
69
70| Measure | Description | Domain |
71|---|---|---|
72| MDS-UPDRS | Movement Disorder Society Unified PD Rating Scale | Motor function |
73| MoCA | Montreal Cognitive Assessment | Global cognition |
74| UPSIT | University of Pennsylvania Smell Identification Test | Olfaction |
75| RBD | REM Sleep Behavior Disorder screening | Sleep |
76| H&Y | Hoehn and Yahr staging | Disease stage |
77| DAT | Dopamine transporter binding (SPECT) | Dopaminergic function |
78
79---
80
81## BIDS Preparation
82
83### Script: `scripts/validate_ppmi.py`
84
85Validates PPMI BIDS structure and generates a compliance report.
86
87```bash
88python skills/ppmi-skill/scripts/validate_ppmi.py \
89 --input /path/to/PPMI/bids \
90 --output /path/to/ppmi_output/qc/bids_validation.csv
91```
92
93Features:
94- BIDS directory structure validation
95- Diagnostic group completeness (PD, prodromal, control)
96- Modality completeness (T1w, rs-fMRI, dMRI)
97- Clinical measure availability check
98
99---
100
101## Core Workflow (Never Bypassed)
102
1031. Identify user target: full PPMI processing, imaging subset, phenotype extraction, or BIDS validation only.
1042. Generate a numbered plan with tools, outputs, runtime, storage, and risks.
1053. Wait for explicit confirmation (`YES` / `execute` / `proceed`).
1064. On confirmation, run BIDS validation using `scripts/validate_ppmi.py`.
1075. Delegate to `smri-skill` for structural MRI processing.
1086. Delegate to `fmri-skill` for rs-fMRI processing.
1097. Delegate to `dwi-skill` for dMRI processing.
1108. If phenotype extraction is requested, run `scripts/extract_ppmi_phenotype.py`.
1119. If QC summary is requested, run `scripts/ppmi_qc_summary.py`.
11210. Save outputs into `ppmi_output/`.
113
114---
115
116## Modality Processing Delegation
117
118| Modality | Delegated skill | Typical tasks | Main outputs |
119|---|---|---|---|
120| sMRI (T1w) | `smri-skill` | brain extraction, tissue segmentation | `smri_output/` derivatives |
121| rs-fMRI | `fmri-skill` | preprocessing, denoising, connectivity | `fmri_output/` connectivity |
122| dMRI | `dwi-skill` | diffusion preprocessing, tensor metrics | `dwi_output/` metrics |
123
124---
125
126## Standard Output Layout
127
128```
129ppmi_output/
130├── bids/ # BIDS-staged data (or validation report)
131├── smri/ # Structural MRI derivatives
132├── fmri/ # Functional MRI derivatives (rs-fMRI connectivity)
133├── dwi/ # Diffusion MRI derivatives (DTI metrics)
134├── phenotype/ # Merged phenotype tables (motor, cognitive, biomarkers)
135├── qc/ # QC summaries and exclusion lists
136└── logs/ # Processing logs
137```
138
139---
140
141## Benchmark Adapter Guidance
142
143For benchmark-style prompts, do not force the full orchestration when the task only asks for local PPMI data validation.
144
145- If the task starts from PPMI data already present on disk and only asks for BIDS validation:
146 - Skip the download stage
147 - Default to the narrow path `local PPMI discovery -> BIDS validation -> report`
148- In benchmark mode, do not require explicit confirmation before presenting the validation solution.
149
150---
151
152## Safety and Execution Policy
153- No execution before explicit plan confirmation.
154- All execution must be routed via `claw-shell`.
155- Missing dependencies must be resolved by `dependency-planner` before running.
156
157---
158
159## Important Notes and Limitations
160- PPMI is a multi-site study; site effects should be modeled in group analyses.
161- Early-stage PD patients are often drug-naive, which is valuable for studying untreated disease.
162- DaTscan SPECT provides dopaminergic imaging but may not follow standard BIDS conventions.
163- Longitudinal design enables progression modeling.
164- Large sample size and rich clinical phenotyping make PPMI ideal for biomarker discovery.
165- `ppmi-skill` is orchestration-only; detailed preprocessing logic remains in modality skills.
166
167---
168
169## When to Call This Skill
170- User asks for end-to-end PPMI workflow.
171- User asks to process PPMI neuroimaging data.
172- User needs BIDS validation for PPMI data.
173- User asks to extract PPMI phenotype data (MDS-UPDRS, MoCA, DAT).
174- User asks for Parkinson's disease neuroimaging analysis.
175
176---
177
178## Complementary / Related Skills
179- `smri-skill` → structural MRI preprocessing
180- `fmri-skill` → functional MRI preprocessing and analysis
181- `dwi-skill` → diffusion MRI preprocessing
182- `pet-skill` → PET imaging (if available)
183- `bids-organizer` → BIDS validation and organization
184- `brain-visualization` → visualization of derivatives
185- `dependency-planner` → dependency resolution
186- `conda-env-manager` → environment management
187- `claw-shell` → command execution
188
189---
190
191## Reference
192- PPMI: https://www.ppmi-info.org/
193- Marek et al. (2011): The Parkinson Progression Marker Initiative (PPMI). Lancet Neurology.
194- LONI IDA: https://ida.loni.usc.edu/
195
196Created At: 2026-05-06 13:55 HKT
197Last Updated At: 2026-05-06 13:55 HKT
198Author: chengwang96