Giter Site home page Giter Site logo

generate_motion_statistics assumes rotations are last three columns of movement parameter file and other issues re FD/scrubbing about c-pac HOT 2 CLOSED

fcp-indi avatar fcp-indi commented on August 18, 2024
generate_motion_statistics assumes rotations are last three columns of movement parameter file and other issues re FD/scrubbing

from c-pac.

Comments (2)

RanjitK avatar RanjitK commented on August 18, 2024

Hi Maarten,

Thanks a lot for your suggestion. I would replace my FD awk calculation with python code and also discuss the mcflirt and use of afni 3dcalc issue in our developer's meeting. We were not using nibabel to save the nifti file because it changes the header information of the nifti file. Also, 3dcalc is much faster than doing it with python. So we decided to keep it. Thanks for your points and helping us improve the cpac workflows.

from c-pac.

maartenmennes avatar maartenmennes commented on August 18, 2024

Hi Ranjit,

thanks for following up. What header information does it alter then? I did some quick comparisons and if I use the following:

temp_image = nb.Nifti1Image(data, affine=img.get_affine(), header=img.get_header())

then I can't see any change in the header (using fslhd and 3dinfo, except for the identifier code).

Looks like you are right regarding the speed of 3dcalc, quick test:
3dcalc: 6.2 seconds
nibabel save: 10.4 seconds

from c-pac.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. šŸ“ŠšŸ“ˆšŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.