Displaying pconn.nii with wb_view

233 views
Skip to first unread message

Yen-Wen Chen

unread,
Nov 11, 2021, 2:51:56 PM11/11/21
to HCP-Users
Hello HCP experts, 

I have some naive questions about displaying images in wb_view.

I generate two .pconn.nii files from a group of 57 subjects from HCP-Aging (for pilot purpose) following steps below, 
   1. demean the individual resting runs 
   2. merge the demeaned dtseries across 4 runs and all 57 subjects (-cifti-merge)
   3. using -cifti-parcellate with (1) Glasser cortical atlas ("RelatedValidation210*CorticalAreas*.32k_fs_LR.dlabel.nii") and with (2) Glasser cortical combining freesurfer subcortical ("RelatedValidation210*CorticalAreas*with_Atlas_ROIs2.32k_fs_LR.dlabel.nii")
   1.4. calculating correlation using -cifti-correlation and generate two .pconn.nii 

I want to display both .pconn.nii using wb_view to obtain the result correlation brain images and matrices. I would like it looks like the Figure 18 from workbench tutorial.

When I open the one with cortical-only pconn (360 x 360), the wb_view only displays "Chart" tab (without "Surface" or "Volume"...).

When I open the one with cortical and subcortical pconn (379 x 379), the wb_view only display a "Volume" and a "Chart" tab. But the "Volume" tab only display the 1st row (in Overlay ToolBox showing "Row: 1" in "Map" column). 

I am wondering if I did something wrong that the wb_view was not able to display correctly? 

Any information and suggestion will be helpful. Thank you.

Best, 
Samantha

Coalson, Timothy Scott (S&T-Student)

unread,
Nov 11, 2021, 3:32:33 PM11/11/21
to HCP-Users
You need to also open the appropriate surface files (.surf.gii), which contain the surface coordinates, in order to display surface data.  Inflated or very inflated surfaces are generally the most useful for display.

Tim


From: Yen-Wen Chen <yen-we...@stonybrook.edu>
Sent: Thursday, November 11, 2021 1:51 PM
To: HCP-Users <hcp-...@humanconnectome.org>
Subject: [hcp-users] Displaying pconn.nii with wb_view
 
WARNING: This message has originated from an External Source. This may be a phishing expedition that can result in unauthorized access to our IT System. Please use proper judgment and caution when opening attachments, clicking links, or responding to this email.
--
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 on the web visit https://groups.google.com/a/humanconnectome.org/d/msgid/hcp-users/54ec3227-9cac-43ad-aac3-443ce8e4ed07n%40humanconnectome.org.

Yen-Wen Chen

unread,
Nov 11, 2021, 4:51:09 PM11/11/21
to HCP-Users, tsc...@mst.edu
Hello Tim, 

Thank you for the prompt response. 

One follow-up question, would it be a good idea to use the mesh atlas from the pipeline, such as colin.cerebral.L/R.flat.32k_fa_LR.surf.gii? (for resting functional data) Or would you kindly recommend the surface template that is appropriate to display group data? 

Many thanks, 
Sam. 

Elam, Jennifer

unread,
Nov 11, 2021, 4:54:09 PM11/11/21
to HCP-Users, tsc...@mst.edu
Hi Sam,
You could just use the group average Q1-Q6 surface included in the WB Tutorial you've been working with.

Best,
Jenn

From: Yen-Wen Chen <yen-we...@stonybrook.edu>
Sent: Thursday, November 11, 2021 3:51 PM
To: HCP-Users <hcp-...@humanconnectome.org>
Cc: tsc...@mst.edu <tsc...@mst.edu>
Subject: Re: [hcp-users] Displaying pconn.nii with wb_view
 

* External Email - Caution *

 


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.

Yen-Wen Chen

unread,
Nov 11, 2021, 5:10:49 PM11/11/21
to HCP-Users, el...@wustl.edu, tsc...@mst.edu
Hello Jenn, 

Thank you for the quick response and suggestion. It works well!

Best, 
Sam. 

Yen-Wen Chen

unread,
Nov 16, 2021, 2:02:53 PM11/16/21
to HCP-Users, Yen-Wen Chen, el...@wustl.edu, tsc...@mst.edu
Hello, I have a naive question about the color bar of the .pconn.nii. 

Like previously stated, I used the Galsser cortical and Freesurfer subcortical atlas ("Q1-Q6_RelatedValidation210*CorticalAreas*with_Atlas_ROIs2.32k_fs_LR.dlabel.nii") to create the .pconn file (with -cifti-correlation) and then display on wb_view. 

Are the values from -cifti-correlation Pearson correlation r?

The color bar range displayed on wb_view is from -0.478 - 0.478. Does this range make sense? I thought the maximum r value would 1, which would be the correlation with it's own parcel? 

Any information would be very helpful. Thank you.

Best, 
Sam. 

Glasser, Matt

unread,
Nov 16, 2021, 2:05:07 PM11/16/21
to hcp-...@humanconnectome.org, Yen-Wen Chen, Elam, Jennifer, tsc...@mst.edu

Perhaps that is 2 to 98% and you need to change the scaling.

 

Matt.

 

From: Yen-Wen Chen <yen-we...@stonybrook.edu>
Reply-To: "hcp-...@humanconnectome.org" <hcp-...@humanconnectome.org>
Date: Tuesday, November 16, 2021 at 1:02 PM
To: HCP-Users <hcp-...@humanconnectome.org>
Cc: Yen-Wen Chen <yen-we...@stonybrook.edu>, "Elam, Jennifer" <el...@wustl.edu>, Timothy Coalson <tsc...@mst.edu>
Subject: Re: [hcp-users] Displaying pconn.nii with wb_view

 

 

Hello, I have a naive question about the color bar of the .pconn.nii. 

 

Like previously stated, I used the Glasser cortical and Freesurfer subcortical atlas ("Q1-Q6_RelatedValidation210*CorticalAreas*with_Atlas_ROIs2.32k_fs_LR.dlabel.nii") to create the .pconn file (with -cifti-correlation) and then display on wb_view. 

Yen-Wen Chen

unread,
Nov 16, 2021, 2:25:08 PM11/16/21
to HCP-Users, glas...@wustl.edu, Yen-Wen Chen
Hi Matt, 

Thank you for your prompt response. That is exactly what it is! 

I did not realize the color bar uses "Abs Pct" (absolute percentage?) and the range is 2 - 98. When I change it to "Full" (does this mean the original value form the .pconn file?), I got -0.345 - 1.

Thank you so much!

Best, 
Sam.  

Coalson, Timothy Scott (S&T-Student)

unread,
Nov 16, 2021, 4:19:50 PM11/16/21
to HCP-Users, glas...@wustl.edu, Yen-Wen Chen
You can also set it to manual to get exactly the range you want.  In general, wb_view doesn't know how you generated a file, and can't "expect" a particular range, it can only look at the data values and, by default, make a guess as to how to give them good contrast.  You can, however, use wb_command -cifti-palette to store palette settings in the file so wb_view will use that instead of the default.

Tim


From: Yen-Wen Chen <yen-we...@stonybrook.edu>
Sent: Tuesday, November 16, 2021 1:25 PM
To: HCP-Users <hcp-...@humanconnectome.org>
Cc: glas...@wustl.edu <glas...@wustl.edu>; Yen-Wen Chen <yen-we...@stonybrook.edu>

Yen-Wen Chen

unread,
Nov 19, 2021, 12:54:15 PM11/19/21
to HCP-Users, tsc...@mst.edu, Yen-Wen Chen
Hi Tim, 

Sorry for the late response. Thank you for your suggestion. 

Can you elaborate this a bit more? Sorry, I am not familiar with how this function would be implemented.

(1) Do I use the .pconn.nii as <cifti-input>? 
(2) <mode> argument: are those options (MODE_AUTO_SCALE, MODE_USER_SCALE, etc.) the same as the options in wb_view "Palette" in Overlay and Map setting (Full, Abs Pct, etc.)? 

Thank you so much.

Best, 
Sam. 

Coalson, Timothy Scott (S&T-Student)

unread,
Nov 19, 2021, 5:03:02 PM11/19/21
to Yen-Wen Chen, HCP-Users
Yes, all of those settings are things from the palette settings window in wb_view.  If you save a file in wb_view after changing the palette settings, they will be stored in that file and used next time you open it.  wb_command -cifti-palette is just a way to do that in a script (that is, without loading it into wb_view first).  For instance:

wb_command -cifti-palette <your pconn> MODE_USER_SCALE <your pconn> -neg-user 0 -1 -pos-user 0 1

Tim


From: Yen-Wen Chen <yen-we...@stonybrook.edu>
Sent: Friday, November 19, 2021 11:54 AM
To: HCP-Users <hcp-...@humanconnectome.org>
Cc: Coalson, Timothy Scott (S&T-Student) <tsc...@mst.edu>; Yen-Wen Chen <yen-we...@stonybrook.edu>

Yen-Wen Chen

unread,
Nov 19, 2021, 5:14:07 PM11/19/21
to HCP-Users, tsc...@mst.edu, Yen-Wen Chen
Hi Tim, 

Thank you so much for the clarification! 

Best, 
Sam. 

Reply all
Reply to author
Forward
0 new messages