Tutorial 1: First steps

Objectives: Create a protocol with one subject, that uses the default anatomy Colin27.

Brainstorm database

Brainstorm toolbox allows you to classify your recordings and analysis with three different levels of definition:

Some properties

Please, read carefully, and remember

Running Brainstorm for the first time

  1. Start Matlab, go to brainstorm3 directory, and type "brainstorm" in Matlab command window.
  2. You may observe an error message in the command window about the compilation of the MEX files.

    • Some files from the permutation tests functions need to be compiled on your own operating system, and your Matlab installation may not provide a compiler by default
    • Things that might not work well: Some statistical tests, and the 4D-Neuroimaging file support.
    • You can ignore this problem for now, and try to fix it later.
  3. Read and accept the licence file.
  4. If you have two screens on your computer, you may have a message asking if you want to use your second screen.
    • You can try to say yes: you will have the Brainstorm window on primary screen and the data figures on the secondary one.
    • If does not work properly, go to the menu Options > GUI, and uncheck the menu "Use two screens when available".

  5. Specify Brainstorm database directory. Read carefully what is written in previous section. Safe choices are for example:
    • Windows: C:\Program Files\brainstorm_db
    • Linux: /home/username/brainstorm_db
    • MacOS: Documents/brainstorm_db'

  6. After a last message asking you to create or load a protocol, you should see the main Brainstorm window

Main interface window

main_window.gif

Create first protocol

  1. Click on the Protocol selection drop list, and select Create new protocol.

  2. Edit the protocol name and enter: "TutorialFirstSteps". It will automatically update the paths (Anatomy path and Datasets path.

  3. Select the "MNI Colin27" as the default anatomy.

    • This anatomy (MRI & surfaces) will be available if needed by all the subjects in the protocol.

    • This can be changed later, using the "Use default" menu in the subjects' popup menu.

    • This default anatomy is based on the Colin27 MRI volume provided by the Montreal Neurological Institute: an average of 27 T1-weighted scans of Colin Holmes brain. Many surfaces are provided with this default anatomy; they were extracted with different programs: ?BrainVisa, ?BrainSuite, and ?FreeSurfer.

  4. Subjects configuration panel:

    • These are the default settings that will be applied when creating new subjects. It is then possible to override those settings for each subject.
    • Our objective is to create one subject that uses the default anatomy Colin27, so select the option "Yes, use protocol's default anatomy".

    • The option selected for Default channel file is not important because we are not going to import recordings (and channel files, ie. files that describe each sensor: position, orientation, name...). This point will be described in another tutorial.

  5. Once you get something like the following figure, click on Create.

    createNewProtocol.gif

  6. Confirm that you want to create the directories
  7. The MRI Viewer window opens automatically and displays the Colin27 brain, and a message box informs you that you should select some points on the MRI. Those fiducial points are used to register the MRI with the MEG or EEG sensors, when you import recordings. We don't need to define them now, because we are not going to import any recordings in this turorial, but let's play with the MRI Viewer Viewer.

Fiducials selection (MRI Viewer)

MRI Viewer window:

Protocol exploration

The protocol is created and you can now see it in the database explorer, in Brainstorm window. It is represented by the top-most node in the tree.

  • treeNewProtocol.gif

  • You can switch between anatomy and functional data with the first three buttons in the toolbar. They are no subjects in the database yet, so the Functional data views are completely empty. However, in the Anatomy view, there is a (Default anatomy) node; it contains the MRI and surfaces that can be used by default for the subjects without individual anatomy.

  • Display the Anatomy view, click on the small "+" to expand the contents of the (Default anatomy) node. There is one MRI and several surfaces, identified by different icons.

  • All you can do with each node (anatomy files, subjects, protocol), is accessible by right-clicking on it. Take 10 minutes to explore all the popup menus by yourself. Don't be afraid to click everywhere you want, at this point you cannot damage anything.
  • If you explored well, you should have found the "New subject" menu in the protocol's popup menu. Click on it.

menuNewSubject.gif

createNewSubject.gif

  • Usually, the only thing you need to do here is to edit the name of the subject.
  • But you can also override here the protocol's defaults regarding the sharing of anatomy and channel file between subjects and conditions. For the example, leave selected the "Yes, use default anatomy" option. The click on Save.

  • You should see a the new subject in both Anatomy and Functional data views.

  • In the Anatomy view, the subject node only contains a link called (Default anatomy). It is here just to remind that the subject is using the default MNI Colin27 anatomy.
    subjectDefaultAnat.gif

MRI visualization

There are three different ways to display the MR volumes. Right click on the T1-MRI in Default anatomy, menu Display.
Just click everywhere and try all the options by yourself, it is the best way to learn.

MRI Viewer

Already introduced in this tutorial.

Note: it is the default visualization mode; when you double-click on the T1-MRI file, it brings up the MRI Viewer.

Axial / coronal / sagittal slices

mriSlicesContact.gif

  • Zoom: mouse wheel
  • Move in zoomed image: click + move
  • Adjust contrast: right click + move up/down
  • Colormap selection in menu
  • Save as image in menu

3D orthogonal slices

mriSlices3d.gif

menuShortcut.gif

Surfaces visualization

There is only one way to display the surfaces: in 3D figures. To display a surface you can either double-click on it or right-click > Display.

  • It is the same type on figure than previously (3D), thus all the mouse and keyboard operations are the same.
  • If you display two surfaces from the same anatomy directory, they will be displayed on the same figure.
  • Surfaces tab: more options are available

    panelSurfaces.gif

  • Open the Cortex surface and try all the buttons and sliders. Then do the same with the Scalp surface. All the controls should have some effect on the display, except the sliders in the "Data options" panel. They are useful only when some additional data is mapped on the surfaces.

  • Multiple surfaces: If you have more than one surface in a figure, you need to select the surface you want to edit before changing its properties. The list of the available surfaces is displayed on top of the Surfaces tab.

  • You can also quickly add or remove surfaces in any 3D figure with the top-right buttons of the Surfaces tab.

Next

Now you know how to create a protocol with a default anatomy, and visualize MR volumes and surfaces.

Next step: learn how to ?import an individual anatomy for a subject.

Tutorials/TutFirstSteps (last edited 2010-02-24 01:43:03 by hirkania)