-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from AlexBowring/amended_FSL_analyses
Amended ds120 analyses
- Loading branch information
Showing
6 changed files
with
845 additions
and
9 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
base_dir = '/home/maullz/NIDM-Ex/BIDS_Data/RESULTS/SOFTWARE_COMPARISON/'; | ||
study = 'ds120'; | ||
|
||
if ~exist('euler_chars', 'file') | ||
addpath(fullfile(fileparts(mfilename('fullpath')), 'lib')) | ||
end | ||
|
||
study_dir = fullfile(base_dir, study); | ||
spm_stat_file = fullfile(study_dir, 'SPM', 'LEVEL2', 'spmF_0002.nii'); | ||
afni_stat_file = fullfile(study_dir, 'AFNI', 'LEVEL2_AMENDED', 'Group_f_stat_masked.nii.gz'); | ||
spm_mask = fullfile(study_dir, 'SPM', 'LEVEL2', 'mask.nii'); | ||
afni_mask = fullfile(study_dir, 'AFNI', 'LEVEL2_AMENDED', 'mask.nii.gz'); | ||
|
||
euler_array = {spm_stat_file, afni_stat_file}; | ||
mask_array = {spm_mask, afni_mask}; | ||
|
||
|
||
for i=1:length(euler_array) | ||
euler_chars_f_statistic(euler_array{i}, mask_array{i}); | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
base_dir = '/home/maullz/NIDM-Ex/BIDS_Data/RESULTS/SOFTWARE_COMPARISON/'; | ||
study = 'ds120'; | ||
% Find degrees of freedom in 2nd-level results | ||
spm_dof1 = 8; | ||
spm_dof2 = 142; | ||
afni_dof1 = 7; | ||
afni_dof2 = 98; | ||
|
||
if ~exist('r_squared_maps', 'file') | ||
addpath(fullfile(fileparts(mfilename('fullpath')), 'lib')) | ||
end | ||
|
||
study_dir = fullfile(base_dir, study); | ||
spm_stat_file = fullfile(study_dir, 'SPM', 'LEVEL2', 'spmF_0002.nii'); | ||
afni_stat_file = fullfile(study_dir, 'AFNI', 'LEVEL2_AMENDED', 'Group_f_stat_masked.nii.gz'); | ||
spm_mask = fullfile(study_dir, 'SPM', 'LEVEL2', 'mask.nii'); | ||
afni_mask = fullfile(study_dir, 'AFNI', 'LEVEL2_AMENDED', 'mask.nii.gz'); | ||
|
||
% Creating r_squared_maps, degrees of freedom obtained from second level results | ||
r_squared_maps(afni_stat_file, afni_mask, afni_dof1, afni_dof2, study_dir); | ||
r_squared_maps(spm_stat_file, spm_mask, spm_dof1, spm_dof2, study_dir); | ||
|
Oops, something went wrong.