Skip to content

Commit

Permalink
add stats invocation
Browse files Browse the repository at this point in the history
  • Loading branch information
Remi-Gau committed Aug 6, 2024
1 parent 03bec6e commit e478d80
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 66 deletions.
7 changes: 6 additions & 1 deletion boutiques/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,9 @@ This directory contains a
## How to use

* Install Boutiques: `pip install boutiques`
* Run the example: `bosh exec launch --no-container boutiques/bidspm_3.1.1.json boutiques/invocation.json`
* Run the example:

```bash
bosh exec launch --no-container boutiques/bidspm_3.1.1.json boutiques/invocation_smooth.json
bosh exec launch --no-container boutiques/bidspm_3.1.1.json boutiques/invocation_stats.json
```
68 changes: 5 additions & 63 deletions boutiques/bidspm_3.1.1.json
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,6 @@
"ignore"
],
"default_model": [
"space",
"roi_based",
"keep_residuals",
"node_name",
Expand All @@ -393,22 +392,14 @@
"models_dir",
"fwhm",
"boilerplate_only",
"task",
"dry_run",
"roi_name",
"participant_label",
"roi_dir",
"design_only",
"use_dummy_regressor",
"skip_validation",
"anat_only",
"bids_filter_file",
"ignore",
"options",
"verbosity"
"anat_only"
],
"create_roi": [
"space",
"roi_based",
"keep_residuals",
"node_name",
Expand All @@ -420,92 +411,50 @@
"boilerplate_only",
"task",
"dry_run",
"participant_label",
"roi_dir",
"design_only",
"use_dummy_regressor",
"skip_validation",
"anat_only",
"bids_filter_file",
"ignore",
"options",
"verbosity"
],
"stats": [
"space",
"preproc_dir",
"hemisphere",
"roi_atlas",
"dummy_scans",
"models_dir",
"fwhm",
"boilerplate_only",
"task",
"dry_run",
"roi_name",
"participant_label",
"skip_validation",
"anat_only",
"bids_filter_file",
"ignore",
"options",
"verbosity"
"anat_only"
],
"contrasts": [
"space",
"roi_based",
"keep_residuals",
"node_name",
"model_file",
"preproc_dir",
"hemisphere",
"roi_atlas",
"concatenate",
"dummy_scans",
"models_dir",
"fwhm",
"boilerplate_only",
"task",
"dry_run",
"roi_name",
"participant_label",
"roi_dir",
"design_only",
"use_dummy_regressor",
"skip_validation",
"anat_only",
"bids_filter_file",
"ignore",
"options",
"verbosity"
"ignore"
],
"results": [
"space",
"roi_based",
"keep_residuals",
"node_name",
"model_file",
"preproc_dir",
"hemisphere",
"roi_atlas",
"concatenate",
"dummy_scans",
"models_dir",
"fwhm",
"boilerplate_only",
"task",
"dry_run",
"roi_name",
"participant_label",
"roi_dir",
"design_only",
"use_dummy_regressor",
"skip_validation",
"anat_only",
"bids_filter_file",
"ignore",
"options",
"verbosity"
"ignore"
],
"bms": [
"space",
Expand All @@ -518,21 +467,14 @@
"roi_atlas",
"concatenate",
"dummy_scans",
"fwhm",
"boilerplate_only",
"task",
"dry_run",
"roi_name",
"participant_label",
"roi_dir",
"design_only",
"use_dummy_regressor",
"skip_validation",
"anat_only",
"bids_filter_file",
"ignore",
"options",
"verbosity"
"ignore"
]
}
}
Expand Down
File renamed without changes.
17 changes: 17 additions & 0 deletions boutiques/invocation_stats.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"bids_dir": "./demos/openneuro/inputs/ds000114",
"output_dir": "./demos/openneuro/outputs/ds000114/derivatives",
"analysis_level": "subject",
"command": "stats",
"participant_label": [
"01",
"02"
],
"preproc_dir": "./demos/openneuro/outputs/ds000114/derivatives/bidspm-preproc",
"verbosity": 2,
"fwhm": 6.0,
"model_file": "./demos/openneuro/models/model-ds000114_desc-testRetestVerbal_smdl.json",
"dry_run": false,
"skip_validation": true,
"roi_atlas": "hcpex"
}
5 changes: 3 additions & 2 deletions demos/openneuro/ds000114_run.m
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

SMOOTH = false;
TASK = 'verbal'; % 'verbal' / 'linebisection'
FWHM = 6;

% The directory where the data are located
root_dir = fileparts(mfilename('fullpath'));
Expand Down Expand Up @@ -50,7 +51,7 @@
'action', 'smooth', ...
'task', task, ...
'space', space, ...
'fwhm', 8, ...
'fwhm', FWHM, ...
'verbosity', 3); %#ok<*UNRCH>
end

Expand All @@ -65,7 +66,7 @@
'model_file', model_file, ...
'roi_atlas', 'hcpex', ...
'space', space, ...
'fwhm', 8, ...
'fwhm', FWHM, ...
'skip_validation', true, ...
'options', opt, ...
'verbosity', 3);
Expand Down

0 comments on commit e478d80

Please sign in to comment.