Skip to content

Commit 5b88310

Browse files
authored
[ENH] add boutiques descriptor (#1302)
* test boutiques * add stats invocation * fix
1 parent 8b464f2 commit 5b88310

File tree

11 files changed

+643
-49
lines changed

11 files changed

+643
-49
lines changed

.github/workflows/run_tests_cli.yml

Lines changed: 65 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -12,58 +12,108 @@ on:
1212

1313
jobs:
1414
tests_cli:
15-
1615
runs-on: ubuntu-22.04
17-
18-
# only trigger update on upstream repo
1916
if: github.repository_owner == 'cpp-lln-lab'
20-
2117
strategy:
2218
fail-fast: false
2319
matrix:
2420
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
25-
2621
steps:
27-
2822
- name: Install dependencies
2923
run: |
3024
sudo apt-get -y -qq update
3125
sudo apt-get -y install octave liboctave-dev
32-
3326
- name: Info
34-
run: |
35-
octave --version
36-
27+
run: octave --version
3728
- uses: actions/setup-node@v4
3829
with:
3930
node-version: 18
40-
4131
- uses: actions/setup-python@v5
4232
name: Set up Python ${{ matrix.python-version }}
4333
with:
4434
python-version: ${{ matrix.python-version }}
45-
4635
- name: Clone bidspm
4736
uses: actions/checkout@v4
4837
with:
4938
submodules: recursive
5039
fetch-depth: 0
51-
5240
- name: Install validators
5341
run: |
5442
make install
5543
pip install .[test]
56-
5744
- name: Run tests and generate coverage report
5845
run: |
5946
coverage erase
6047
coverage run --source src -m pytest
6148
coverage xml
62-
6349
# - name: Code coverage
6450
# uses: codecov/codecov-action@v4
6551
# with:
6652
# file: coverage.xml
6753
# flags: cli
6854
# name: codecov-cli
6955
# fail_ci_if_error: false
56+
57+
boutiques:
58+
runs-on: ubuntu-22.04
59+
if: github.repository_owner == 'cpp-lln-lab'
60+
steps:
61+
- name: Clone bidspm
62+
uses: actions/checkout@v4
63+
with:
64+
submodules: recursive
65+
fetch-depth: 0
66+
67+
- uses: actions/setup-node@v4
68+
with:
69+
node-version: 18
70+
- uses: actions/setup-python@v5
71+
name: Set up Python
72+
with:
73+
python-version: '3.12'
74+
75+
- name: Install dependencies
76+
run: |
77+
sudo apt-get -y -qq update
78+
sudo apt-get -y install unzip wget git-annex
79+
- name: Install datalad
80+
run: |
81+
python -m pip install --upgrade pip setuptools
82+
pip install datalad
83+
84+
- name: Get data
85+
run: |
86+
cd demos/openneuro/
87+
make data_ds000114_verbal
88+
89+
- name: Install SPM
90+
run: git clone https://github.com/spm/spm12.git --depth 1
91+
- name: Install octave
92+
run: |
93+
sudo apt-get -y -qq update
94+
sudo apt-get -y install \
95+
octave \
96+
liboctave-dev\
97+
octave-common \
98+
octave-io \
99+
octave-image \
100+
octave-signal \
101+
octave-statistics
102+
- name: Compile SPM
103+
run: |
104+
make -C spm12/src PLATFORM=octave distclean
105+
make -C spm12/src PLATFORM=octave
106+
make -C spm12/src PLATFORM=octave install
107+
octave $OCTFLAGS --eval "addpath(fullfile(pwd, 'spm12')); savepath();"
108+
- name: Info
109+
run: octave --version
110+
111+
- name: Install
112+
run: |
113+
make install
114+
pip install boutiques
115+
116+
- name: Run via boutiques
117+
run: |
118+
bosh exec launch --no-container boutiques/bidspm_3.1.1.json boutiques/invocation_smooth.json
119+
bosh exec launch --no-container boutiques/bidspm_3.1.1.json boutiques/invocation_stats.json

WIP/boutiques/WIP.md

Lines changed: 0 additions & 16 deletions
This file was deleted.

WIP/create_boutiques_descriptor.py

Lines changed: 0 additions & 15 deletions
This file was deleted.

boutiques/README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Boutiques descriptor
2+
3+
This directory contains a
4+
[Boutiques](https://github.com/boutiques/boutiques) descriptor for the BIDS app and an example of invocation.
5+
6+
## How to use
7+
8+
* Install Boutiques: `pip install boutiques`
9+
* Run the example:
10+
11+
```bash
12+
bosh exec launch --no-container boutiques/bidspm_3.1.1.json boutiques/invocation_smooth.json
13+
bosh exec launch --no-container boutiques/bidspm_3.1.1.json boutiques/invocation_stats.json
14+
```

0 commit comments

Comments
 (0)