Skip to content

Commit 50c351b

Browse files
authored
Merge pull request #367 from cpp-lln-lab/fmriprep_input
[ENH] allow fMRIprep input for GLM
2 parents f0aa0c0 + 989394b commit 50c351b

File tree

624 files changed

+27678
-19610
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

624 files changed

+27678
-19610
lines changed

.dockerignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
.vscode
2+
.git
3+
.github
4+
env
5+
demos/*/outputs/
6+
demos/*/inputs/
7+
demos/*/cfg/
8+
tests
9+
10+
# ignoring this might speed up build
11+
# by preventing passing extra content to the docker daemon
12+
13+
# lib

.github/workflows/miss_hit_quality.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ jobs:
2828
run: |
2929
python -m pip install --upgrade pip setuptools
3030
pip3 install -r requirements.txt
31+
cd tests
32+
make data
3133
3234
- name: MISS_HIT Metrics
3335
run: |

.github/workflows/miss_hit_style.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ jobs:
2828
run: |
2929
python -m pip install --upgrade pip setuptools
3030
pip3 install -r requirements.txt
31+
cd tests
32+
make data
3133
3234
- name: MISS_HIT Code style
3335
run: |
3436
mh_style
35-

.github/workflows/run_system_tests.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
name: system tests
22

33
# Uses the cron schedule for github actions
4-
#
4+
#
55
# https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows#scheduled-events
6-
#
6+
#
77
# ┌───────────── minute (0 - 59)
88
# │ ┌───────────── hour (0 - 23)
99
# │ │ ┌───────────── day of the month (1 - 31)
1010
# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)
1111
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
12-
# │ │ │ │ │
12+
# │ │ │ │ │
1313
# │ │ │ │ │
1414
# │ │ │ │ │
1515
# * * * * *
@@ -20,7 +20,7 @@ on:
2020
- master
2121
- main
2222
pull_request:
23-
branches:
23+
branches:
2424
- 'master'
2525
- 'main'
2626
schedule:
@@ -32,7 +32,7 @@ env:
3232
jobs:
3333
build:
3434

35-
runs-on: ubuntu-20.04
35+
runs-on: ubuntu-latest
3636

3737
steps:
3838

@@ -42,7 +42,7 @@ jobs:
4242
sudo apt-get -y install octave liboctave-dev
4343
sudo apt-get -y install nodejs npm
4444
45-
- name: Clone cpp_spm
45+
- name: Clone cpp_spm
4646
uses: actions/checkout@v2
4747
with:
4848
submodules: true
@@ -55,10 +55,9 @@ jobs:
5555
make -C spm12/src PLATFORM=octave
5656
make -C spm12/src PLATFORM=octave install
5757
octave $OCTFLAGS --eval "addpath(fullfile(pwd, 'spm12')); savepath();"
58-
59-
58+
59+
6060
- name: Run system tests
6161
run: |
6262
cd manualTests/
63-
octave $OCTFLAGS --eval "test_moae"
64-
63+
octave $OCTFLAGS --eval "test_moae"

.github/workflows/run_tests.yml

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,33 @@
11
name: tests and coverage
22

33
# Uses the cron schedule for github actions
4-
#
4+
#
55
# https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows#scheduled-events
6-
#
6+
#
77
# ┌───────────── minute (0 - 59)
88
# │ ┌───────────── hour (0 - 23)
99
# │ │ ┌───────────── day of the month (1 - 31)
1010
# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)
1111
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
12-
# │ │ │ │ │
12+
# │ │ │ │ │
1313
# │ │ │ │ │
1414
# │ │ │ │ │
1515
# * * * * *
1616

1717
on:
1818
push:
1919
branches:
20-
- dev
20+
- master
2121
pull_request:
2222
branches: '*'
23-
schedule:
24-
- cron: "* * 1 * *"
2523

2624
env:
2725
OCTFLAGS: --no-gui --no-window-system --silent
2826

2927
jobs:
3028
build:
3129

32-
runs-on: ubuntu-20.04
30+
runs-on: ubuntu-latest
3331

3432
steps:
3533

@@ -38,8 +36,9 @@ jobs:
3836
sudo apt-get -y -qq update
3937
sudo apt-get -y install octave liboctave-dev
4038
sudo apt-get -y install nodejs npm
39+
pip install datalad
4140
42-
- name: Clone cpp_spm
41+
- name: Clone cpp_spm
4342
uses: actions/checkout@v2
4443
with:
4544
submodules: true
@@ -58,12 +57,12 @@ jobs:
5857
git clone https://github.com/MOxUnit/MOxUnit.git --depth 1
5958
make -C MOxUnit install
6059
git clone https://github.com/MOcov/MOcov.git --depth 1
61-
make -C MOcov install
62-
60+
make -C MOcov install
61+
6362
- name: Update octave path
6463
run: |
6564
octave $OCTFLAGS --eval "initCppSpm; savepath();"
66-
octave $OCTFLAGS --eval "addpath(fullfile(pwd, 'tests', 'utils')); savepath();"
65+
octave $OCTFLAGS --eval "addpath(fullfile(pwd, 'tests', 'utils')); savepath();"
6766
6867
- name: Prepare data
6968
run: |
@@ -73,12 +72,11 @@ jobs:
7372
unzip $inputs_folder'MoAEpilot.zip' -d $inputs_folder
7473
mv $inputs_folder/MoAEpilot $inputs_folder/raw
7574
cd tests
76-
sh createDummyDataSet.sh
75+
make data
7776
cd ..
7877
7978
- name: Run tests
8079
run: |
8180
octave $OCTFLAGS --eval "run_tests"
8281
cat test_report.log | grep 0
83-
bash <(curl -s https://codecov.io/bash)
84-
82+
bash <(curl -s https://codecov.io/bash)

.gitignore

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
*.ps
99
*.png
1010

11+
*.mat
12+
13+
.zenodo.json
14+
1115
# Project specific
1216
options_task-*date*.json
1317
onsets*_events.mat
@@ -20,11 +24,18 @@ venv/*
2024
## visual studio code
2125
.vscode
2226

27+
## from running tests in root dir
28+
cfg/*
29+
group/*
30+
models/*
31+
32+
# jupyter notebooks
33+
.ipynb_checkpoints
34+
2335
## MATLAB / OCTAVE gitignore template
2436

2537
# From : https://github.com/github/gitignore/blob/master/Global/MATLAB.gitignore
2638

27-
2839
# Windows default autosave extension
2940
*.asv
3041

@@ -56,5 +67,3 @@ codegen/
5667

5768
# Octave session info
5869
octave-workspace
59-
60-

.gitmodules

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,9 @@
1313
[submodule "lib/brain_colours"]
1414
path = lib/brain_colours
1515
url = https://github.com/CPernet/brain_colours.git
16+
[submodule "lib/rsHRF"]
17+
path = lib/rsHRF
18+
url = https://github.com/compneuro-da/rsHRF.git
19+
[submodule "lib/spm_2_bids"]
20+
path = lib/spm_2_bids
21+
url = https://github.com/cpp-lln-lab/spm_2_bids.git

.pre-commit-config.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,12 @@ repos:
2525
entry: mh_lint
2626
files: ^(.*\.(m|slx))$
2727
language: python
28-
additional_dependencies: [miss_hit]
28+
additional_dependencies: [miss_hit]
29+
30+
- repo: https://github.com/pre-commit/pre-commit-hooks
31+
rev: v2.0.0
32+
hooks:
33+
- id: trailing-whitespace
34+
- id: end-of-file-fixer
35+
- id: check-yaml
36+
- id: check-added-large-files

.readthedocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ formats:
2323
python:
2424
version: 3.7
2525
install:
26-
- requirements: requirements.txt
26+
- requirements: requirements.txt

.zenodo.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,4 @@
5454
],
5555
"license": "GPL-3",
5656
"upload_type": "software"
57-
}
57+
}

0 commit comments

Comments
 (0)