Skip to content

[WIP] ENH: Read 4dfp_tools motion parameters #2765

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
wants to merge 2 commits into from

Conversation

effigies
Copy link
Member

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

  • (Mandatory) I acknowledge that this contribution will be available under the Apache 2 license.

@effigies effigies added this to the 1.1.5 milestone Oct 31, 2018
@effigies effigies modified the milestones: 1.1.5, 1.1.6 Nov 7, 2018
@effigies effigies modified the milestones: 1.1.6, 1.1.7 Nov 26, 2018
@effigies effigies modified the milestones: 1.1.7, 1.1.8 Dec 14, 2018
@codecov-io
Copy link

codecov-io commented Dec 17, 2018

Codecov Report

Merging #2765 into master will decrease coverage by <.01%.
The diff coverage is 33.33%.

Impacted file tree graph

@@            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%) ⬇️
#unittests 64.85% <0%> (-0.01%) ⬇️
Impacted Files Coverage Δ
nipype/algorithms/modelgen.py 67.44% <ø> (ø) ⬆️
nipype/algorithms/confounds.py 66.6% <ø> (ø) ⬆️
nipype/algorithms/rapidart.py 64.41% <ø> (ø) ⬆️
nipype/utils/misc.py 66.06% <33.33%> (-0.61%) ⬇️
nipype/interfaces/dynamic_slicer.py 17.47% <0%> (ø) ⬆️
nipype/interfaces/nipy/preprocess.py 45.79% <0%> (ø) ⬆️
nipype/interfaces/io.py 53.99% <0%> (ø) ⬆️
nipype/interfaces/freesurfer/preprocess.py 66.11% <0%> (ø) ⬆️
nipype/testing/utils.py 91.37% <0%> (+1.72%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2b124a9...a02433c. Read the comment docs.

@effigies effigies mentioned this pull request Jan 25, 2019
16 tasks
@effigies effigies modified the milestones: 1.1.8, future Jan 27, 2019
@effigies effigies closed this Oct 31, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants