1,716 views
Skip to first unread message

Prabhjot Kaur

unread,
Aug 16, 2025, 4:24:06 PMAug 16
to hcp-...@humanconnectome.org
Hello Matt,

We are using workbench to process our  restFMRI data. We are using Cole anticevic atlas for parcellations. 

When trying to generate connectivity maps using wb-view, we are not getting connectivity matrix. What we can understand with our limited experience is that the label names are not been carried forward by parcels when applying  cifti-correlation command after cifti-parcellate. When checked using file info, the generated pconn.nii file is showing 'Maps with labelTable as false'. 
We have tried it with v2.1.0 also along with v1.4.2. 

Please guide with step-by-step process on how to go about this.

Prabhjot Kaur
PhD Scholar (IIT, Delhi) 
Senior Technical Officer (DRDO, Ministry of Defence, Govt of India)
91-9810904950


Glasser, Matthew

unread,
Aug 16, 2025, 4:28:04 PMAug 16
to hcp-...@humanconnectome.org

Maybe you should start with showing the commands you have used (with the latest version of Connectome Workbench).


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/CANTmu3kMVQ6KM0AimgBmYrCHOJ3CW4Qnr0oUdq6qx1ht_YqPvQ%40mail.gmail.com.

 


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.

Prabhjot Kaur

unread,
Aug 18, 2025, 4:34:36 AMAug 18
to hcp-...@humanconnectome.org
Dear Mathew,

I am using the following command line for generating pconn.nii file.

wb_command -cifti-parcellate sub-H002_bold.ptseries.nii \ CortexSubcortex_ColeAnticevic_NetPartition_wSubcorGSR_parcels_LR.dlabel.nii \ COLUMN sub-H002_bold_parcellated.ptseries.nii - method MEAN wb_command -cifti-correlation sub-H002_bold_parcellated.ptseries.nii \ sub-H002_bold.pconn.nii -fisher-z

The .pconn.nii file is created successfully and contains the correlation matrix, but the label tables from the atlas are missing (label table shows as false in Workbench).


Prabhjot Kaur
Delhi




Glasser, Matthew

unread,
Aug 18, 2025, 7:10:36 AMAug 18
to hcp-...@humanconnectome.org

That is expected behavior.  Label tables are found only in label files.

Tim Coalson

unread,
Aug 18, 2025, 5:06:51 PMAug 18
to hcp-...@humanconnectome.org
To elaborate, -cifti-parcellate uses the information from the label table to make the parcel definitions, but the vertices and voxels that participate in a parcel are encoded directly into the cifti XML, without using the table of "label colors, names, and keys" (which is only needed for displaying the extent of the labels when there isn't any associated area-averaged data in the file).  ptseries, pscalar, and pconn, etc. all contain parcel-summarized data values that can be colored with continuous palettes, so they don't need to know about label colors.

Tim



Prabhjot Kaur

unread,
Aug 19, 2025, 4:51:18 AMAug 19
to hcp-...@humanconnectome.org
Hello Tim,

Understood that Pconn or ptseries is not supposed to retain those labels. But when I am trying to open this pconn.nii file in wb_view to generate connectome, it is not showing the connectivity matrix. As per my understanding, when I click on any voxel, it should show its connections in the form of connectivity matrix. Guide me to generate those connectivity maps or heatmaps.

Thanks

Prabhjot Kaur
Delhi




Tim Coalson

unread,
Aug 19, 2025, 5:02:32 PMAug 19
to hcp-...@humanconnectome.org
You need to click on a vertex or voxel that is actually used by a parcel for the pconn layer to show anything, even when enabled.  Also make sure that both "load" and "layer" checkboxes in the connectivity tab are enabled (I think they should be by default).  You can load your dlabel file in another layer to show you where clicking will do something, and either turn the label layer off or change it to outline mode so you can see the pconn data through it.

Tim


Prabhjot Kaur

unread,
Aug 26, 2025, 3:36:26 AMAug 26
to hcp-...@humanconnectome.org
Hello Tim

Thanks for providing some clarity. As I can see, on adding pconn.nii files and dlabel.nii files, my layers box is not checked and is disabled in the connectivity tab.

But when I loaded dtseries.nii instead of pconn.nii, it generated an empty dynconn.nii file with both load and layer boxes checked in the connectivity tab.

Please guide.

Regards

Prabhjot Kaur
Delhi, India




Tim Coalson

unread,
Aug 26, 2025, 6:53:49 PMAug 26
to HCP-Users
For files that already contain a connectivity matrix, they are already available as a layer, so that checkbox wouldn't do anything, so we disable it, but disabling it may prevent it from appearing to be checked, so that is fine.  Make sure the load checkbox is checked.  Then, make sure the pconn layer in the overlays tab is also enabled, click inside one of your parcel labels in the 3D view, and turn off any layers above the pconn to see the connectivity data. 

The "layer" checkbox is basically for disabling the dynconn feature per-file when you don't want to do correlations in wb_view, in order to make the list of files in the overlay selection shorter and easier to work with. 

Tim


Prabhjot Kaur

unread,
Aug 27, 2025, 1:46:07 AMAug 27
to hcp-...@humanconnectome.org
Hello tim

I am still struggling with the issue.... 
I am hereby sharing the snippet of the wb_view window that is opening with pconn.nii and dlabel.nii files. Please have a look and guide as we are not getting an option to open 3d view.

Prabhjot Kaur
Delhi




wbview1.JPG

Glasser, Matthew

unread,
Aug 27, 2025, 6:34:03 AMAug 27
to hcp-...@humanconnectome.org

You also need to open some surface files (.surf.gii) to view things on surface models.

Prabhjot Kaur

unread,
Oct 9, 2025, 3:45:39 AM (9 days ago) Oct 9
to hcp-...@humanconnectome.org
Hello Tim
 Writing you after long. 

While adding surf.gii file, we got an error where fMRIprep midthickness files have higher resolution with 122k vertices, whereas our pconn.nii file is 32k. so we used some open source DiedrichsenLab fs_LR_32 /fs_LR.32k.R.midthickness.surf.gii files. 
 Now some colored maps are generated (file attached) , plz guide how can we generate conncetivity maps/ heat maps for our selected networks.

Prabhjot Kaur
Technical Officer 'C'
Institute of Nuclear Medicine & Allied Sciences
Defence Research & Development Organization 
Ministry of Defence 
Government of India
Delhi




Capture.JPG

Prabhjot Kaur

unread,
Oct 9, 2025, 7:32:18 AM (9 days ago) Oct 9
to hcp-...@humanconnectome.org
Hello Tim 

I have one more query.

We are using fewer networks  ( only 3 or 4) as defined in CAB-NP atlas. How can we generate connectivity maps for those only.

Prabhjot Kaur
Technical Officer 'C'
Institute of Nuclear Medicine & Allied Sciences
Defence Research & Development Organization 
Ministry of Defence 
Government of India
Delhi


Tim Coalson

unread,
Oct 9, 2025, 7:16:16 PM (8 days ago) Oct 9
to hcp-...@humanconnectome.org
One possibility is to make a new .dlabel.nii file that represents networks instead of parcels, -cifti-parcellate the dtseries with that, and then use -cifti-cross-correlation to the dtseries or the parcel-based ptseries, depending on whether you want network-to-vertex or network-to-parcel correlations (or just -cifti-correlation for network-to-network correlations).

parcellated correlation files aren't that big, I would just generate the whole thing and then ignore the networks you don't care about.

Tim


Germán González Torres

unread,
Oct 9, 2025, 9:17:12 PM (8 days ago) Oct 9
to hcp-...@humanconnectome.org
Good evening everyone, I would like to ask for your help for a project we are working on, it is about RSFN (Neuropsychological Functional Symbolic Resonance), for this I need complete templates of the cortical and subcortical brain



--

Tim Coalson

unread,
Oct 10, 2025, 12:09:20 AM (8 days ago) Oct 10
to hcp-...@humanconnectome.org
It isn't clear what you are asking for, as "template" can mean a few different things.  What information do you expect the template to contain?

Tim


Prabhjot Kaur

unread,
Oct 10, 2025, 3:28:01 AM (8 days ago) Oct 10
to hcp-...@humanconnectome.org
Hello Tim, 

Plz guide how to modify the dlabel.nii file. Since, the diabetes file will contain parcels info in ascending order, do our chosen parcel list be in the same irder or it can be as per network affiliation.

Also, since we already have ptseries and pconn series, can we pick our parcels from there directly. We have already tried cifti merge command. Ptseries.nii contain info as 718×fmri volume, but it needs parcels in columns.
Fyi,  We are using wb v1.4.2

Thanks 

Prabhjot Kaur

Prabhjot Kaur
Technical Officer 'C'
Institute of Nuclear Medicine & Allied Sciences
Defence Research & Development Organization 
Ministry of Defence 
Government of India
Delhi


Tim Coalson

unread,
Oct 10, 2025, 6:19:34 PM (7 days ago) Oct 10
to hcp-...@humanconnectome.org
718 seems large for number of parcels.

Averaging data within a network would be simplest by making a new dlabel file, which is a bit different than modifying an existing one.  If the networks are specifically defined in terms of areas/parcels, then you can use the existing dlabel to build the network ROIs.  This would look something like the following (NOTE: -index treats any integer argument as a numeric index rather than a text name, so if you have a parcel named just "86" and it isn't the 86th smallest key value (ignoring the "???" key) in the original dlabel file, you might want to edit the parcel name to "86_ROI" or similar):

wb_command -cifti-all-labels-to-rois myparcels.dlabel.nii 1 parcelrois.dscalar.nii
wb_command -cifti-merge rightvisualparcels.dscalar.nii -cifti parcelrois.dscalar.nii -index R_V1 -index R_V2 -index R_V3 ...
wb_command -cifti-reduce rightvisualparcels.dscalar.nii MAX rightvisualparcels_combined.dscalar.nii
<same for other networks>
wb_command -cifti-merge networkrois.dscalar.nii -cifti rightvisualparcels_combined.dscalar.nii -cifti rightsensorimotorparcels_combined.dscalar.nii ...
wb_command -cifti-reduce networkrois.dscalar.nii INDEXMAX networkrois_index.dscalar.nii
wb_command -cifti-reduce networkrois.dscalar.nii MAX networkrois_max.dscalar.nii
wb_command -cifti-math 'index * (max > 0)' networkrois_index_masked.dscalar.nii -var index networkrois_index.dscalar.nii -var max networkrois_max.dscalar.nii
wb_command -cifti-label-import networkrois_index_masked.dscalar.nii "" networks.dlabel.nii

If you want to have the network names in your dlabel file (instead of LABEL_1, etc and random colors), create a text file as described in the -cifti-label-import help and pass its filename instead of the empty quotes in the last command.  If you really have 718 parcels, though, this strategy may be tedious, and you should think about how to easily get binary ROIs representing each network.

If you don't actually want to combine the data across parcels, you can instead just drop the parcels that aren't of interest by -cifti-label-export-table, deleting the pairs of lines that represent the labels you don't want, and doing -cifti-label-import with the -discard-others option.  Don't edit the key values here, that would put the label names on the wrong part of the brain.

The order that -cifti-parcellate uses for its output is the label key values, sorted ascending.  You can use -cifti-label-modify-keys to change the keys while keeping the label names on the correct locations.

Tim


Reply all
Reply to author
Forward
0 new messages