⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 batch_struct_analysis.txt

📁 绝对经典,老外制作的功能强大的matlab实现PLS_TOOBOX
💻 TXT
字号:

%------------------------------------------------------------------------

	%%%%%%%%%%%%%%%%%%%%%%%%%%%%
	%  Result File Name Start  %
	%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%  Note: Result file must be listed first, and must follow the file
%	 name format of xxxx_yyyyresult.mat, where xxxx stands for
%	 "any result file name prefix" and yyyy stands for the name
%	 of PLS module (either PET ERP fMRI, BfMRI, or STRUCT). File
%	 name is case sensitive on Unix or Linux computers.

result_file	demo1_STRUCTresult.mat

	%%%%%%%%%%%%%%%%%%%%%%%%%%
	%  Result File Name End  %
	%%%%%%%%%%%%%%%%%%%%%%%%%%

%------------------------------------------------------------------------

	%%%%%%%%%%%%%%%%%%%%%%%%%
	%  Group Section Start  %
	%%%%%%%%%%%%%%%%%%%%%%%%%

group_files	demo_STRUCTdatamat.mat				% group 1
group_files	demo2_STRUCTdatamat.mat				% group 2

% ... following above pattern for more groups

	%%%%%%%%%%%%%%%%%%%%%%%
	%  Group Section End  %
	%%%%%%%%%%%%%%%%%%%%%%%

%------------------------------------------------------------------------

	%%%%%%%%%%%%%%%%%%%%%%%
	%  PLS Section Start  %
	%%%%%%%%%%%%%%%%%%%%%%%

%  Notes:
%    1.	Mean-Centering PLS
%    2. Non-Rotated Task PLS (please also fill out contrast data below)
%    3. Behavior PLS (please also fill out behavior data & name below)
%    4. Multiblock PLS (please also fill out behavior data & name below)

pls		1		% PLS Option (between 1 to 4, see above notes)
num_perm	3		% Number of Permutation
num_boot	3		% Number of Bootstrap
clim		95		% Confidence Level for Behavior PLS
save_data	0		% Set to 1 to save stacked datamat

	%%%%%%%%%%%%%%%%%%%%%
	%  PLS Section End  %
	%%%%%%%%%%%%%%%%%%%%%

%------------------------------------------------------------------------

	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
	%  Condition Selection Start  %
	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%  Notes: If you don't need to deselect conditions, just leave
%  "selected_cond" and "selected_bcond" to be commented.

%  First put k number of 1 after "selected_cond" keyword, where k is the
%  number of conditions in the session/datamat. Then, replace with 0 for
%  those conditions that you would like to deselect for any case except
%  behavior block of multiblock PLS. e.g. If you have 3 conditions in 
%  session/datamat, and you would like to deselect the 2nd condition, 
%  then you should enter 1 0 1 after selected_cond.
%
%selected_cond	1 1		% you may want to comment this line

%  First put k number of 1 after "selected_bcond" keyword, where k is the
%  number of conditions in the session/datamat. Then, replace with 0 for
%  those conditions that you would like to deselect only for behavior 
%  block of multiblock PLS. e.g. If you have 3 conditions in 
%  session/datamat, and you would like to deselect the 2nd condition, 
%  then you should enter 1 0 1 after selected_cond.
%
%selected_bcond	1 1		% you may want to comment this line
%
%	Important Restriction Notes:
%
%  For current version, you can not select any conditions for
%  "selected_bcond" that were deselected in "selected_cond".
%  e.g. in the above comments, you can not select the 2nd
%  condition for "selected_bcond" because it was already
%  deselected in "selected_cond". We may modify the program
%  to remove this restriction in the future, and we will also
%  remove this "Important Restriction Notes".

	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
	%  Condition Selection End  %
	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%------------------------------------------------------------------------

	%%%%%%%%%%%%%%%%%%%%%%%%%
	%  Contrast Data Start  %
	%%%%%%%%%%%%%%%%%%%%%%%%%

%  Notes: only list selected conditions (selected_cond)

contrast_data	1 2		% contrast 1&2 for group 1 condition 1
contrast_data	3 4		% contrast 1&2 for group 1 condition 2

contrast_data	5 6		% contrast 1&2 for group 2 condition 1
contrast_data	7 8		% contrast 1&2 for group 2 condition 2

% ... following above pattern for more groups

	%%%%%%%%%%%%%%%%%%%%%%%
	%  Contrast Data End  %
	%%%%%%%%%%%%%%%%%%%%%%%

%------------------------------------------------------------------------

	%%%%%%%%%%%%%%%%%%%%%%%%%
	%  Behavior Data Start  %
	%%%%%%%%%%%%%%%%%%%%%%%%%

%  Notes: only list selected conditions (selected_cond)

behavior_data	11 12		% behavior for grp1 cond1 subj1
behavior_data	13 14		% behavior for grp1 cond1 subj2
behavior_data	15 16		% behavior for grp1 cond1 subj3
behavior_data	17 18		% behavior for grp1 cond2 subj1
behavior_data	19 20		% behavior for grp1 cond2 subj2
behavior_data	21 22		% behavior for grp1 cond2 subj3

behavior_data	31 32		% behavior for grp2 cond1 subj1
behavior_data	33 34		% behavior for grp2 cond1 subj2
behavior_data	35 36		% behavior for grp2 cond1 subj3
behavior_data	37 38		% behavior for grp2 cond1 subj4
behavior_data	39 40		% behavior for grp2 cond2 subj1
behavior_data	41 42		% behavior for grp2 cond2 subj2
behavior_data	43 44		% behavior for grp2 cond2 subj3
behavior_data	45 46		% behavior for grp2 cond2 subj4

% ... following above pattern for more groups

	%%%%%%%%%%%%%%%%%%%%%%%
	%  Behavior Data End  %
	%%%%%%%%%%%%%%%%%%%%%%%

%------------------------------------------------------------------------

	%%%%%%%%%%%%%%%%%%%%%%%%%
	%  Behavior Name Start  %
	%%%%%%%%%%%%%%%%%%%%%%%%%

%  Numbers of Behavior Name should match the Behavior Data above

behavior_name	behav1 behav1

	%%%%%%%%%%%%%%%%%%%%%%%
	%  Behavior Name End  %
	%%%%%%%%%%%%%%%%%%%%%%%

%------------------------------------------------------------------------

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -