Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 25 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,31 @@ Any details of the experiment can be changed in `setParameters.m` (e.g., experim
- Task(s)
- Instructions
- Task #1 parameters

#### Let the scanner pace the experiment

Set `cfg.pacedByTriggers.do` to `true` and you can then set all the details in this `if` block

```matlab
% Time is here in in terms of number repetition time (i.e MRI volumes)
if cfg.pacedByTriggers.do

cfg.pacedByTriggers.quietMode = true;
cfg.pacedByTriggers.nbTriggers = 1;

cfg.timing.eventDuration = cfg.mri.repetitionTime / 2 - 0.04; % second

% Time between blocs in secs
cfg.timing.IBI = 0;
% Time between events in secs
cfg.timing.ISI = 0;
% Number of seconds before the motion stimuli are presented
cfg.timing.onsetDelay = 0;
% Number of seconds after the end all the stimuli before ending the run
cfg.timing.endDelay = 2;

end
```

### 3.3. <a name='subfunexpDesign'></a>subfun/expDesign

Expand Down Expand Up @@ -103,10 +128,4 @@ The `numEventsPerBlock` should be a multiple of the number of "base" listed in t
- `expParameters.designSpeeds` is an array `(nr_blocks, numEventsPerBlock) * speedEvent`
- `expParameters.designFixationTargets` is an array `(nr_blocks, numEventsPerBlock)` showing for each event if it should be accompanied by a target

### 3.4. <a name='subfuneyeTracker'></a>subfun/eyeTracker

Eyetracker script, still to be debugged. Will probably moved in the CPP_PTB package. It deals with the calibration (dufault or custom), eye movements recording and saving the files.

### 3.5. <a name='subfunwait4Trigger'></a>subfun/wait4Trigger

Simple functions that counts the triggers sent by the MRI computer to the stimulation computer to sync brain volume recordings and stimulation.
2 changes: 1 addition & 1 deletion lib/CPP_BIDS
Submodule CPP_BIDS updated 50 files
+0 −3 .gitignore
+17 −22 .travis.yml
+373 −57 README.md
+0 −3 binder/apt.txt
+0 −2 binder/environment.yml
+0 −3 binder/postBuild
+0 −144 docs/functions_description.md
+0 −97 docs/installation.md
+201 −223 lib/utils/file_utils.m
+0 −11 manualTests/dummyData/.bidsignore
+2 −9 manualTests/miss_hit.cfg
+3 −3 manualTests/test_createBoldJson.m
+22 −139 manualTests/test_makeRawDataset.m
+41 −0 manualTests/test_userInput.m
+1 −8 miss_hit.cfg
+0 −11 notebooks/README.md
+0 −795 notebooks/basic_usage.ipynb
+0 −646 notebooks/creating_BIDS_dataset.ipynb
+0 −288 notebooks/more_on_saving.ipynb
+12 −67 src/checkCFG.m
+1 −4 src/convertSourceToRaw.m
+37 −0 src/createBoldJson.m
+22 −26 src/createFilename.m
+0 −127 src/createJson.m
+16 −28 src/saveEventsFile.m
+0 −19 src/subfun/askForGroupAndOrSession.m
+0 −33 src/subfun/askUserCli.m
+0 −42 src/subfun/askUserGui.m
+0 −34 src/subfun/createQuestionList.m
+0 −10 src/subfun/getIsQuestionToAsk.m
+0 −14 src/subfun/isPositiveInteger.m
+45 −0 src/subfun/parseFunc.m
+0 −52 src/subfun/removeAllDateSuffix.m
+0 −1 src/subfun/returnHeaderName.m
+0 −25 src/subfun/setDefaultResponses.m
+0 −11 src/subfun/transferInfoToBids.m
+57 −14 src/userInputs.m
+1 −8 tests/miss_hit.cfg
+0 −52 tests/test_askForGroupAndOrSession.m
+9 −35 tests/test_checkCFG.m
+41 −0 tests/test_createBoldJson.m
+0 −0 tests/test_createDatasetDescription.m
+56 −173 tests/test_createFilename.m
+0 −140 tests/test_createJson.m
+0 −24 tests/test_createQuestionList.m
+0 −29 tests/test_getIsQuestionToAsk.m
+0 −17 tests/test_isPositiveInteger.m
+61 −185 tests/test_saveEventsFileSave.m
+0 −32 tests/test_setDefaultResponses.m
+0 −9 tests/test_transferInfoToBids.m
2 changes: 1 addition & 1 deletion lib/CPP_PTB
2 changes: 1 addition & 1 deletion setParameters.m
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
% Number of seconds after the end all the stimuli before ending the run
cfg.timing.endDelay = 3.6;

% reexpress those in terms of repetition time
% reexpress those in terms of number repetition time
if cfg.pacedByTriggers.do

cfg.pacedByTriggers.quietMode = true;
Expand Down
1 change: 1 addition & 0 deletions version.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v0.0.1