nipype
nipype copied to clipboard
[WIP] ENH: Read 4dfp_tools motion parameters
Summary
4dfp tools produces .dat files of the following pattern:
#mat2dat sub-MSC01_ses-func02_task-rest_bold_xr3d.mat
#$Id: mat2dat.c,v 1.16 2018/06/23 23:46:39 avi Exp $
#frame dx(mm) dy(mm) dz(mm) X(deg) Y(deg) Z(deg) scale
1 0.0485 -0.3493 0.0581 -0.0644 0.1646 0.1608 0.9959
2 0.0587 -0.2188 0.0379 -0.0611 0.1391 0.1533 1.0006
3 0.0798 -0.3905 -0.0083 -0.0515 0.1493 0.1359 1.0034
np.loadtxt loads the file pretty easily.
Will add a test file before merge.
List of changes proposed in this PR (pull-request)
Acknowledgment
- [x] (Mandatory) I acknowledge that this contribution will be available under the Apache 2 license.
Codecov Report
Merging #2765 into master will decrease coverage by
<.01%. The diff coverage is33.33%.
@@ Coverage Diff @@
## master #2765 +/- ##
==========================================
- Coverage 67.45% 67.45% -0.01%
==========================================
Files 341 341
Lines 43355 43358 +3
Branches 5379 5380 +1
==========================================
+ Hits 29245 29247 +2
+ Misses 13413 13407 -6
- Partials 697 704 +7
| Flag | Coverage Δ | |
|---|---|---|
| #smoketests | 50.54% <33.33%> (-0.01%) |
:arrow_down: |
| #unittests | 64.85% <0%> (-0.01%) |
:arrow_down: |
| Impacted Files | Coverage Δ | |
|---|---|---|
| nipype/algorithms/modelgen.py | 67.44% <ø> (ø) |
:arrow_up: |
| nipype/algorithms/confounds.py | 66.6% <ø> (ø) |
:arrow_up: |
| nipype/algorithms/rapidart.py | 64.41% <ø> (ø) |
:arrow_up: |
| nipype/utils/misc.py | 66.06% <33.33%> (-0.61%) |
:arrow_down: |
| nipype/interfaces/dynamic_slicer.py | 17.47% <0%> (ø) |
:arrow_up: |
| nipype/interfaces/nipy/preprocess.py | 45.79% <0%> (ø) |
:arrow_up: |
| nipype/interfaces/io.py | 53.99% <0%> (ø) |
:arrow_up: |
| nipype/interfaces/freesurfer/preprocess.py | 66.11% <0%> (ø) |
:arrow_up: |
| nipype/testing/utils.py | 91.37% <0%> (+1.72%) |
:arrow_up: |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing dataPowered by Codecov. Last update 2b124a9...a02433c. Read the comment docs.