Skip to content

Commit

Permalink
bugfix in GUI
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyen-td committed Jul 5, 2023
1 parent 77ea413 commit b560ca2
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions pop_roi_connect.m
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@
% Default is empty (in this case, connectivity will be computed for all ROIs).
% 'conn_stats' - ['on'|'off'] Run statistics on connectivity metrics. Default is 'off'.
% 'nshuf' - [integer] number of shuffles for statistical significance testing. The first shuffle is the true value. Default is 1001.
% 'freqrange' - [min max] frequency range in Hz. This is used to compute and plot p-values. Default is to plot broadband power.
%
%
% Output:
% EEG - EEGLAB dataset with field 'roi' containing connectivity info.
Expand Down Expand Up @@ -115,10 +117,12 @@

rowg = [0.1 0.6 1 0.2];
% uigeom = { 1 1 rowg rowg 1 rowg rowg [0.1 0.6 0.9 0.3] 1 rowg 1 [0.5 1 0.35 0.5] [0.5 1 0.35 0.5] [0.5 1 0.35 0.5] [1] [0.9 1.2 1] };
uigeom = { [1] [1.2 1] [1.2 1] [1.2 1] [1.2 1] [1.2 1] [1.2 1] [1] [0.2 1 0.35 0.8] [0.2 1 0.35 0.8] };
uigeom = { [1] [1.2 1] [1.2 1] [1.2 1] [1.2 1] [1.2 1] [1.2 1] [1.2 1] [1] [0.2 1 0.35 0.8] [0.2 1 0.35 0.8] };
uilist = { { 'style' 'text' 'string' 'Select connectivity measures' 'fontweight' 'bold' } ...
{ 'style' 'checkbox' 'string' 'Cross-spectrum' 'tag' 'cs' 'value' 1 } {} ...
{ 'style' 'checkbox' 'string' 'Coherence' 'tag' 'coh' 'value' 0 } ...
{'style' 'checkbox' 'string' '(Complex-valued) Coherency' 'tag' 'ccoh' 'value' 0 } ...
{ 'style' 'checkbox' 'string' 'Coherence' 'tag' 'acoh' 'value' 0 } ...
{ 'style' 'checkbox' 'string' 'Imaginary Coherency' 'tag' 'icoh' 'value' 0 } ...
{ 'style' 'checkbox' 'string' 'Weighted Phase Lag Index' 'tag' 'wpli' 'value' 0 } ...
{ 'style' 'checkbox' 'string' 'Granger Causality (GC)' 'tag' 'gc' 'value' 0 } ...
{ 'style' 'checkbox' 'string' 'Time-reversed GC' 'tag' 'trgc' 'value' 0 } ...
Expand All @@ -138,7 +142,7 @@
% check we have the same naccu
methods = {};
if out.cs, methods = [ methods { 'CS' } ]; end
if out.coh, methods = [ methods { 'COH' } ]; end
% if out.coh, methods = [ methods { 'COH' } ]; end
if out.ccoh, methods = [ methods { 'cCOH' } ]; end
if out.acoh, methods = [ methods { 'aCOH' } ]; end
if out.icoh, methods = [ methods { 'iCOH' } ]; end
Expand Down

0 comments on commit b560ca2

Please sign in to comment.