CiCLONE (Cico Cardinale's Localization Of Neuro-electrodes) - A neuroimaging application for localizing implanted electrodes in epilepsy patients using automated CT/MRI processing pipelines.
-
File > New Output Directory
- Choose a name and location for your workspace
- All subject data will be stored here
-
File > Open Output Directory
- Open an existing workspace
Required Software:
- FSL - Set environment variable:
FSLDIR=/path/to/fsl - FreeSurfer (optional) - Set:
FREESURFER_HOME=/path/to/freesurfer
Supported Formats:
- Medical images: NIfTI (
.nii,.nii.gz) - Schemas: JPEG, PNG, TIFF, PowerPoint (
.pptx) - Coordinates: JSON (3D Slicer format)
- Select Data - Create subjects and import images
- Pipeline - Run processing workflows
- Subject Tree - Browse subjects and files
- Go to Select Data tab
- Enter Subject Name (e.g., "Patient001")
- Add medical images and schemas
- Click Add Subject
Folder Structure Created:
SubjectName/
├── images/
│ ├── preop/
│ │ ├── ct/ # Pre-op CT scans
│ │ ├── mri/ # Pre-op MRI scans
│ │ └── pet/ # Pre-op PET scans
│ └── postop/
│ ├── ct/ # Post-op CT scans
│ ├── mri/ # Post-op MRI scans
│ └── pet/ # Post-op PET scans
├── documents/ # Electrode schemas
├── processed_tmp/ # Intermediate files
└── pipeline_output/ # Final results
- Select subject from tree view
- Go to Select Data tab
- Add new images
- Click Add Subject
-
Add Medical Image button
-
Specify Properties:
- Session: Pre-operative or Post-operative
- Modality: CT, MRI, or PET
- Registration Target (optional): Auto-register to another image
-
Add Schemas (optional)
- JPG, PNG, TIFF, PowerPoint files
- PowerPoint auto-converted to images and markdown
-
Click Add Subject
- Images automatically cropped, registered, and renamed
| Image Type | Filename |
|---|---|
| Pre-op CT | SubjectName_CT_Bone |
| Post-op CT | SubjectName_CT_Electrodes |
| Pre-op MRI | SubjectName_T1 |
| Post-op MRI | SubjectName_T1_post |
Processing Suffixes:
_C- Cropped_N- Nudged (manual adjustment)_R2S- Reoriented to standard
- CTpre / CTpost - For CT-based electrode localization
- MRIpre / MRIpost - For MRI-based localization
- Select Subjects - Check subjects in tree view
- Choose Pipeline - Select CT or MRI configuration
- Select Stages - Check specific stages or run all
- Execute - Click Run Selected Stages or Run All Stages
- Monitor Progress - View logs (Enable Verbose Mode: Ctrl+V for details)
- Review Results - Check
SubjectName/pipeline_output/
| Stage | Description |
|---|---|
| visual_inspection | FSLeyes viewer, nudge adjustments, cropping |
| coregistration | Register all images to common space |
| extract_electrodes | Isolate metallic artifacts (electrodes) |
| apply_mask | Apply brain mask to electrode image |
| mni_registration | Register to MNI standard space |
| cortical_extraction | FreeSurfer reconstruction (6-12 hours) |
| export_outputs | Copy results to pipeline_output/ |
After pipeline processing:
- Navigate to subject's
pipeline_output/folder - Right-click electrode mask image (e.g.,
r_SubjectName_seeg_masked.nii.gz) - Select Open with Image Viewer or use File menu
-
Load Images
- Electrode mask and anatomical references load automatically
- Use overlay controls (⚙ button) to adjust visibility
-
Create Electrode
- Enter electrode name (e.g., "A", "B", "C")
- Select electrode type from dropdown
- Click Add Electrode
-
Set Entry and Tip Points
- Click on image to select coordinates
- Click Set Tip Point (electrode tip inside brain)
- Click Set Entry Point (where electrode enters skull)
-
Generate Contacts
- Click Process Coordinates
- Contacts automatically interpolated between tip and entry
- Contacts appear in electrode tree
-
Fine-tune Positions (optional)
- Enable movement: Click 🔐 button (changes to 🔓)
- Drag markers directly on images
- Lock when done: Click 🔓 (changes to 🔐)
- Crosshairs (toolbar) - Toggle crosshair overlay
- Markers (toolbar) - Show/hide electrode markers
- Sliders - Navigate through slices
- Overlay Controls (⚙) - Adjust image opacity and layers
-
Save Subject Space - Click Save File
- Saves to
pipeline_output/SubjectName_coordinates.json
- Saves to
-
Export to MNI Space - Click Export MNI
- Transforms coordinates to standard MNI space
- Saves as
MNI_SubjectName_coordinates.json
- Verbose Logging: Press Ctrl+V to toggle detailed debug messages
- Visual Inspection: Always review images in FSLeyes during
visual_inspectionstage - Naming: Use consistent subject names (e.g., Patient001, Patient002)
- Ensure good CT contrast
- Check for motion artifacts
- Pre-op and post-op images should have similar resolution
- Import all images before running pipelines
- Don't skip
visual_inspectionstage - Cortical reconstruction runs in background (6-12 hours)
- Application can be minimized during long processes
- Mark tip point first (inside brain, deepest contact)
- Mark entry point second (skull entry, most superficial)
- Process coordinates to generate intermediate contacts
- Use crosshairs (toolbar button) for precise positioning
- Enable movement (🔓) only when adjusting specific electrodes
Solution: Set environment variables before launching:
export FSLDIR=/usr/local/fsl
export FREESURFER_HOME=/usr/local/freesurferCheck:
- File is valid NIfTI format (
.niior.nii.gz) - File has read permissions
- No special characters in path
Solutions:
- Verify similar field of view between images
- Use
visual_inspectionto apply manual nudge - Check that images are the expected modality
Check:
- Review logs for error messages (enable verbose mode)
- Verify previous stages completed successfully
- Check disk space availability
- Look in
processed_tmp/for intermediate files
Enable verbose mode (Ctrl+V) to see detailed processing steps and error messages.
- FSL: https://fsl.fmrib.ox.ac.uk/fsl/
- FreeSurfer: https://surfer.nmr.mgh.harvard.edu/
- 3D Slicer: https://www.slicer.org/
