Opening ITK-SNAP Files from PennBox¶
What this page tells you
How clinicians open a finished reconstruction from the PennBox CNT Implant Reconstructions folder: download the entire module2 folder, open the .itksnap workspace in ITK-SNAP, and if labels show only 'Label 22', import the electrode label descriptions file via Segmentation > Import Label Descriptions.
-
When Reconstructions are completed, they will be uploaded to CNT Implant Reconstructions folder in PennBox (https://upenn.box.com/s/rmifp0sft3af3xk8329sqvrlhtqnks5k).

-
The reconstruction will be labeled by the patient’s RID and HUP number or as sub-RID0###.
- Open the patient's reconstruction folder You will see the following documents at this level:
- derivatives 🡪 this holds the sub-directories with the reconstruction output
- Ses-clinical01 🡪 this holds the original pre-implant MRI, post-implant CT and electrode coordinates for the reconstruction
- RID###.pptx 🡪 anonymized implant map
- .DS_Store file

- Open the patient's reconstruction folder You will see the following documents at this level:
-
Open the derivatives folder and the ieeg_recon folder inside of derivatives.
- Within the ieeg_recon folder will be the module2 folder.
-
Download the entire module2 folder
- This will download the complete reconstruction output including the ITKSNAP workspace and ITKSNAP electrode labels file.
- Do Not create a new workspace from scratch

-
The module2 folder should now be on your computer where it can be unzipped.
- Make sure you have ITK_SNAP already installed on your computer as well.
- Open the module2 folder to view the reconstruction output
- The ITK-SNAP workspace will be labeled with the red itk-snap icon with the naming [sub-RID####_ses-clinical01_itksnap_workspace.itksnap ]
-
Right click on the workspace and hover over the “open with” option
- An additional tab will appear with the option to use the ITK-SNAP app
- Click the ITK-SNAP option

-
The workspace should open up and present the labeled electrodes. To double check if the electrode coordinates are imported, click on a label.
- Zooming in may help with this because the voxel which was labeled is what needs to be clicked on specifically.
- On the left-hand column, the section labeled “Label under cursor” will show you which label you have selected and its coordinate.
- If the second cell is only showing you the name of the label, for example “Label 22”, that means the electrode coordinates have not been imported into the workspace.
- To import an electrode label, go to the top of the desktop screen and select “Segmentation”
- Scroll down to the “Import Label Descriptions option and select it.

- Scroll down to the “Import Label Descriptions option and select it.
- Navigate back to the module2 folder and select the electrode labels file [sub-RID###_ses-clinical01_space-T01ct_desc-vox_electrodes_itk_snap_labels]
- Click open after you select the electrode labels and the coordinates for the electrode should show up immediately.

- You can test out the labels again by clicking on a labeled voxel and looking at the “Label Under Cursor” section to view the label number and coordinate. The name of the electrode should also be displayed directly under this section in the “Segmentation Labels- Active label:” area.