PROS scripts are the Matlab and R scripts for the analysis of PROS(Age differences in prosocial decision making) project 2017 Z.Y.C. . Matlab for brain image analysis(using SPM12 package), and R for behavioral analysis.
-
Sign into the root
-
Rsync NCCUFTP to your own directory :
rsync -avhr myfile.gz /home/pi/tmp/
- Change the owner authority:
chown -R kevincayenne:kevincayenne
-
Exit the root
-
Creat the directories:
- Converted_files
- tryFIR
-
Unzip nii files:
dcm2nii -d N -g N -o /bml/Data/Bank5/PROS//Pilot_image/Convert_data/PROS-Pilot-4 /bml/Data/Bank5/PROS/Pilot_image/RAW_image/PROS-PILOT-4
- Behavior analysis R file:
data_merge
-
preprocessing script
-
first_level_generate_matfile script -> generate SOA.mat for first level (just do once)
* before run the file:-
transport the behavior.csv to the server
-
combine txt files into combinedtxt.txt
* cat rp_aep2dmoco4mm181A* rp_aep2dmoco4mm181B* rp_aep2dmoco4mm181C* rp_aep2dmoco4mm181D* rp_aep2dmoco4mm181E* rp_aep2dmoco4mm151F* > combinedtxt.txt
-
-
firstlevel_FIR script -> without estimate
* % motion orthogonalize: spm_fmri_concatenate(target_output_spm, scans); -
covariance script -> generate the .mat file for second level script
-
second level script -> generate design matrix for first level
-
% delete first column: SPM.xX.X(:,1) = [];
-
% change '19' to '1': SPM.xX.X(SPM.xX.X(:,:)==19) = 1;
-
-
firstlevel model estimate script -> model estimate for first level matrix
-
firstlevel_contrast script -> generate F-contrasts and T-contrast for group level analysis
-
secondlevel_group_analysis -> generate group design matrix and estiamte
-
secondlevel_group_contrast -> group contrast
-
group_contrast_masking -> add mask to each Tcon file
-
group_3D_to_4D -> combine 3D 12 time courses contrast to 4D contrast