Kleen-Lab / OPSCEA

From the Kleen Lab at UCSF (http://kleen.ucsf.edu). Software for heatmaps of seizure activity projected onto reconstructed brains (Omni-Planar and Surface Casting of Epileptiform Activity). PAPER: https://doi.org/10.1111/epi.16841, VIDEO EXAMPLES: https://www.youtube.com/playlist?list=PLGmfrsRwdva-WKwqLyWwcZxE0f_MA9vIL
Other
8 stars 7 forks source link

Wrong slicing orientation and electrodes points outside of brain surface #10

Closed raphaelchristin closed 1 year ago

raphaelchristin commented 1 year ago

Sometimes the orientation of the brain when showing the slices is wrong and the electrode is positioned away from the viewer instead of toward. wrong_orientation Additionally, some of the electrodes are displayed outside of the brain surface (this might be a separate issue).

raphaelchristin commented 1 year ago

The electrodes outside the brain could be caused by a wrong hemisphere being specified

raphaelchristin commented 1 year ago

The flipped brain looks similar to #1, but #3 is supposed to address that problem. This could be an issue with the fix or with something else entirely -- maybe wrong hemisphere again?

raphaelchristin commented 1 year ago

I will separate the issues once we assert that they are not related.

raphaelchristin commented 1 year ago

Example patients: EC166

raphaelchristin commented 1 year ago

The wrong slicing seems to be caused by #5, so I will reopen the issue that suggested the change (#4) and continue the discussion there. I will also open a test branch to investigate the issue. In the meantime, I will revert to the previous version of splitbrain.m

raphaelchristin commented 1 year ago

I will open another issue to document the process of fixing the bug where the wrong hemisphere is displayed and the electrodes lie outside of the shown brain surface for the sake of clarity and good organization. For now, this will be closed.