Skip to content

Commit ecd37d5

Browse files
Merge pull request #204 from Medical-Image-Analysis-Laboratory/v2.1.0
REL: MIALSRTK v2.1.0
2 parents e5626f6 + cce7cfc commit ecd37d5

35 files changed

+1848
-1517
lines changed

.all-contributorsrc

+32-9
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,13 @@
1212
"profile": "https://github.com/sebastientourbier",
1313
"contributions": [
1414
"design",
15-
"test",
1615
"code",
16+
"infra",
17+
"test",
18+
"bug",
1719
"example",
1820
"doc",
21+
"ideas",
1922
"review"
2023
]
2124
},
@@ -25,10 +28,13 @@
2528
"avatar_url": "https://avatars2.githubusercontent.com/u/19345763?v=4",
2629
"profile": "https://github.com/pdedumast",
2730
"contributions": [
31+
"design",
2832
"example",
2933
"test",
3034
"code",
31-
"doc"
35+
"doc",
36+
"ideas",
37+
"review"
3238
]
3339
},
3440
{
@@ -40,16 +46,23 @@
4046
"example",
4147
"test",
4248
"code",
43-
"doc"
49+
"doc",
50+
"ideas"
4451
]
4552
},
4653
{
47-
"login": "meribach",
48-
"name": "Meritxell Bach",
49-
"avatar_url": "https://avatars3.githubusercontent.com/u/2786897?v=4",
50-
"profile": "https://github.com/meribach",
54+
"login": "t-sanchez",
55+
"name": "Thomas Sanchez",
56+
"avatar_url": "https://avatars.githubusercontent.com/u/14288440?v=4",
57+
"profile": "http://t-sanchez.github.io",
5158
"contributions": [
52-
"fundingFinding"
59+
"bug",
60+
"code",
61+
"doc",
62+
"example",
63+
"ideas",
64+
"infra",
65+
"review"
5366
]
5467
},
5568
{
@@ -72,12 +85,22 @@
7285
"data",
7386
"fundingFinding"
7487
]
88+
},
89+
{
90+
"login": "meribach",
91+
"name": "Meritxell Bach",
92+
"avatar_url": "https://avatars3.githubusercontent.com/u/2786897?v=4",
93+
"profile": "https://github.com/meribach",
94+
"contributions": [
95+
"fundingFinding"
96+
]
7597
}
7698
],
7799
"contributorsPerLine": 7,
78100
"projectName": "mialsuperresolutiontoolkit",
79101
"projectOwner": "Medical-Image-Analysis-Laboratory",
80102
"repoType": "github",
81103
"repoHost": "https://github.com",
82-
"skipCi": true
104+
"skipCi": true,
105+
"commitConvention": "angular"
83106
}

.circleci/config.yml

+10-10
Original file line numberDiff line numberDiff line change
@@ -807,14 +807,14 @@ workflows:
807807
tags:
808808
only: /^v.*/
809809

810-
# - deploy-singularity-latest:
811-
# requires:
812-
# - build-singularity
813-
# # - build_docs
814-
# - test-singularity
815-
# - codacy-coverage-report
816-
# filters:
817-
# # ignore any commit on any branch by default
818-
# branches:
819-
# only: master
810+
- deploy-singularity-latest:
811+
requires:
812+
- build-singularity
813+
# - build_docs
814+
- test-singularity
815+
- codacy-coverage-report
816+
filters:
817+
# ignore any commit on any branch by default
818+
branches:
819+
only: master
820820

.circleci/test-01_outputs.txt

+244-244
Large diffs are not rendered by default.

.circleci/test-02_outputs.txt

+263-263
Large diffs are not rendered by default.

.circleci/test-03_outputs.txt

+244-244
Large diffs are not rendered by default.

.circleci/test-04_outputs.txt

+263-263
Large diffs are not rendered by default.

.zenodo.json

+15-6
Original file line numberDiff line numberDiff line change
@@ -10,31 +10,40 @@
1010
"BIDS",
1111
"bids-apps"
1212
],
13-
"publication_date": "2020-12-24",
1413
"creators": [
1514
{
1615
"name": "Tourbier, Sebastien",
17-
"affiliation": "Department of Radiology, Lausanne University Hospital (CHUV), Switzerland",
16+
"affiliation": "Department of Clinical Neuroscience, Lausanne University Hospital (CHUV), Switzerland",
1817
"orcid": "0000-0002-4441-899X"
1918
},
2019
{
2120
"name": "De Dumast, Priscille",
22-
"affiliation": "Department of Radiology, Lausanne University Hospital (CHUV), Switzerland",
21+
"affiliation": "Department of Diagnostic and Interventional Radiology, Lausanne University Hospital (CHUV) and University of Lausanne (UNIL), Switzerland; Center for Biomedical Imaging (CIBM), Switzerland",
2322
"orcid": "0000-0003-0359-9365"
2423
},
2524
{
2625
"name": "Kebiri, Hamza",
27-
"affiliation": "Department of Radiology, Lausanne University Hospital (CHUV), Switzerland",
26+
"affiliation": "Department of Diagnostic and Interventional Radiology, Lausanne University Hospital (CHUV) and University of Lausanne (UNIL), Switzerland; Center for Biomedical Imaging (CIBM), Switzerland",
2827
"orcid": "0000-0001-7592-3166"
2928
},
29+
{
30+
"name": "Sanchez, Thomas",
31+
"affiliation": "Department of Diagnostic and Interventional Radiology, Lausanne University Hospital (CHUV) and University of Lausanne (UNIL), Switzerland; Center for Biomedical Imaging (CIBM), Switzerland",
32+
"orcid": "0000-0003-3668-5155"
33+
},
34+
{
35+
"name": "Lajous, Helene",
36+
"affiliation": "Department of Diagnostic and Interventional Radiology, Lausanne University Hospital (CHUV) and University of Lausanne (UNIL), Switzerland; Center for Biomedical Imaging (CIBM), Switzerland",
37+
"orcid": "0000-0001-7729-6274"
38+
},
3039
{
3140
"name": "Hagmann, Patric",
32-
"affiliation": "Department of Radiology, Lausanne University Hospital (CHUV), Switzerland",
41+
"affiliation": "Department of Diagnostic and Interventional Radiology, Lausanne University Hospital (CHUV) and University of Lausanne (UNIL), Switzerland",
3342
"orcid": "0000-0002-2854-6561"
3443
},
3544
{
3645
"name": "Bach Cuadra, Meritxell",
37-
"affiliation": "Department of Radiology, Lausanne University Hospital (CHUV), Switzerland",
46+
"affiliation": "Department of Diagnostic and Interventional Radiology, Lausanne University Hospital (CHUV) and University of Lausanne (UNIL), Switzerland; Center for Biomedical Imaging (CIBM), Switzerland",
3847
"orcid": "0000-0003-2730-4285"
3948
}
4049
],

Dockerfile

+6-2
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,12 @@ WORKDIR /opt/mialsuperresolutiontoolkit/build
6868
# You can increase the number of cores used by make ("make -jN")
6969
# to speed up local build. However, make sure that it is
7070
# set back to make -j2 before pushing any change to GitHub.
71-
RUN cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/usr/local -D USE_OMP:BOOL=ON ../src \
72-
&& make -j6 && make install
71+
RUN cmake \
72+
-D CMAKE_BUILD_TYPE=Release \
73+
-D CMAKE_INSTALL_PREFIX=/usr/local \
74+
-D USE_OMP:BOOL=ON ../src && \
75+
make -j6 && \
76+
make install
7377

7478
##############################################################
7579
# Python cache setup and creation of conda environment

README.md

+31-16
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# ![MIALSRTK logo](https://raw.githubusercontent.com/Medical-Image-Analysis-Laboratory/mialsuperresolutiontoolkit/dev-pgd-hk/documentation/images/mialsrtk-logo.png)
22
---
33

4-
Copyright © 2016-2020 Medical Image Analysis Laboratory, University Hospital Center and University of Lausanne (UNIL-CHUV), Switzerland
4+
Copyright © 2016-2023 Medical Image Analysis Laboratory, University Hospital Center and University of Lausanne (UNIL-CHUV), Switzerland
55

66
This software is distributed under the open-source BSD 3-Clause License. See [LICENSE](LICENSE.txt) file for details.
77

@@ -47,14 +47,16 @@ All these design considerations allow us not only to (1) represent the entire pr
4747
$ mialsuperresolutiontoolkit_[docker|singularity] -h
4848

4949
usage: mialsuperresolutiontoolkit_[docker|singularity] [-h]
50+
[--run_type {sr,preprocessing}]
5051
[--participant_label PARTICIPANT_LABEL [PARTICIPANT_LABEL ...]]
5152
[--param_file PARAM_FILE]
5253
[--openmp_nb_of_cores OPENMP_NB_OF_CORES]
5354
[--nipype_nb_of_cores NIPYPE_NB_OF_CORES]
5455
[--memory MEMORY]
5556
[--masks_derivatives_dir MASKS_DERIVATIVES_DIR]
56-
[-v]
57-
[--codecarbon_output_dir CODECARBON_OUTPUT_DIR]
57+
[--labels_derivatives_dir LABELS_DERIVATIVES_DIR]
58+
[--all_outputs] [-v] [--verbose]
59+
[--track_carbon_footprint]
5860
bids_dir output_dir {participant}
5961

6062
Argument parser of the MIALSRTK BIDS App Python wrapper
@@ -71,6 +73,10 @@ All these design considerations allow us not only to (1) represent the entire pr
7173

7274
optional arguments:
7375
-h, --help show this help message and exit
76+
--run_type {sr,preprocessing}
77+
Type of pipeline that is run. Can choose between
78+
running the super-resolution pipeline (`sr`) or only
79+
preprocessing (`preprocessing`).
7480
--participant_label PARTICIPANT_LABEL [PARTICIPANT_LABEL ...]
7581
The label(s) of the participant(s) that should be
7682
analyzed. The label corresponds to
@@ -101,27 +107,36 @@ All these design considerations allow us not only to (1) represent the entire pr
101107
--masks_derivatives_dir MASKS_DERIVATIVES_DIR
102108
Use manual brain masks found in
103109
``<output_dir>/<masks_derivatives_dir>/`` directory
104-
--codecarbon_output_dir CODECARBON_OUTPUT_DIR
105-
Directory path in which `codecarbon` saves a CSV file
106-
called `emissions.csv` reporting carbon footprint
107-
details of the overall run (Defaults to user’s home
108-
directory)
110+
--labels_derivatives_dir LABELS_DERIVATIVES_DIR
111+
Use low-resolution labelmaps found in
112+
``<output_dir>/<labels_derivatives_dir>/`` directory.
113+
--all_outputs Whether or not all outputs should be kept(e.g.
114+
preprocessed LR images)
109115
-v, --version show program's version number and exit
116+
--verbose Verbose mode
117+
--track_carbon_footprint
118+
Track carbon footprint with `codecarbon
119+
<https://codecarbon.io/>`_ and save results in a CSV
120+
file called ``emissions.csv`` in the
121+
``<bids_dir>/code`` directory.
110122

111123
## Credits
112124

113125
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
114126
<!-- prettier-ignore-start -->
115127
<!-- markdownlint-disable -->
116128
<table>
117-
<tr>
118-
<td align="center"><a href="https://github.com/sebastientourbier"><img src="https://avatars3.githubusercontent.com/u/22279770?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Sébastien Tourbier</b></sub></a><br /><a href="#design-sebastientourbier" title="Design">🎨</a> <a href="https://github.com/Medical-Image-Analysis-Laboratory/mialsuperresolutiontoolkit/commits?author=sebastientourbier" title="Tests">⚠️</a> <a href="https://github.com/Medical-Image-Analysis-Laboratory/mialsuperresolutiontoolkit/commits?author=sebastientourbier" title="Code">💻</a> <a href="#example-sebastientourbier" title="Examples">💡</a> <a href="https://github.com/Medical-Image-Analysis-Laboratory/mialsuperresolutiontoolkit/commits?author=sebastientourbier" title="Documentation">📖</a> <a href="https://github.com/Medical-Image-Analysis-Laboratory/mialsuperresolutiontoolkit/pulls?q=is%3Apr+reviewed-by%3Asebastientourbier" title="Reviewed Pull Requests">👀</a></td>
119-
<td align="center"><a href="https://github.com/pdedumast"><img src="https://avatars2.githubusercontent.com/u/19345763?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Priscille de Dumast</b></sub></a><br /><a href="#example-pdedumast" title="Examples">💡</a> <a href="https://github.com/Medical-Image-Analysis-Laboratory/mialsuperresolutiontoolkit/commits?author=pdedumast" title="Tests">⚠️</a> <a href="https://github.com/Medical-Image-Analysis-Laboratory/mialsuperresolutiontoolkit/commits?author=pdedumast" title="Code">💻</a> <a href="https://github.com/Medical-Image-Analysis-Laboratory/mialsuperresolutiontoolkit/commits?author=pdedumast" title="Documentation">📖</a></td>
120-
<td align="center"><a href="https://github.com/hamzake"><img src="https://avatars2.githubusercontent.com/u/27707790?v=4?s=100" width="100px;" alt=""/><br /><sub><b>hamzake</b></sub></a><br /><a href="#example-hamzake" title="Examples">💡</a> <a href="https://github.com/Medical-Image-Analysis-Laboratory/mialsuperresolutiontoolkit/commits?author=hamzake" title="Tests">⚠️</a> <a href="https://github.com/Medical-Image-Analysis-Laboratory/mialsuperresolutiontoolkit/commits?author=hamzake" title="Code">💻</a> <a href="https://github.com/Medical-Image-Analysis-Laboratory/mialsuperresolutiontoolkit/commits?author=hamzake" title="Documentation">📖</a></td>
121-
<td align="center"><a href="https://github.com/helenelajous"><img src="https://avatars.githubusercontent.com/u/58977568?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Hélène Lajous</b></sub></a><br /><a href="https://github.com/Medical-Image-Analysis-Laboratory/mialsuperresolutiontoolkit/issues?q=author%3Ahelenelajous" title="Bug reports">🐛</a> <a href="https://github.com/Medical-Image-Analysis-Laboratory/mialsuperresolutiontoolkit/commits?author=helenelajous" title="Tests">⚠️</a></td>
122-
<td align="center"><a href="https://wp.unil.ch/connectomics"><img src="https://avatars.githubusercontent.com/u/411192?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Patric Hagmann</b></sub></a><br /><a href="#data-pahagman" title="Data">🔣</a> <a href="#fundingFinding-pahagman" title="Funding Finding">🔍</a></td>
123-
<td align="center"><a href="https://github.com/meribach"><img src="https://avatars3.githubusercontent.com/u/2786897?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Meritxell Bach</b></sub></a><br /><a href="#fundingFinding-meribach" title="Funding Finding">🔍</a></td>
124-
</tr>
129+
<tbody>
130+
<tr>
131+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/sebastientourbier"><img src="https://avatars3.githubusercontent.com/u/22279770?v=4?s=100" width="100px;" alt="Sébastien Tourbier"/><br /><sub><b>Sébastien Tourbier</b></sub></a><br /><a href="#design-sebastientourbier" title="Design">🎨</a> <a href="https://github.com/Medical-Image-Analysis-Laboratory/mialsuperresolutiontoolkit/commits?author=sebastientourbier" title="Code">💻</a> <a href="#infra-sebastientourbier" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a> <a href="https://github.com/Medical-Image-Analysis-Laboratory/mialsuperresolutiontoolkit/commits?author=sebastientourbier" title="Tests">⚠️</a> <a href="https://github.com/Medical-Image-Analysis-Laboratory/mialsuperresolutiontoolkit/issues?q=author%3Asebastientourbier" title="Bug reports">🐛</a> <a href="#example-sebastientourbier" title="Examples">💡</a> <a href="https://github.com/Medical-Image-Analysis-Laboratory/mialsuperresolutiontoolkit/commits?author=sebastientourbier" title="Documentation">📖</a> <a href="#ideas-sebastientourbier" title="Ideas, Planning, & Feedback">🤔</a> <a href="https://github.com/Medical-Image-Analysis-Laboratory/mialsuperresolutiontoolkit/pulls?q=is%3Apr+reviewed-by%3Asebastientourbier" title="Reviewed Pull Requests">👀</a></td>
132+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/pdedumast"><img src="https://avatars2.githubusercontent.com/u/19345763?v=4?s=100" width="100px;" alt="Priscille de Dumast"/><br /><sub><b>Priscille de Dumast</b></sub></a><br /><a href="#design-pdedumast" title="Design">🎨</a> <a href="#example-pdedumast" title="Examples">💡</a> <a href="https://github.com/Medical-Image-Analysis-Laboratory/mialsuperresolutiontoolkit/commits?author=pdedumast" title="Tests">⚠️</a> <a href="https://github.com/Medical-Image-Analysis-Laboratory/mialsuperresolutiontoolkit/commits?author=pdedumast" title="Code">💻</a> <a href="https://github.com/Medical-Image-Analysis-Laboratory/mialsuperresolutiontoolkit/commits?author=pdedumast" title="Documentation">📖</a> <a href="#ideas-pdedumast" title="Ideas, Planning, & Feedback">🤔</a> <a href="https://github.com/Medical-Image-Analysis-Laboratory/mialsuperresolutiontoolkit/pulls?q=is%3Apr+reviewed-by%3Apdedumast" title="Reviewed Pull Requests">👀</a></td>
133+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/hamzake"><img src="https://avatars2.githubusercontent.com/u/27707790?v=4?s=100" width="100px;" alt="hamzake"/><br /><sub><b>hamzake</b></sub></a><br /><a href="#example-hamzake" title="Examples">💡</a> <a href="https://github.com/Medical-Image-Analysis-Laboratory/mialsuperresolutiontoolkit/commits?author=hamzake" title="Tests">⚠️</a> <a href="https://github.com/Medical-Image-Analysis-Laboratory/mialsuperresolutiontoolkit/commits?author=hamzake" title="Code">💻</a> <a href="https://github.com/Medical-Image-Analysis-Laboratory/mialsuperresolutiontoolkit/commits?author=hamzake" title="Documentation">📖</a> <a href="#ideas-hamzake" title="Ideas, Planning, & Feedback">🤔</a></td>
134+
<td align="center" valign="top" width="14.28%"><a href="http://t-sanchez.github.io"><img src="https://avatars.githubusercontent.com/u/14288440?v=4?s=100" width="100px;" alt="Thomas Sanchez"/><br /><sub><b>Thomas Sanchez</b></sub></a><br /><a href="https://github.com/Medical-Image-Analysis-Laboratory/mialsuperresolutiontoolkit/issues?q=author%3At-sanchez" title="Bug reports">🐛</a> <a href="https://github.com/Medical-Image-Analysis-Laboratory/mialsuperresolutiontoolkit/commits?author=t-sanchez" title="Code">💻</a> <a href="https://github.com/Medical-Image-Analysis-Laboratory/mialsuperresolutiontoolkit/commits?author=t-sanchez" title="Documentation">📖</a> <a href="#example-t-sanchez" title="Examples">💡</a> <a href="#ideas-t-sanchez" title="Ideas, Planning, & Feedback">🤔</a> <a href="#infra-t-sanchez" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a> <a href="https://github.com/Medical-Image-Analysis-Laboratory/mialsuperresolutiontoolkit/pulls?q=is%3Apr+reviewed-by%3At-sanchez" title="Reviewed Pull Requests">👀</a></td>
135+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/helenelajous"><img src="https://avatars.githubusercontent.com/u/58977568?v=4?s=100" width="100px;" alt="Hélène Lajous"/><br /><sub><b>Hélène Lajous</b></sub></a><br /><a href="https://github.com/Medical-Image-Analysis-Laboratory/mialsuperresolutiontoolkit/issues?q=author%3Ahelenelajous" title="Bug reports">🐛</a> <a href="https://github.com/Medical-Image-Analysis-Laboratory/mialsuperresolutiontoolkit/commits?author=helenelajous" title="Tests">⚠️</a> <a href="https://github.com/Medical-Image-Analysis-Laboratory/mialsuperresolutiontoolkit/pulls?q=is%3Apr+reviewed-by%3Ahelenelajous" title="Reviewed Pull Requests">👀</a></td>
136+
<td align="center" valign="top" width="14.28%"><a href="https://wp.unil.ch/connectomics"><img src="https://avatars.githubusercontent.com/u/411192?v=4?s=100" width="100px;" alt="Patric Hagmann"/><br /><sub><b>Patric Hagmann</b></sub></a><br /><a href="#data-pahagman" title="Data">🔣</a> <a href="#fundingFinding-pahagman" title="Funding Finding">🔍</a></td>
137+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/meribach"><img src="https://avatars3.githubusercontent.com/u/2786897?v=4?s=100" width="100px;" alt="Meritxell Bach"/><br /><sub><b>Meritxell Bach</b></sub></a><br /><a href="#fundingFinding-meribach" title="Funding Finding">🔍</a></td>
138+
</tr>
139+
</tbody>
125140
</table>
126141

127142
<!-- markdownlint-restore -->

docker/bidsapp/environment.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ dependencies:
1010
- python=3.7.10
1111
- pip=21.0.1
1212
- pandas=1.1.5
13-
- nipype=1.8.3
14-
- nilearn=0.8.1
13+
- nipype=1.8.4
14+
- nilearn=0.8.0
1515
- pydotplus=2.0.2
1616
- pandoc=2.14.2
1717
- seaborn=0.11.2
1818
- matplotlib=3.4
1919
- tensorflow==1.13.1
20-
- scikit-learn=1.0.1
20+
- scikit-learn=0.21.3
2121
- scikit-image=0.16.2
2222
- ants=2.2.0
2323

docker/bidsapp/run.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright © 2016-2021 Medical Image Analysis Laboratory, University Hospital Center and University of Lausanne (UNIL-CHUV), Switzerland
1+
# Copyright © 2016-2023 Medical Image Analysis Laboratory, University Hospital Center and University of Lausanne (UNIL-CHUV), Switzerland
22
#
33
# This software is distributed under the open-source license Modified BSD.
44

documentation/api_pipelines.rst

+8
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@
44
Pipelines module
55
******************
66

7+
.. automodule:: pymialsrtk.pipelines.anatomical.abstract
8+
:members:
9+
:show-inheritance:
10+
11+
.. automodule:: pymialsrtk.pipelines.anatomical.preprocessing
12+
:members:
13+
:show-inheritance:
14+
715
.. automodule:: pymialsrtk.pipelines.anatomical.srr
816
:members:
917
:show-inheritance:

0 commit comments

Comments
 (0)