Skip to content

Commit 4a1b651

Browse files
committed
misc updates
1 parent 7704a5d commit 4a1b651

File tree

4 files changed

+279
-275
lines changed

4 files changed

+279
-275
lines changed

fsl/bfsl_ica_aroma.m

+3-1
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,10 @@
5151
if isempty(rpfile), disp('Motion Correction file not found!'); return; end
5252

5353
% | - Configure Path
54+
bspmdir = fileparts(fileparts(mfilename('fullpath')));
55+
addpath(fullfile(bspmdir, 'dependencies'));
5456
if isempty(aromadir)
55-
aromadir = fullfile(fileparts(fileparts(mfilename('fullpath'))), 'thirdparty', 'ICA_AROMA_79x95x69');
57+
aromadir = fullfile(bspmdir, 'thirdparty', 'ICA_AROMA_79x95x69');
5658
end
5759
icaaroma = fullfile(aromadir, 'ICA_AROMA.py');
5860
if ~exist(icaaroma, 'file'), fprintf('\n\nPATH IS INVALID: %s\n', icaaroma); return; end

level1/bspm_beta2name.m

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
if iscell(beta), beta = char(beta); end
77
h = spm_vol(beta);
88
name = {h.descrip}';
9-
name = regexprep(name, '^.*Sn\(\d\)\s', '');
10-
name = regexprep(name, '\*bf\(\d\)', '');
9+
name = regexprep(name, '^.*Sn\(\d\)\s', '');
10+
name = regexprep(name, '\*bf.+$', '');
1111
end
1212

1313

Binary file not shown.

0 commit comments

Comments
 (0)