Skip to content

Commit 89d6e63

Browse files
authored
Merge pull request #24 from cpp-lln-lab/bump_bids_matlab
[ENH] Bump bids matlab
2 parents 39b5778 + f5896b6 commit 89d6e63

File tree

13 files changed

+57
-38
lines changed

13 files changed

+57
-38
lines changed

.github/workflows/miss_hit_quality.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ jobs:
3030
run: |
3131
python -m pip install --upgrade pip setuptools
3232
pip3 install -r requirements.txt
33-
cd tests
34-
make data
3533
3634
- name: MISS_HIT Metrics
3735
run: |

.github/workflows/miss_hit_style.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
- master
88
- dev
99
pull_request:
10-
branches: '*'
10+
branches: ['*']
1111

1212
jobs:
1313
build:
@@ -30,8 +30,6 @@ jobs:
3030
run: |
3131
python -m pip install --upgrade pip setuptools
3232
pip3 install -r requirements.txt
33-
cd tests
34-
make data
3533
3634
- name: MISS_HIT Code style
3735
run: |

src/roi/get_ROI_Coordinates.m renamed to demos/WIP/get_ROI_Coordinates.m

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
function mni = get_ROI_Coordinates
22
% This function gets the individual subject coordniates of the highest peak
3-
% within a specified Region of interest (usually coming from the group level univariate analysis)
4-
3+
% within a specified Region of interest (usually coming
4+
% from the group level univariate analysis)
5+
%
56
% Critical t-value for each experimental condition or mask file
6-
CriticalTs = 1; % Critical t-value for visual condition in L-V5 and R-V5 and bilateral PT
7+
% Critical t-value for visual condition in L-V5 and R-V5 and bilateral PT
8+
%
9+
% (C) Copyright 2021 CPP ROI developers
10+
11+
CriticalTs = 1;
712

813
%% load the data structure
914
WD = pwd;
@@ -52,9 +57,17 @@
5257
%% the first 4 masks are for the FACE condition, the other 4
5358
% are from the SCENE condition
5459
if iMask <= 2
55-
result_file = [data_path, '/', SubName, '/stats/ffx_visMotion/ffx_', smoothing, '/spmT_0013.nii']; % HUMAN > BIG_ENV
60+
result_file = [data_path, '/', ...
61+
SubName, ...
62+
'/stats/ffx_visMotion/ffx_', ...
63+
smoothing, ...
64+
'/spmT_0013.nii']; % HUMAN > BIG_ENV
5665
else
57-
result_file = [data_path, '/', SubName, '/stats/ffx_audMotion/ffx_', smoothing, '/spmT_0014.nii']; % BIG_ENV > HUMAN
66+
result_file = [data_path, '/', ...
67+
SubName, ...
68+
'/stats/ffx_audMotion/ffx_', ...
69+
smoothing, ...
70+
'/spmT_0014.nii']; % BIG_ENV > HUMAN
5871
end
5972

6073
%%
@@ -78,8 +91,11 @@
7891

7992
% convert space from slice number to mni
8093
mni{1, iMask}(subCounter, :) = cor2mni([x y z], mask_path);
81-
% mni{1,iMask}(iSub,1) = mni{1,iMask}(iSub,1)* -1; % If masks created from AFNI or FSL,
82-
% the x coordinate could be flipped (multiplied x -1). If this is the case, multiply x with -1.
94+
95+
% mni{1,iMask}(iSub,1) = mni{1,iMask}(iSub,1)* -1;
96+
% If masks created from AFNI or FSL,
97+
% the x coordinate could be flipped (multiplied x -1).
98+
% If this is the case, multiply x with -1.
8399

84100
mni{1, iMask}(subCounter, :);
85101

docs/CONTRIBUTING.md

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

docs/Makefile

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,3 @@ help:
1818
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
1919
%: Makefile
2020
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
21-
22-
23-
doc:
24-
@$(SPHINXBUILD) -b html "$(SOURCEDIR)" "$(BUILDDIR)"

docs/source/conf.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,15 @@
2323
author = "the CPP ROI dev team"
2424

2525
# The full version, including alpha/beta/rc tags
26-
release = "v0.1.0"
26+
release = "v0.1.0dev"
2727

2828

2929
# -- General configuration ---------------------------------------------------
3030

3131
# Add any Sphinx extension module names here, as strings. They can be
3232
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
3333
# ones.
34-
extensions = [
35-
'sphinxcontrib.matlab',
36-
'sphinx.ext.autodoc',
37-
'sphinx_copybutton']
34+
extensions = ["sphinxcontrib.matlab", "sphinx.ext.autodoc", "sphinx_copybutton"]
3835
matlab_src_dir = os.path.dirname(os.path.abspath("../../src"))
3936
primary_domain = "mat"
4037

tests/run_tests.m renamed to run_tests.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
spm('defaults', 'fMRI');
88

9-
testFolder = fullfile(fileparts(mfilename('fullpath')));
9+
testFolder = fullfile(fileparts(mfilename('fullpath')), 'tests');
1010

1111
folderToCover = fullfile(testFolder, '..', 'src');
1212

src/atlas/extractRoiByLabel.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
outputVol(vol == labelStruct.label) = true;
2424

2525
p = bids.internal.parse_filename(sourceImage);
26-
p.entities.label = labelStruct.ROI;
26+
p.entities.label = bids.internal.camel_case(labelStruct.ROI);
2727
p.suffix = 'mask';
2828

2929
bidsFile = bids.File(p);

src/roi/renameNeuroSynth.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
basename = spm_file(inputImage, 'basename');
3131
parts = strsplit(basename, '_');
32-
p.entities.label = ['neurosynth ' parts{1}];
32+
p.entities.label = bids.internal.camel_case(['neurosynth ' parts{1}]);
3333

3434
bidsFile = bids.File(p);
3535

src/roi/thresholdToMask.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
p = bids.internal.parse_filename(inputImage);
4646

4747
p.suffix = 'mask';
48-
48+
4949
% add peakThreshold and clusterSizeInfo to desc
5050
if ~isfield(p.entities, 'desc')
5151
p.entities.desc = '';

0 commit comments

Comments
 (0)