-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript_iELVis_plotBothHems.m
More file actions
49 lines (41 loc) · 1.53 KB
/
script_iELVis_plotBothHems.m
File metadata and controls
49 lines (41 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
% This script plots the cortical surface of both hemispheres, together with
% iEEG electrodes.
%
% Requirements:
% iELVis: https://github.com/iELVis/iELVis/tree/iELVis_pm
% SEEG2parc: https://github.com/HumanNeuronLab/SEEG2parc
%
% https://github.com/HumanNeuronLab/SEEG2parc
% Pierre Mégevand, Human Neuron Lab, University of Geneva, Switzerland. 2026.
% pierre.megevand@unige.ch; https://www.unige.ch/medecine/neucli/en/groupes-de-recherche/1034megevand/
% provide access path to "FreeSurfer" folder with patient's anatomy
global globalFsDir;
globalFsDir='your\path';
% select patient to plot
fsSubj='PAT_6739';
[str,rem]=strtok(fsSubj,'_');
% set basic figure plotting parameters
iEEG_fig=figure;
cfgPlot=[];
cfgPlot.title=[str ' ' rem(2:end)];
cfgPlot.backgroundColor=[1 1 1];
% set cortical surface plotting parameters
cfgPlot.opaqueness=0.3; % set < 1 to see through brain surface and show depth electrodes
% cfgPlot.overlayParcellation='DK';
% set electrode plotting parameters
cfgPlot.ignoreDepthElec='n'; % show depth electrodes
cfgPlot.showLabels='y';
cfgPlot.elecShape='marker';
cfgPlot.pullOut=0;
% get electrode names and coordinates
cfgPlot.elecNames=readiELVisElecNames(globalFsDir,fsSubj);
cfgPlot.elecCoord=readiELVisElecCoord(globalFsDir,fsSubj,'LEPTO');
cfgPlot.elecCoord(:,4)=strcmp('L',cfgPlot.elecNames(:,3));
cfgPlot.elecNames=cfgPlot.elecNames(:,1);
% do the plotting
cfgPlot.figId=iEEG_fig;
cfgPlot.clearFig='n';
cfgPlot.view='lf';
cfgOut=plotPialSurf(fsSubj,cfgPlot);
cfgPlot.view='rf';
cfgOut=plotPialSurf(fsSubj,cfgPlot);