Skip to content

Commit

Permalink
new figures and clarified test for pipeline A
Browse files Browse the repository at this point in the history
  • Loading branch information
alexsayal committed Sep 7, 2023
1 parent be23394 commit 70f5c63
Show file tree
Hide file tree
Showing 19 changed files with 1,924 additions and 1,967 deletions.
Binary file modified data/expC-analysis-spm-images/FiguresPaper_1_psc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
716 changes: 358 additions & 358 deletions data/expC-analysis-spm-images/FiguresPaper_1_psc.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/expC-analysis-spm-images/FiguresPaper_2_psc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
411 changes: 206 additions & 205 deletions data/expC-analysis-spm-images/FiguresPaper_2_psc.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/expC-analysis-spm-images/FiguresPaper_3_psc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
786 changes: 393 additions & 393 deletions data/expC-analysis-spm-images/FiguresPaper_3_psc.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/expC-analysis-spm/GroupERA_N20_BilateralMT.mat
Binary file not shown.
Binary file modified images/FiguresPaper_1_psc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
716 changes: 358 additions & 358 deletions images/FiguresPaper_1_psc.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/FiguresPaper_2_psc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
411 changes: 206 additions & 205 deletions images/FiguresPaper_2_psc.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/FiguresPaper_3_psc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
786 changes: 393 additions & 393 deletions images/FiguresPaper_3_psc.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
49 changes: 3 additions & 46 deletions scripts-06-pipelineA-analysis/ExpC_ERA_SPM_Group.m
Original file line number Diff line number Diff line change
Expand Up @@ -466,55 +466,12 @@

end

%% ANOVA + Multiple comparison test (tukey's) - Adaptation period

% ANAdaptation = zeros(4,30); % F and p x 2 in rows, 30 points as columns
% TukeysAdaptation = zeros(8,30); % h and p values x 4, 8 points as columns
%
% for jj = 1:30
%
% [p1,tbl1,stats1] = anova1([ERA_G.BilateralMT.Coh_aCoh.psc.mean(:,jj) ERA_G.BilateralMT.Coh_aInCoh.psc.mean(:,jj) ERA_G.BilateralMT.Coh_aNA.psc.mean(:,jj)],{'Coh_aCoh','Coh_aInCoh','Coh_aNA'});
%
% f1 = tbl1{2,5};
%
% [c1,~,~,gnames1] = multcompare(stats1);
% % Columns 1 and 2 contain the indices of the two samples being compared.
% % Column 3 contains the lower confidence interval, column 4 contains the estimate, and column 5 contains the upper confidence interval.
% % Column 6 contains the p-value for the hypothesis test that the corresponding mean difference is not equal to 0.
%
% [p2,tbl2,stats2] = anova1([ERA_G.BilateralMT.InCoh_aCoh.psc.mean(:,jj) ERA_G.BilateralMT.InCoh_aInCoh.psc.mean(:,jj) ERA_G.BilateralMT.InCoh_aNA.psc.mean(:,jj)],{'InCoh_aCoh','InCoh_aInCoh','InCoh_aNA'});
%
% f2 = tbl2{2,5};
%
% [c2,~,~,gnames2] = multcompare(stats2);
%
% TukeysAdaptation(2,jj) = c1(1,6);
% TukeysAdaptation(1,jj) = round(c1(1,6),2) <= 0.05;
%
% % to do aNA !!!
%
% TukeysAdaptation(4,jj) = c2(1,6);
% TukeysAdaptation(3,jj) = round(c2(1,6),2) <= 0.05;
%
% TukeysAdaptation(8,jj) = c2(2,6);
% TukeysAdaptation(7,jj) = round(c2(2,6),2) <= 0.05;
%
% TukeysAdaptation(6,jj) = c1(2,6);
% TukeysAdaptation(5,jj) = round(c1(2,6),2) <= 0.05;
%
% ANAdaptation(1,jj) = f1;
% ANAdaptation(2,jj) = p1;
% ANAdaptation(3,jj) = f2;
% ANAdaptation(4,jj) = p2;
%
% end

%% ANOVA + Multiple comparison test (tukey's)

AN = zeros(4,8); % F and p x 2 in rows, 8 points as columns
Tukeys = zeros(8,8); % h and p values x 4, 8 points as columns
AN = zeros(4,7); % F and p x 2 in rows, 8 points as columns
Tukeys = zeros(8,7); % h and p values x 4, 8 points as columns

for jj = 1:8
for jj = 1:7

[p1,tbl1,stats1] = anova1([Y_AUC_G.Coh_aCoh.psc.data(:,jj) Y_AUC_G.Coh_aInCoh.psc.data(:,jj) Y_AUC_G.Coh_aNA.psc.data(:,jj)],{'Coh_aCoh','Coh_aInCoh','Coh_aNA'});

Expand Down
16 changes: 7 additions & 9 deletions scripts-06-pipelineA-analysis/FiguresPaper.m
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
end

z = find(TTestResAdaptation(1,:));
z = z(z > 15+3 & z < 22+3);
z = z(z > 15+delay_tc & z < 22+delay_tc);

plot(xvector(z), 1.1*ones(1,length(z)),'*','Color','k','LineWidth',1,'MarkerSize',8)

Expand Down Expand Up @@ -92,7 +92,7 @@
end

z = find(TTestResAdaptation(3,:));
z = z(z > 15+3 & z < 22+3);
z = z(z > 15+delay_tc & z < 22+delay_tc);

plot(xvector(z), 1.1*ones(1,length(z)),'*','Color','k','LineWidth',1,'MarkerSize',8)

Expand Down Expand Up @@ -127,8 +127,6 @@
print(fig1,fullfile(outputFolder,sprintf('FiguresPaper_1_psc.svg')),'-dsvg')

%% Figure 2 - psc
TTestRes = TTestRes(:,1:7);

fig22 = figure('position',[150 150 1200 450]);
trialLabels = {'Coherent \rightarrow Coherent';'Incoherent \rightarrow Coherent';'Non-adapting \rightarrow Coherent';'Coherent \rightarrow Incoherent';'Incoherent \rightarrow Incoherent';'Non-adapting \rightarrow Incoherent'};
clrMap = lines;
Expand All @@ -153,7 +151,7 @@

hold on

plot(find(TTestRes(1,:))-1, 0.4*ones(1,length(find(TTestRes(1,:)))),'*','Color','k','LineWidth',1,'MarkerSize',8)
plot(find(Tukeys(1,:))-1, 0.4*ones(1,length(find(Tukeys(1,:)))),'*','Color','k','LineWidth',1,'MarkerSize',8)

hold off

Expand All @@ -180,7 +178,7 @@

hold on

plot(find(TTestRes(3,:))-1,0.4*ones(1,length(find(TTestRes(3,:)))),'*','Color','k','LineWidth',1,'MarkerSize',8)
plot(find(Tukeys(3,:))-1,0.4*ones(1,length(find(Tukeys(3,:)))),'*','Color','k','LineWidth',1,'MarkerSize',8)

hold off

Expand Down Expand Up @@ -221,7 +219,7 @@
end

z = find(TTestResExtra(1,:));
z = z(z > 15+3 & z < 22+3);
z = z(z > 15+delay_tc & z < 22+delay_tc);

plot(xvector(z), 1.1*ones(1,length(z)),'*','Color','k','LineWidth',1,'MarkerSize',8)

Expand Down Expand Up @@ -268,7 +266,7 @@
end

z = find(TTestResExtra(3,:));
z = z(z > 15+3 & z < 22+3);
z = z(z > 15+delay_tc & z < 22+delay_tc);

plot(xvector(z), 1.1*ones(1,length(z)),'*','Color','k','LineWidth',1,'MarkerSize',8)

Expand Down Expand Up @@ -315,7 +313,7 @@
end

z = find(TTestResExtra(5,:));
z = z(z > 15+3 & z < 22+3);
z = z(z > 15+delay_tc & z < 22+delay_tc);

plot(xvector(z), 1.1*ones(1,length(z)),'*','Color','k','LineWidth',1,'MarkerSize',8)

Expand Down

0 comments on commit 70f5c63

Please sign in to comment.