Conversion from NIFTI (.nii.gz) to CIFTI (dtseries.nii)

84 views
Skip to first unread message

Việt Lương Hoàng

unread,
Sep 18, 2025, 6:04:08 PM (8 days ago) Sep 18
to HCP-Users

Hi all, 

Thank you for your work with wb_command. I am currently working on converting resting-state fMRI data from NIfTI format (.nii.gz) to .dtseries.nii. I tried doing this using my own script, but after conversion I noticed that some columns in the output (with shape T × D, where T is the number of time steps and D = 91,282) contain only zeros.

I’ve attached my script here. If there is a straightforward way to adjust it, that would be very helpful. Also, do I need a T1w file for this conversion, or is the resting-state fMRI NIfTI alone sufficient to generate the .dtseries.nii file?

convert_hcp_aging_dtseries.sh

Glasser, Matthew

unread,
Sep 18, 2025, 6:05:32 PM (8 days ago) Sep 18
to hcp-...@humanconnectome.org

This is the purpose of the HCP fMRI Pipelines.  Why are you trying to do this outside of them?

Matt.

--
You received this message because you are subscribed to the Google Groups "HCP-Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hcp-users+...@humanconnectome.org.
To view this discussion visit https://groups.google.com/a/humanconnectome.org/d/msgid/hcp-users/3767110f-36ac-4e20-a945-fa0f2b210429n%40humanconnectome.org.

 


The materials in this message are private and may contain Protected Healthcare Information or other information of a sensitive nature. If you are not the intended recipient, be advised that any unauthorized use, disclosure, copying or the taking of any action in reliance on the contents of this information is strictly prohibited. If you have received this email in error, please immediately notify the sender via telephone or return mail.

Việt Lương Hoàng

unread,
Sep 18, 2025, 7:23:45 PM (8 days ago) Sep 18
to HCP-Users, glas...@wustl.edu
Hi Mattew, 

Because I want to run a script or command the terminal without download lots of external package (FSL, FreeSurfer). If it is not possible then I guess I might install everything and redo the conversion. 

Vào lúc 17:05:32 UTC-5 ngày Thứ Năm, 18 tháng 9, 2025, glas...@wustl.edu đã viết:

Tim Coalson

unread,
Sep 18, 2025, 7:50:59 PM (8 days ago) Sep 18
to hcp-...@humanconnectome.org, glas...@wustl.edu
Cifti files are designed to represent cortical data using surface vertices.  To accurately map volume data to the surface, you need to have surface files for that subject.  We use freesurfer to generate these necessary surfaces (and the way we use freesurfer is our pipelines, which also use FSL, and MSM to register them, etc).

If you want your data properly converted to 91k grayordinates space, the HCP pipelines are the recommended way to get there (you need freesurfer plus additional pipeline code of some kind).

Tim


Glasser, Matthew

unread,
Sep 18, 2025, 8:12:58 PM (8 days ago) Sep 18
to tim.c...@gmail.com, hcp-...@humanconnectome.org

Is this HCP data or your data?  If you don’t want to deal with setting up the HCP Pipelines environment, we recommend using the QuNex container: https://qunex.yale.edu.

 

Matt.

Việt Lương Hoàng

unread,
Sep 18, 2025, 10:09:31 PM (8 days ago) Sep 18
to HCP-Users, glas...@wustl.edu, tim.c...@gmail.com
I want to do the conversion other datas not only HCP Data

Vào lúc 19:12:58 UTC-5 ngày Thứ Năm, 18 tháng 9, 2025, glas...@wustl.edu đã viết:

Glasser, Matthew

unread,
Sep 18, 2025, 11:39:37 PM (8 days ago) Sep 18
to Việt Lương Hoàng, HCP-Users, tim.c...@gmail.com

Using the HCP Pipelines in QuNex is your best bet then.  If you want advice on that, post the specs of your data.

Reply all
Reply to author
Forward
0 new messages