Repository navigation
Expand file tree
/
Copy pathStep8_cleanup.m
More file actions
26 lines (24 loc) · 1.88 KB
/
Copy pathStep8_cleanup.m
File metadata and controls
26 lines (24 loc) · 1.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
%% move any .fig files to Figures for cleanup - if any remaining in Scripts folder within the sc-ICA folder and blind ICA figure folders
%this is to consolidate all figures into one directory
%start with sc-ICA figures
%%NOTE: all scripts have been updated as of 3/13/2026 after re-ordering
%%within domains to account for the change from Comp 7 (cerebellum) to Comp
%%43(TN-DM). Reran everything after that.
cd '/Users/amrithah/Desktop/CalhounLab/Dissertation/Projects/Chapter6_Paper_5_SPECT Template/Scripts/sc-ICA/Figures'
movefile('*.fig', '/Users/amrithah/Desktop/CalhounLab/Dissertation/Projects/Chapter6_Paper_5_SPECT Template/Figures');
%if error, no file to move!
%do the same for blind ICA figures
cd '/Users/amrithah/Desktop/CalhounLab/Dissertation/Projects/Chapter6_Paper_5_SPECT Template/Scripts/blindICA/Figures'
cd '/Users/amrithah/Desktop/CalhounLab/Dissertation/Projects/Chapter6_Paper_5_SPECT Template/GIFT Autolabeller Tool/Round_2_Results/SPECT_Autolabeller_Round2'
movefile('*.fig', '/Users/amrithah/Desktop/CalhounLab/Dissertation/Projects/Chapter6_Paper_5_SPECT Template/Figures');
%% go back to sc-ICA working directory and check if any .fig files are left to move
cd '/Users/amrithah/Desktop/CalhounLab/Dissertation/Projects/Chapter6_Paper_5_SPECT Template/Scripts/sc-ICA'
movefile('*.fig', '/Users/amrithah/Desktop/CalhounLab/Dissertation/Projects/Chapter6_Paper_5_SPECT Template/Figures');
%% save workspace one final time
cd '/Users/amrithah/Desktop/CalhounLab/Dissertation/Projects/Chapter6_Paper_5_SPECT Template/Scripts/sc-ICA'
save('CoM_Workspace.mat'); %save final workspace for both blind ICA and sc-ICA CoMs
%check figures in figure folder
cd '/Users/amrithah/Desktop/CalhounLab/Dissertation/Projects/Chapter6_Paper_5_SPECT Template/Figures'
%count no of figures saved in Figures directory, should be 10 figures total
numFigFiles = numel(dir('*.fig')); %it is 10
% end analyses