Diff for "BitOfScript" - MRC CBU Imaging Wiki
location: Diff for "BitOfScript"
Differences between revisions 4 and 5
Revision 4 as of 2006-10-03 10:48:56
Size: 808
Comment:
Revision 5 as of 2006-10-03 10:53:11
Size: 809
Comment:
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:

A. {{{Code to set up parameters across all the datasets
  1. {{{Code to set up parameters across all the datasets
Line 9: Line 8:
 A. {{{Loop over Subjects and Sessions   1. {{{Loop over Subjects and Sessions
Line 13: Line 12:
 E.g. E.g.
Line 15: Line 14:
 1.#1 {{{   1.#1 {{{
Line 25: Line 24:
 1. {{{   1. {{{

Here is a typical structure for a batch script

  1. {{{Code to set up parameters across all the datasets

and do bits of analysis that are can be grouped }}}

  1. {{{Loop over Subjects and Sessions
  • and perform the Main Crunch

}}}

E.g.

  1. % reorientation, slice timing
    do_time_place5
    realign_spm5
    smooth_spm5
    
    % hp filter
    MYV.hf_cut = 60;
  2. % Run models
    for sb = 1:length(MYV.subjects)
      for ss = 1:length(MYV.sesses)
        one_sub_sess_model_moves5(MYV, sb, ss);
        one_sub_sess_con_moves5(MYV, sb, ss);
      end
    end

Here

and

  • one_sub_sess_con_moves5BR

are subscripts tailored to specialised parts of the sequence.


CbuImaging: BitOfScript (last edited 2013-03-07 21:22:56 by localhost)