Skip to content

Commit e2a64a5

Browse files
authored
Patch regmotoasl (#320)
* Directly pass outputs through regmotoasl. * Update pyproject.toml * Update changelog. * Fix license badge.
1 parent 1f39cc7 commit e2a64a5

File tree

4 files changed

+42
-9
lines changed

4 files changed

+42
-9
lines changed

CHANGES.md

+33
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,36 @@
1+
## 0.4.0
2+
3+
This release re-implements multi-delay PCASL and single-delay Q2TIPS PASL support.
4+
5+
Additionally, we have replaced certain BOLD-specific steps with ASL-compatible alternatives. One such case is slice timing correction. Rather than interpolate the ASL time series to perform slice timing correction (as in BOLD preprocessing), ASLPrep now shifts PLDs according to the slice timing. The other major change is to motion correction, which is now performed separately for each image type in the ASL time series (e.g., control, label, and M0 volumes).
6+
7+
Thanks to Sudipto Dolui, Jian Hu, Jan Petr, Manuel Taso, and Kay Jann for their help and feedback.
8+
9+
<!-- Release notes generated using configuration in .github/release.yml at main -->
10+
11+
## What's Changed
12+
### 🛠 Breaking Changes
13+
* Use same TPM threshold for GE and non-GE data by @tsalo in https://github.com/PennLINC/aslprep/pull/263
14+
* Remove slice-timing correction by @tsalo in https://github.com/PennLINC/aslprep/pull/269
15+
### 🎉 Exciting New Features
16+
* Shift PostLabelingDelay(s) by slice times by @tsalo in https://github.com/PennLINC/aslprep/pull/280
17+
* Perform motion correction separately for each image type by @tsalo in https://github.com/PennLINC/aslprep/pull/275
18+
* Support single-PLD Q2TIPS PASL and multi-PLD PCASL by @tsalo in https://github.com/PennLINC/aslprep/pull/268
19+
### 🐛 Bug Fixes
20+
* Support runs with SCORE/SCRUB disabled by @tsalo in https://github.com/PennLINC/aslprep/pull/279
21+
* Reorganize atlases and add them to the package data by @tsalo in https://github.com/PennLINC/aslprep/pull/282
22+
### Other Changes
23+
* Refactor workflow connections by @tsalo in https://github.com/PennLINC/aslprep/pull/261
24+
* Refactor more by @tsalo in https://github.com/PennLINC/aslprep/pull/264
25+
* Remove unused workflows by @tsalo in https://github.com/PennLINC/aslprep/pull/271
26+
* Remove test-made nifti files before storing artifacts by @tsalo in https://github.com/PennLINC/aslprep/pull/274
27+
* Improve plots by @tsalo in https://github.com/PennLINC/aslprep/pull/286
28+
* Remove multi-echo elements by @tsalo in https://github.com/PennLINC/aslprep/pull/294
29+
* Document M0 scaling by @tsalo in https://github.com/PennLINC/aslprep/pull/292
30+
31+
32+
**Full Changelog**: https://github.com/PennLINC/aslprep/compare/0.3.0...0.4.0
33+
134
## 0.3.0
235

336
0.3.0 reflects renewed maintenance for ASLPrep.

README.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
:target: https://zenodo.org/badge/latestdoi/256420694
3131
:alt: Zenodo DOI
3232

33-
.. image:: https://img.shields.io/github/license/pennlinc/aslprep
33+
.. image:: https://img.shields.io/badge/License-BSD--3--Clause-green
3434
:target: https://opensource.org/licenses/BSD-3-Clause
3535
:alt: License
3636

aslprep/interfaces/cbf.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -963,17 +963,17 @@ def regmotoasl(asl, m0file, m02asl):
963963
meanasl = fsl.MeanImage()
964964
meanasl.inputs.in_file = asl
965965
meanasl.inputs.out_file = fname_presuffix(asl, suffix="_meanasl")
966-
meanasl.run()
966+
meanasl_results = meanasl.run()
967967
meanm0 = fsl.MeanImage()
968968
meanm0.inputs.in_file = m0file
969969
meanm0.inputs.out_file = fname_presuffix(asl, suffix="_meanm0")
970-
meanm0.run()
970+
meanm0_results = meanm0.run()
971971
flt = fsl.FLIRT(bins=640, cost_func="mutualinfo")
972-
flt.inputs.in_file = meanm0.inputs.out_file
973-
flt.inputs.reference = meanasl.inputs.out_file
972+
flt.inputs.in_file = meanm0_results.outputs.out_file
973+
flt.inputs.reference = meanasl_results.outputs.out_file
974974
flt.inputs.out_file = m02asl
975-
flt.run()
976-
return m02asl
975+
flt_results = flt.run()
976+
return flt_results.outputs.out_file
977977

978978

979979
def refine_ref_mask(t1w_mask, ref_asl_mask, t12ref_transform, tmp_mask, refined_mask):

pyproject.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,10 @@ doc = [
6262
"pydot >= 1.2.3",
6363
"pydotplus",
6464
"recommonmark",
65-
"sphinx >= 4.2.0",
65+
"sphinx >= 6.2.1",
6666
"sphinx-argparse",
6767
"sphinx-markdown-tables",
68-
"sphinx_rtd_theme",
68+
"sphinx_rtd_theme >= 1.2.2",
6969
"sphinxcontrib-apidoc",
7070
"sphinxcontrib-bibtex",
7171
]

0 commit comments

Comments
 (0)