# sEEG trajectories and viewing

**URL:** <https://discourse.slicer.org/t/seeg-trajectories-and-viewing/18220>\
**Category:** Support\
**Created:** [June 18, 2021, 7:11pm UTC](https://discourse.slicer.org/t/seeg-trajectories-and-viewing/18220 "2021-06-18T19:11:36Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![mubafz](https://avatars.discourse-cdn.com/v4/letter/m/e9a140/32.png) [@mubafz](https://discourse.slicer.org/u/mubafz)\
**Post date:** [June 18, 2021, 7:11pm UTC](https://discourse.slicer.org/t/seeg-trajectories-and-viewing/18220/1 "2021-06-18T19:11:36Z")

</div>

Hi,

I am a new clinican user to 3dSlicer and it looks great. Is there a way to quickly construct electrode trajectories based on DIXI parameters from post-implant CT/MRI co-ordinates. As well is there a way to view slices orthogonal along the trajectory of a particular electrode apart from the standard coronal, axial and sagital views? The SEEG assistant paper looks abit complicated and doesnt give a detailed step wise guide.

Thank you for any assistance.

Regards

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [June 18, 2021, 9:05pm UTC](https://discourse.slicer.org/t/seeg-trajectories-and-viewing/18220/2 "2021-06-18T21:05:18Z")

</div>

Yes, you can easily create straight or curved trajectories from CT/MRI coordinates (e.g., from a csv file) and reslice the volume along that axis (for example, using SlicerVMTK extension’s Cross-section analysis module).

---

<div class="post-metadata">

**Author:** ![mubafz](https://avatars.discourse-cdn.com/v4/letter/m/e9a140/32.png) [@mubafz](https://discourse.slicer.org/u/mubafz)\
**Post date:** [June 18, 2021, 11:41pm UTC](https://discourse.slicer.org/t/seeg-trajectories-and-viewing/18220/3 "2021-06-18T23:41:52Z")

</div>

Thanks Andras. Its there a link to explain the csv format/importation process?

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [June 19, 2021, 1:01am UTC](https://discourse.slicer.org/t/seeg-trajectories-and-viewing/18220/4 "2021-06-19T01:01:05Z")

</div>

File formats for markups are described here: [Markups — 3D Slicer documentation](https://slicer.readthedocs.io/en/latest/developer_guide/modules/markups.html)

I would recommend to use the .json file format, because that allows you to specify markup type (points, curve, etc.) and all display properties. But if you store and process your data in Excel then you can save as .csv or .tsv file that you can read into Slicer as a table and import into a markups node.

---

<div class="post-metadata">

**Author:** ![mubafz](https://avatars.discourse-cdn.com/v4/letter/m/e9a140/32.png) [@mubafz](https://discourse.slicer.org/u/mubafz)\
**Post date:** [June 19, 2021, 4:12pm UTC](https://discourse.slicer.org/t/seeg-trajectories-and-viewing/18220/5 "2021-06-19T16:12:21Z")

</div>

Thank you very much for your help. Will test it out.

---

<div class="post-metadata">

**Author:** ![mubafz](https://avatars.discourse-cdn.com/v4/letter/m/e9a140/32.png) [@mubafz](https://discourse.slicer.org/u/mubafz)\
**Post date:** [June 24, 2021, 2:23pm UTC](https://discourse.slicer.org/t/seeg-trajectories-and-viewing/18220/6 "2021-06-24T14:23:44Z")

</div>

Hi Andras,

I managed to import coordinates as markup points and its looking really good.

I want to ask if there is a quick way to centre a markup just by typing in the name of the desired markup point (maybe via some code in pythoninteractor or a filter somewhere). Lets say I have 200 points corresponding with stereo contacts. I want to go to a certain markup for example A5. Is there any quick shortcut way apart from scrolling through the control point table (it shows only around 6 markups at one time) and we have to scroll through to find one I want and click that row? It would be great if there is a filter or a brief code to do that.

sEEG reading is dynamic when we review the iEEG we want to refer back to the MRI alot of times for corresponding contacts.  
Thanks for any help.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/d/0/d0b72756d5725dd735788acd41ca8cf5879c6632.png)

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [June 24, 2021, 6:29pm UTC](https://discourse.slicer.org/t/seeg-trajectories-and-viewing/18220/7 "2021-06-24T18:29:27Z")

</div>

You could write a Python script that fills in a [QTableWidget](https://doc.qt.io/qt-5/qtablewidget.html) with the point names and add a filter text box. You can use the study list in DICOMwebBrowser extension as an example (see [source code](https://github.com/lassoan/SlicerDICOMwebBrowser/blob/main/DICOMwebBrowser/DICOMwebBrowser.py)).

Filter&search will be generally useful, so we’ll implement this in Markups module, but we are still in the process of integrating a large markups module feature pack, so we will not be able to get to it for a couple of weeks. If you have some C++ programming experience then you can take on this task and make it available earlier.

---

<div class="post-metadata">

**Author:** ![mubafz](https://avatars.discourse-cdn.com/v4/letter/m/e9a140/32.png) [@mubafz](https://discourse.slicer.org/u/mubafz)\
**Post date:** [June 27, 2021, 1:04am UTC](https://discourse.slicer.org/t/seeg-trajectories-and-viewing/18220/8 "2021-06-27T01:04:37Z")

</div>

Hi Andras,

Thanks for your quick reply. Unfortunately I dont have much programming background so will wait for the feature pack upgrade.

I will read up on Qtablewidget in the meantime.

Regards  
M
