Skip to content

Commit 674fd7c

Browse files
committed
update README
1 parent 42753f1 commit 674fd7c

File tree

1 file changed

+32
-35
lines changed

1 file changed

+32
-35
lines changed

README.md

Lines changed: 32 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -5,33 +5,30 @@
55

66
[![Build Status](https://travis-ci.com/cpp-lln-lab/localizer_visual_motion.svg?branch=master)](https://travis-ci.com/cpp-lln-lab/localizer_visual_motion)
77

8-
<!-- vscode-markdown-toc -->
9-
10-
- 1. [Requirements](#Requirements)
11-
- 2. [Installation](#Installation)
12-
- 3. [Structure and function details](#Structureandfunctiondetails)
13-
_ 3.1. [visualLocTranslational](#visualLocTranslational)
14-
_ 3.2. [setParameters](#setParameters)
15-
_ 3.3. [subfun/doDotMo](#subfundoDotMo)
16-
_ 3.3.1. [Input:](#Input:)
17-
_ 3.3.2. [Output:](#Output:)
18-
_ 3.4. [subfun/expDesign](#subfunexpDesign)
19-
_ 3.4.1. [EVENTS](#EVENTS)
20-
_ 3.4.2. [TARGETS:](#TARGETS:)
21-
_ 3.4.3. [Input:](#Input:-1)
22-
_ 3.4.4. [Output:](#Output:-1)
23-
24-
<!-- vscode-markdown-toc-config
25-
numbering=true
26-
autoSave=true
27-
/vscode-markdown-toc-config -->
28-
<!-- /vscode-markdown-toc -->
8+
<!-- TOC -->
9+
- [fMRI localizers for visual motion](#fmri-localizers-for-visual-motion)
10+
- [Translational Motion](#translational-motion)
11+
- [Requirements](#requirements)
12+
- [Installation](#installation)
13+
- [Structure and function details](#structure-and-function-details)
14+
- [visualLocTranslational](#visualloctranslational)
15+
- [setParameters](#setparameters)
16+
- [Let the scanner pace the experiment](#let-the-scanner-pace-the-experiment)
17+
- [subfun/doDotMo](#subfundodotmo)
18+
- [Input](#input)
19+
- [Output](#output)
20+
- [subfun/expDesign](#subfunexpdesign)
21+
- [EVENTS](#events)
22+
- [TARGETS](#targets)
23+
- [Input](#input-1)
24+
- [Output](#output-1)
25+
<!-- TOC -->
2926

3027
# fMRI localizers for visual motion
3128

32-
# Translational Motion
29+
## Translational Motion
3330

34-
## 1. <a name='Requirements'></a>Requirements
31+
## Requirements
3532

3633
Make sure that the following toolboxes are installed and added to the matlab / octave path.
3734

@@ -45,7 +42,7 @@ For instructions see the following links:
4542
| [Matlab](https://www.mathworks.com/products/matlab.html) | >=2017 |
4643
| or [octave](https://www.gnu.org/software/octave/) | >=4.? |
4744

48-
## 2. <a name='Installation'></a>Installation
45+
## Installation
4946

5047
The CPP_BIDS and CPP_PTB dependencies are already set up as submodule to this repository.
5148
You can install it all with git by doing.
@@ -54,17 +51,17 @@ You can install it all with git by doing.
5451
git clone --recurse-submodules https://github.com/cpp-lln-lab/localizer_visual_motion.git
5552
```
5653

57-
## 3. <a name='Structureandfunctiondetails'></a>Structure and function details
54+
## Structure and function details
5855

59-
### 3.1. <a name='visualLocTranslational'></a>visualLocTranslational
56+
### visualLocTranslational
6057

6158
Running this script will show blocks of motion dots (soon also moving gratings) and static dots. Motion blocks will show dots(/gratings) moving in one of four directions (up-, down-, left-, and right-ward)
6259

6360
By default it is run in `Debug mode` meaning that it does not run care about subjID, run n., fMRI triggers, Eye Tracker, etc..
6461

6562
Any details of the experiment can be changed in `setParameters.m` (e.g., experiment mode, motion stimuli details, exp. design, etc.)
6663

67-
### 3.2. <a name='setParameters'></a>setParameters
64+
### setParameters
6865

6966
`setParameters.m` is the core engine of the experiment. It contains the following tweakable sections:
7067

@@ -105,40 +102,40 @@ if cfg.pacedByTriggers.do
105102
end
106103
```
107104

108-
### 3.3. <a name='subfundoDotMo'></a>subfun/doDotMo
105+
### subfun/doDotMo
109106

110-
#### 3.3.1. <a name='Input:'></a>Input:
107+
#### Input
111108

112109
- `cfg`: PTB/machine configurations returned by `setParameters` and `initPTB`
113110
- `expParameters`: parameters returned by `setParameters`
114111
- `logFile`: structure that stores the experiment logfile to be saved
115112

116-
#### 3.3.2. <a name='Output:'></a>Output:
113+
#### Output
117114

118115
- Event `onset`
119116
- Event `duration`
120117

121118
The dots are drawn on a square that contains the round aperture, then any dots outside of the aperture is turned into a NaN so effectively the actual number of dots on the screen at any given time is not the one that you input but a smaller number (nDots / Area of aperture) on average.
122119

123-
### 3.4. <a name='subfunexpDesign'></a>subfun/expDesign
120+
### subfun/expDesign
124121

125122
Creates the sequence of blocks and the events in them. The conditions are consecutive static and motion blocks (Gives better results than randomised). It can be run as a stand alone without inputs to display a visual example of possible design.
126123

127-
#### 3.4.1. <a name='EVENTS'></a>EVENTS
124+
#### EVENTS
128125

129126
The `numEventsPerBlock` should be a multiple of the number of "base" listed in the `motionDirections` and `staticDirections` (4 at the moment).
130127

131-
#### 3.4.2. <a name='TARGETS:'></a>TARGETS:
128+
#### TARGETS
132129

133130
- If there are 2 targets per block we make sure that they are at least 2 events apart.
134131
- Targets cannot be on the first or last event of a block
135132

136-
#### 3.4.3. <a name='Input:-1'></a>Input:
133+
#### Input
137134

138135
- `expParameters`: parameters returned by `setParameters`
139136
- `displayFigs`: a boolean to decide whether to show the basic design matrix of the design
140137

141-
#### 3.4.4. <a name='Output:-1'></a>Output:
138+
#### Output
142139

143140
- `expParameters.designBlockNames` is a cell array `(nr_blocks, 1)` with the name for each block
144141
- `expParameters.designDirections` is an array `(nr_blocks, numEventsPerBlock)` with the direction to present in a given block

0 commit comments

Comments
 (0)