<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
        Sample programs and data  for BDTB

                                           updated on 2010/05/11

_______________________________________________________________________________
Introduction
~~~~~~~~~~~~
This has sample programs and data for BDTB.
Please start from this sample to learn how to use BDTB.


_______________________________________________________________________________
Directory structure
~~~~~~~~~~~~~~~~~~~
When you unzip the file, you'll get following directories and files.

sample/
  |- data/
  |    |- SS100511/
  |         |- fmri_raw/
  |         |    |- realigned/ : directory including sample fMRI data
  |         |
  |         |- roi/            : directory including Region of Interest (ROI) files
  |
  |- program/
  |    |- decode_basic.m       : sample program of decoding
  |    |- make_fmri_mat.m      : sample program of converting fMRI files to .mat file
  |    |- set_paths.m          : sub function of above 2 functions
  |
  |- HowToUse.txt              : this file

_______________________________________________________________________________
How to use
~~~~~~~~~~
1. Download BDTB zip-file, and unzip it wherever you like.
2. Run Matlab, and change working directory into 'sample/program/' or add path.

3. Convert fMRI files into .mat file
  a. Command 'make_fmri_mat'.
  b. Select directory of 'BDTB' on a dialog.
  c. Select directory of 'sample/data/SS100511' on a dialog.
  d. Select directory of 'SPM5' on a dialog.
     If you download 'BDTB_full', SPM5 is included in it.
     If not, please download from SPM5 web site.
  e. Complete.
     A .mat file is made in 'sample/data/SS100511/fmri_mat/' directory.
     Maybe the name of the file is 'SS100511_fmri_roi_v7.mat'.

4. Decode
  a. Command 'decode_basic'.
  b. Select .mat file saved in 'sample/data/SS100511/fmri_mat/' on a dialog.
  c. Select directory of 'BDTB' on a dialog.
  d. Select directory of 'sample/data/SS100511' on a dialog.
  e. Select directory of 'LIBSVM' on a dialog.
     If you download 'BDTB_full', LIBSVM is included in it.
     If not, please download from LIBSVM web site.
  f. Complete.
     The following result is displayed.
          Percent Correct:  81.67
          Frequency Table:
             15    4    1 
              5   15    0 
              0    1   19 


_______________________________________________________________________________
About data
~~~~~~~~~~
BDTB assumes the following directory structure.

[Subject_ID]
  |- fmri_raw/
  |    |- unaligned/ : raw fMRI files
  |    |- realigned/ : preprocessed fMRI files
  |
  |- fmri_mat/       : .mat files
  |- logs/           : log files
  |- roi/            : ROI (Region of Interest) files

Please use this directory strutcture as much as possible.
When you use other directory structures, edit 'sample/program/set_paths.m'
 according to your directory structure.

The names of fMRI files should be
  [Prefix][Subject_ID][Run_name][Number(4 figures)].img/.hdr.
  ex. rSS100511a0003.img


_______________________________________________________________________________
About result of decoding
~~~~~~~~~~~~~~~~~~~~~~~~
BDTB returns the result of decoding like
          Percent Correct:  81.67
          Frequency Table:
  (Rock)     15    4    1 
  (Scissors)  5   15    0 
  (Paper)     0    1   19 

This result means
  Correct answer  : 49 (R-R: 15, S-S: 15, P-P: 19)
  Incorrect answer: 11 (R-S:  4, R-P:  1, S-R: 5, P-S: 1)
  Percent correct : 81.67 %



For more information, please see the help of each function.

_______________________________________________________________________________
Feedback
~~~~~~~~
Any feedback is welcome. Please contact me at the address below.

Satoshi MURATA
Research Engineer in ATR Intl. Computational Neuroscience Labs
satoshi-m@atr.jp

