Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

FIX: Set pixdim[4] to match RepetitionTime #679

Merged
merged 3 commits into from
Mar 9, 2022

Conversation

effigies
Copy link
Member

@effigies effigies commented Feb 3, 2022

Via https://neurostars.org/t/modifying-nifti-files-before-fmriprep/21340/4, a dataset with RepetitionTime == 2, pixdim[4] == 2000 and xyzt_units & NIFTI_UNITS_MSEC == NIFTI_UNITS_MSEC has its outputs written out with RepetiionTime == 2, pixdim[4] == 2000 and xyzt_units & NIFTI_UNITS_SEC == NIFTI_UNITS_SEC.

This fix ensures that RepetitionTime gets written to pixdim[4] for BOLD series. This should avoid any conflicts with other 4+D data that doesn't have second units.

@arokem @a3sha2 Are there any similar considerations for dMRI/ASL that we should fix while we're here?

@pep8speaks
Copy link

pep8speaks commented Feb 3, 2022

Hello @effigies, Thank you for updating!

Cheers! There are no style issues detected in this Pull Request. 🍻 To test for issues locally, pip install flake8 and then run flake8 niworkflows.

Comment last updated at 2022-03-09 17:25:17 UTC

@a3sha2
Copy link
Member

a3sha2 commented Feb 5, 2022

@effigies ASL is similar to fmri (or bold) this will work

@effigies effigies added this to the 1.3.5 milestone Feb 9, 2022
@effigies effigies merged commit 6c45568 into nipreps:maint/1.3.x Mar 9, 2022
@effigies effigies deleted the fix/set_TR branch March 9, 2022 20:03
effigies added a commit to nipreps/fmriprep that referenced this pull request Jul 18, 2024
20.2.8 (July 18, 2024)

Bug-fix release in the 20.2.x LTS series.

We anticipate this being the final release in the 20.2.x LTS series.

* FIX: Select volumetric dseg.tsv from recent TemplateFlow releases (#3257)
* FIX: LTS package build (#3328)
* DOC: Read html_baseurl from RTD environment, if available (#3324)
* DOCKER: Pin conda environment more strictly (#2853)
* MNT: Require niworkflows ~1.3.6 (#2740)
* CI: Upgrade docker orb (#2865)

This release includes a number of fixes that have accumulated in niworkflows,
including the following fixes that affect fMRIPrep:

* FIX: Remove unused ANTs parameter that was removed in 2.4.1 (nipreps/sdcflows#431)
* FIX: Limit 3dQwarp to maximum 4 CPUs for stability reasons (nipreps/sdcflows#128)
* MAINT: Make call to scipy.stats.mode compatible with scipy 1.11.0 (nipreps/sdcflows#371)
* FIX: TSV2JSON should convert empty TSV files to empty JSON files (nipreps/niworkflows#747)
* FIX: Use copy function that does not preserve mtime when creating fsaverage
  directories (nipreps/niworkflows#703)
* FIX: Set pixdim[4] to match RepetitionTime (nipreps/niworkflows#679)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants