Skip to content

add GEH changes for final submission #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: geh_edits
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified .DS_Store
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
%
% TCS 8/19/2019
%
function spDist_channelRespAmp_GATdist_gh_082520(subj,sess,ROIs,which_vox)
function spDist_channelRespAmp_GAT_suppFigure5(subj,sess,ROIs,which_vox)

tst_dir = 'spDist';

Expand All @@ -17,20 +17,18 @@ function spDist_channelRespAmp_GATdist_gh_082520(subj,sess,ROIs,which_vox)
%root = spDist_loadRoot;

if nargin < 1
% subj = {'CC','MR','AY'}

subj = {'AY','CC','EK','KD','MR','SF','XL'};

end
if nargin < 2
sess = {{'spDist1','spDist2'},{'spDist1','spDist2'},{'spDist1','spDist2'},{'spDist1','spDist2'},{'spDist1','spDist2'},{'spDist1','spDist2'},{'spDist1','spDist2'}};
% sess = {{'spDistLong1','spDistLong2'},{'spDistLong1','spDistLong2'},{'spDistLong1','spDistLong2'}};
% sess = {{'spDist1','spDist2'},{'spDist1','spDist2'},{'spDist1','spDist2'}};

end

if nargin < 3
ROIs = {'V1','V2','V3','V3AB','hV4','VO1','VO2','LO1','LO2','TO1','TO2','IPS0','IPS1','IPS2','IPS3','sPCS','iPCS'};

%ROIs = {'V1','V2','V3','V3AB','hV4','VO1','VO2','LO1','LO2','TO1','TO2','IPS0','IPS1','IPS2','IPS3','sPCS','iPCS'}; %change this back 111220
ROIs = {'V1V2V3','V3AB','hV4','LO1','IPS0IPS1','IPS2IPS3','sPCS'};
end


Expand Down Expand Up @@ -75,12 +73,8 @@ function spDist_channelRespAmp_GATdist_gh_082520(subj,sess,ROIs,which_vox)

end

%delay_tpt_range = [1.5 3; 7 9; 15 16.5];
delay_tpt_range = [3.75 5.25; 8 9.5; 10.5 12]; % updated to parallel new fig 4, aug 25 2020
% delay_tpt_range = [1.5 3; 6 7.5; 10 12]; for use in spDist orig

% delay_tpt_range = [1.5 6.5; 6.5 11.5; 11.5 16.5];
% delay_tpt_range = [1.5 4;4 6.5;6.5 9;9 11.5;11.5 14; 14 16.5];

delay_tpt_range = [3.75 5.25; 8.25 9.75; 10.5 12];
delay_tpts_tmp = cell(size(delay_tpt_range,1),1);

for dd = 1:size(delay_tpt_range,1)
Expand Down Expand Up @@ -146,10 +140,7 @@ function spDist_channelRespAmp_GATdist_gh_082520(subj,sess,ROIs,which_vox)
for fold_idx = 1:n_folds

% ~~~~~~~ first, estimate IEM ~~~~~~~~~~





% pick CV sets
trn_runs = ones(length(unique(data.r_LORO)),1);

Expand Down Expand Up @@ -330,9 +321,9 @@ function spDist_channelRespAmp_GATdist_gh_082520(subj,sess,ROIs,which_vox)
% save with VE marker when which_vox < 1, otherwise, number of
% vox
if which_vox < 1
fn2s = sprintf('%s/%s_reconstructions/%s_%s_%s_%s_%ichan_VE%03.f_GATdist_fig4TPTS.mat',root,tst_dir,subj{ss},horzcat(sess{ss}{:}),ROIs{vv},func_suffix,n_chan,100*which_vox);
fn2s = sprintf('%s/%s_reconstructions/%s_%s_%s_%s_%ichan_VE%03.f_GATdist_fig5TPTS.mat',root,tst_dir,subj{ss},horzcat(sess{ss}{:}),ROIs{vv},func_suffix,n_chan,100*which_vox);
else
fn2s = sprintf('%s/%s_reconstructions/%s_%s_%s_%s_%ichan_%ivox_GATdist_fig4TPTS.mat' ,root,tst_dir,subj{ss},horzcat(sess{ss}{:}),ROIs{vv},func_suffix,n_chan, which_vox);
fn2s = sprintf('%s/%s_reconstructions/%s_%s_%s_%s_%ichan_%ivox_GATdist_fig5TPTS.mat' ,root,tst_dir,subj{ss},horzcat(sess{ss}{:}),ROIs{vv},func_suffix,n_chan, which_vox);
end
fprintf('saving to %s...\n',fn2s);

Expand Down
13 changes: 6 additions & 7 deletions spDist_channelRespAmp_GATdist.m
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,16 @@ function spDist_channelRespAmp_GATdist(subj,sess,ROIs,which_vox)
%root = spDist_loadRoot;

if nargin < 1
subj = {'CC'};
subj = {'AY','CC','EK','KD','MR','SF','XL'};

end
if nargin < 2
sess = {{'spDist1','spDist2'}};

sess = {{'spDist1','spDist2'},{'spDist1','spDist2'},{'spDist1','spDist2'},{'spDist1','spDist2'},{'spDist1','spDist2'},{'spDist1','spDist2'},{'spDist1','spDist2'}};
end

if nargin < 3
ROIs = {'V1','V2','V3','V3AB','hV4','VO1','VO2','LO1','LO2','TO1','TO2','IPS0','IPS1','IPS2','IPS3','sPCS','iPCS'};

% ROIs = {'V1','V2','V3','V3AB','hV4','VO1','VO2','LO1','LO2','TO1','TO2','IPS0','IPS1','IPS2','IPS3','sPCS','iPCS'};
ROIs = {'V1V2V3','V3AB','hV4','LO1','IPS0IPS1','IPS2IPS3','sPCS'};
end


Expand Down Expand Up @@ -301,9 +300,9 @@ function spDist_channelRespAmp_GATdist(subj,sess,ROIs,which_vox)
% save with VE marker when which_vox < 1, otherwise, number of
% vox
if which_vox < 1
fn2s = sprintf('%s/%s_reconstructions/%s_%s_%s_%s_%ichan_VE%03.f_GATdist.mat',root,tst_dir,subj{ss},horzcat(sess{ss}{:}),ROIs{vv},func_suffix,n_chan,100*which_vox);
fn2s = sprintf('%s/%s_reconstructions/%s_%s_%s_%s_%ichan_VE%03.f_GATdist_fig5.mat',root,tst_dir,subj{ss},horzcat(sess{ss}{:}),ROIs{vv},func_suffix,n_chan,100*which_vox);
else
fn2s = sprintf('%s/%s_reconstructions/%s_%s_%s_%s_%ichan_%ivox_GATdist.mat' ,root,tst_dir,subj{ss},horzcat(sess{ss}{:}),ROIs{vv},func_suffix,n_chan, which_vox);
fn2s = sprintf('%s/%s_reconstructions/%s_%s_%s_%s_%ichan_%ivox_GATdist_fig5.mat' ,root,tst_dir,subj{ss},horzcat(sess{ss}{:}),ROIs{vv},func_suffix,n_chan, which_vox);
end
fprintf('saving to %s...\n',fn2s);

Expand Down
5 changes: 3 additions & 2 deletions spDist_fidelity_stats_shuf.m
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
sess = {{'spDist1','spDist2'},{'spDist1','spDist2'},{'spDist1','spDist2'},{'spDist1','spDist2'},{'spDist1','spDist2'},{'spDist1','spDist2'},{'spDist1','spDist2'}};

ROIs = {'V1','V2','V3','V3AB','hV4','LO1','IPS0','IPS1','IPS2','IPS3','sPCS'};
% ROIs = {'V1V2V3','V3AB','hV4','LO1','IPS0IPS1','IPS2IPS3','sPCS'};
func_suffix = 'surf';

cat_mode = 1; % if 1, look for catSess1Ses...SessN_ files, otherwise, just look for each session in turn
Expand Down Expand Up @@ -422,9 +423,9 @@

myy = match_ylim(get(gcf,'Children'));
set(mh(:),'YData',[min(myy(:,1)) max(myy(:,2))]);

set(gcf,'Position',[109 372 989 168]); %for concat ROIs
set(gcf,'Position',[185 745 1843 470]);

set(gcf,'Position',[109 372 1843 470]);

% NOTE: other aspects of plotting from MGSMap_fidelity_stats_shuf.m were
% not edited, so can be copied/pasted from that file if desired
Expand Down
Loading