Chapter 1: Scripting in BrainVoyager QX

In this topic the basics of scripting in BrainVoyager QX are explained. Maybe the short chapter might not suffice in case of BrainVoyager users totally new to scripting. However, the examples in this and other chapters are provided in such a way that we hope that by replicating the code in the BrainVoyager QX Script Editor and making small variations to the script, the basics might also become clear in a more intuitive way.

In case more examples are needed, ask for the PowerPoint presentation on scripting in BrainVoyager QX or have a look at the list of available QSA scripts.

 

Contents of Chapter 1

 

Getting started

Script editor and script files

Location of script files

How to run a function

Properties and methods

The BrainVoyager application object

The BrainVoyager document object

Variables and functions

Classes and methods

 

Creating BrainVoyager projects

Project parameters (file type and first file name)

Bytes per pixel

VMR Projects

FMR Projects

Mosaic FMR Projects

Multiple mosaic FMR projects

DMR Projects

AMR Projects

 

Preprocessing and intrasession alignment

Introduction to preprocessing

Preprocessing continued

Motion correction

Temporal filtering

Spatial smoothing

Slice scan time correction

Intrasession alignment

Transform to isovoxel

 

 

 

Experimental design

Stimulation protocol

Stimulation protocol (*.prt) sample script

Single study design matrix (*.rtc)

Single study design matrix (*.rtc) sample script

Multi-study design matrix (*.mdm)

Multi-study design matrix (*.mdm) sample scripts

 

Create VTCs

Create VTC in Talairach space

Script to quickly create 3 VTCs in Talairach space

Create VTC in AC-PC space

Create VTC in native space

Parameters for creating VTCs

Create multiple VTCs script

 

Create VDWs

Create VDWs overview

Create VDW in native space

Create VDW in ACPC space

Create VDW in Talairach space

 

Statistics

Single Study General Linear Model

Multi Study General Linear Model

Random Effects General Linear Model

Contrasts

Contrasts step by step

GLM Options

 

Surface module

Meshes

Viewing options