Skip to content

Commit 1defdfb

Browse files
committed
Merge branch 'dev' of https://github.com/cpp-lln-lab/CPP_ROI into dev
2 parents 92c4ea4 + 7b78ac8 commit 1defdfb

File tree

8 files changed

+125
-26
lines changed

8 files changed

+125
-26
lines changed

.github/workflows/validate_cff.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: validate CITATION.cff
2+
3+
on:
4+
push:
5+
branches: ['*']
6+
paths:
7+
- 'CITATION.cff'
8+
- '.github/workflows/validate_cff.yml'
9+
pull_request:
10+
branches: ['*']
11+
paths:
12+
- 'CITATION.cff'
13+
- '.github/workflows/validate_cff.yml'
14+
15+
jobs:
16+
17+
validate_cff:
18+
19+
runs-on: ubuntu-latest
20+
21+
steps:
22+
23+
- uses: actions/checkout@v3
24+
with:
25+
fetch-depth: 1
26+
27+
- name: Set up Python
28+
uses: actions/setup-python@v3
29+
with:
30+
python-version: 3.9
31+
32+
- name: Install dependencies
33+
run: |
34+
python -m pip install --upgrade pip setuptools
35+
pip3 install cffconvert
36+
37+
- name: Validate CITATION.cff
38+
run: cffconvert --validate

.tributors

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
{
22
"marcobarilari": {
33
"name": "Marco Barilari",
4-
"blog": "https://github.com/marcobarilari"
4+
"blog": "https://github.com/marcobarilari",
5+
"orcid": "0000-0002-3313-3120"
56
},
67
"Remi-Gau": {
78
"name": "Remi Gau",
8-
"blog": "https://github.com/Remi-Gau"
9+
"blog": "https://github.com/Remi-Gau",
10+
"orcid": "0000-0002-1535-9767",
11+
"affiliation": "Université catholique de Louvain"
912
},
1013
"JeanneCaronGuyon ": {
1114
"name": "Jeanne Caron-Guyon ",
@@ -17,10 +20,14 @@
1720
},
1821
"fedefalag": {
1922
"name": "Federica Falagiarda",
20-
"blog": "https://github.com/fedefalag"
23+
"blog": "https://github.com/fedefalag",
24+
"orcid": "0000-0001-7844-1605",
25+
"affiliation": "Université catholique de Louvain"
2126
},
2227
"CerenB": {
2328
"name": "Ceren Battal",
24-
"blog": "https://github.com/CerenB"
29+
"blog": "https://github.com/CerenB",
30+
"orcid": "0000-0002-9844-7630",
31+
"affiliation": "Université catholique de Louvain"
2532
}
2633
}

CITATION.cff

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ cff-version: 1.2.0
22

33
title: "CPP ROI"
44

5-
version: 0.2.0dev
5+
version: 0.3.0
66

77
abstract: Set of Octave and Matlab functions, demos and scripts to help manage ROIs and to play nice with BIDS datasets.
88

@@ -37,6 +37,11 @@ authors:
3737
orcid: "https://orcid.org/0000-0001-7844-1605"
3838
affiliation: "Université catholique de Louvain"
3939

40+
- family-names: "Caron-Guyon"
41+
given-names: "Jeanne"
42+
orcid: "https://orcid.org/0000-0001-8681-5267"
43+
affiliation: "Université catholique de Louvain"
44+
4045
license: GPL-3.0
4146

4247
keywords:

README.md

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -64,18 +64,9 @@ as a submodule, and intitialized when running `initCppSpm`.
6464
- the SPM Anatomy toolbox (INSERT URL)
6565
- the SPM neuromorphometric atlas
6666
- neurosynth probabilty maps
67-
- the probabilistic maps of visual topography in human cortex:
67+
- the probabilistic maps of visual topography in human cortex [@wang2014]
6868
- https://scholar.princeton.edu/napl/resources
69-
- Wang, L., Mruczek, R. E., Arcaro, M. J., & Kastner, S. (2015).
70-
Probabilistic Maps of Visual Topography in Human Cortex. Cerebral
71-
cortex (New York, N.Y. : 1991), 25(10), 3911–3931.
72-
https://doi.org/10.1093/cercor/bhu277
73-
- the probabilistic functional atlas of human occipito-temporal visual
74-
cortex
75-
- Rosenke, M., van Hoof, R., van den Hurk, J., Grill-Spector, K., &
76-
Goebel, R. (2021). A Probabilistic Functional Atlas of Human
77-
Occipito-Temporal Visual Cortex. Cerebral cortex (New York, N.Y. :
78-
1991), 31(1), 603–619. https://doi.org/10.1093/cercor/bhaa246
69+
- the probabilistic functional atlas of human occipito-temporal visual cortex [@rosenke2020]
7970

8071
Also includes:
8172

@@ -87,10 +78,12 @@ Also includes:
8778
<!-- markdownlint-disable -->
8879
<table>
8980
<tr>
90-
<td align="center"><a href="https://github.com/marcobarilari"><img src="https://avatars.githubusercontent.com/u/38101692?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Marco Barilari</b></sub></a><br /><a href="https://github.com/cpp-lln-lab/CPP_ROI/commits?author=marcobarilari" title="Code">💻</a></td>
91-
<td align="center"><a href="https://github.com/Remi-Gau"><img src="https://avatars.githubusercontent.com/u/6961185?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Remi Gau</b></sub></a><br /><a href="https://github.com/cpp-lln-lab/CPP_ROI/commits?author=Remi-Gau" title="Code">💻</a></td>
81+
<td align="center"><a href="https://github.com/marcobarilari"><img src="https://avatars.githubusercontent.com/u/38101692?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Marco Barilari</b></sub></a><br /><a href="https://github.com/cpp-lln-lab/CPP_ROI/commits?author=marcobarilari" title="Code">💻</a> <a href="https://github.com/cpp-lln-lab/CPP_ROI/commits?author=marcobarilari" title="Documentation">📖</a> <a href="#ideas-marcobarilari" title="Ideas, Planning, & Feedback">🤔</a></td>
82+
<td align="center"><a href="https://github.com/Remi-Gau"><img src="https://avatars.githubusercontent.com/u/6961185?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Remi Gau</b></sub></a><br /><a href="https://github.com/cpp-lln-lab/CPP_ROI/commits?author=Remi-Gau" title="Code">💻</a> <a href="https://github.com/cpp-lln-lab/CPP_ROI/commits?author=Remi-Gau" title="Documentation">📖</a> <a href="#infra-Remi-Gau" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a> <a href="#design-Remi-Gau" title="Design">🎨</a> <a href="https://github.com/cpp-lln-lab/CPP_ROI/pulls?q=is%3Apr+reviewed-by%3ARemi-Gau" title="Reviewed Pull Requests">👀</a> <a href="https://github.com/cpp-lln-lab/CPP_ROI/issues?q=author%3ARemi-Gau" title="Bug reports">🐛</a> <a href="https://github.com/cpp-lln-lab/CPP_ROI/commits?author=Remi-Gau" title="Tests">⚠️</a></td>
83+
<td align="center"><a href="https://github.com/JeanneCaronGuyon"><img src="https://avatars.githubusercontent.com/u/8718798?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Jeanne Caron-Guyon </b></sub></a><br /><a href="#ideas-JeanneCaronGuyon " title="Ideas, Planning, & Feedback">🤔</a> <a href="#userTesting-JeanneCaronGuyon " title="User Testing">📓</a></td>
84+
<td align="center"><a href="https://github.com/iqrashahzad14"><img src="https://avatars.githubusercontent.com/u/75671348?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Iqra Shahzad</b></sub></a><br /><a href="#userTesting-iqrashahzad14" title="User Testing">📓</a></td>
9285
<td align="center"><a href="https://github.com/fedefalag"><img src="https://avatars2.githubusercontent.com/u/50373329?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Federica Falagiarda</b></sub></a><br /><a href="https://github.com/cpp-lln-lab/CPP_ROI/issues?q=author%3Afedefalag" title="Bug reports">🐛</a> <a href="#userTesting-fedefalag" title="User Testing">📓</a></td>
93-
<td align="center"><a href="https://github.com/CerenB"><img src="https://avatars.githubusercontent.com/u/10451654?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Ceren Battal</b></sub></a><br /><a href="https://github.com/cpp-lln-lab/CPP_ROI/commits?author=CerenB" title="Code">💻</a></td>
86+
<td align="center"><a href="https://github.com/CerenB"><img src="https://avatars.githubusercontent.com/u/10451654?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Ceren Battal</b></sub></a><br /><a href="https://github.com/cpp-lln-lab/CPP_ROI/commits?author=CerenB" title="Code">💻</a> <a href="https://github.com/cpp-lln-lab/CPP_ROI/pulls?q=is%3Apr+reviewed-by%3ACerenB" title="Reviewed Pull Requests">👀</a> <a href="#userTesting-CerenB" title="User Testing">📓</a></td>
9487
</tr>
9588
</table>
9689

references.bib

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
@article{rosenke2020,
2+
author = {Rosenke, Mona and van Hoof, Rick and van den Hurk, Job and Grill-Spector, Kalanit and Goebel, Rainer},
3+
title = {{A Probabilistic Functional Atlas of Human Occipito-Temporal Visual Cortex}},
4+
journal = {Cerebral Cortex},
5+
volume = {31},
6+
number = {1},
7+
pages = {603-619},
8+
year = {2020},
9+
month = {09},
10+
issn = {1047-3211},
11+
doi = {10.1093/cercor/bhaa246},
12+
url = {https://doi.org/10.1093/cercor/bhaa246},
13+
eprint = {https://academic.oup.com/cercor/article-pdf/31/1/603/34840143/bhaa246.pdf}
14+
}
15+
16+
@article{wang2014,
17+
author = {Wang, Liang and Mruczek, Ryan E.B. and Arcaro, Michael J. and Kastner, Sabine},
18+
title = {{Probabilistic Maps of Visual Topography in Human Cortex}},
19+
journal = {Cerebral Cortex},
20+
volume = {25},
21+
number = {10},
22+
pages = {3911-3931},
23+
year = {2014},
24+
month = {12},
25+
issn = {1047-3211},
26+
doi = {10.1093/cercor/bhu277},
27+
url = {https://doi.org/10.1093/cercor/bhu277},
28+
eprint = {https://academic.oup.com/cercor/article-pdf/25/10/3911/14102011/bhu277.pdf}
29+
}

src/roi/plotDataInRoi.m

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,11 @@ function labelAxis(roiAs, rows, cols, subplotList, roiImages, dataLabel)
222222
subplot(rows, cols, subplotList(1, i));
223223

224224
bf = bids.File(roiImages{i});
225-
title(sprintf('roi: %s', bf.entities.label));
225+
desc = '';
226+
if isfield(bf.entities, 'desc')
227+
desc = sprintf('- desc: %s', bf.entities.desc);
228+
end
229+
title(sprintf('roi: %s%s', bf.entities.label, desc));
226230

227231
subplot(rows, cols, subplotList(end, i));
228232

src/roi/resliceRoiImages.m

Lines changed: 28 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,31 @@
1-
% (C) Copyright 2021 CPP ROI developers
2-
3-
function reslicedImages = resliceRoiImages(referenceImage, imagesToCheck)
1+
function [reslicedImages, matlabbatch] = resliceRoiImages(referenceImage, imagesToCheck, dryRun)
2+
%
3+
% Check if images are in the same orientation and reslice if necessarrry.
4+
%
5+
% USAGE::
6+
%
7+
% reslicedImages = resliceRoiImages(referenceImage, imagesToCheck, dryRun)
8+
%
9+
% :param referenceImage:
10+
% :type referenceImage: path
11+
%
12+
% :param imagesToCheck:
13+
% :type imagesToCheck: path or cellstr
14+
%
15+
% :param dryRun: Returns the matlabbatch without running it.
16+
% :type dryRun: logical
17+
%
18+
% (C) Copyright 2021 CPP ROI developers
419

520
% TODO
621
% - allow option to binarize output?
722

23+
if nargin < 3
24+
dryRun = false;
25+
end
26+
27+
matlabbatch = {};
28+
829
% check if files are in the same space
930
% if not we reslice the ROI to have the same resolution as the data image
1031
sts = checkRoiOrientation(referenceImage, imagesToCheck);
@@ -13,9 +34,11 @@
1334

1435
else
1536

16-
matlabbatch = {};
1737
matlabbatch = setBatchReslice(matlabbatch, referenceImage, imagesToCheck);
18-
spm_jobman('run', matlabbatch);
38+
39+
if ~dryRun
40+
spm_jobman('run', matlabbatch);
41+
end
1942

2043
basename = spm_file(imagesToCheck, 'basename');
2144
reslicedImages = spm_file(imagesToCheck, 'basename', ...

version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v0.2.0dev
1+
v0.3.0

0 commit comments

Comments
 (0)