|
If you are interested in using matlab, another possibility to consider is that the 'ciftiopen' matlab tool can load .dlabel.nii and .pconn.nii files (and thus I assume .dconn.nii files as well). That will just give you the data values stored in each file
type, but the indices in matlab will be in correspondence across all file types for a given CIFTI atlas.
cheers,
-MH
--
Michael Harms, Ph.D.
-----------------------------------------------------------
Conte Center for the Neuroscience of Mental Disorders
Washington University School of Medicine
Department of Psychiatry, Box 8134
660 South Euclid Ave.
Tel: 314-747-6173
St. Louis, MO 63110
Email: [email protected]
From: Matthew George Liptrot <[email protected]>
Date: Wednesday, November 18, 2015 8:47 AM To: Timothy Coalson <[email protected]>, Donna Dierker <[email protected]> Cc: HCP Listserv <[email protected]> Subject: Re: [HCP-Users] Hcp Data with non-overlapping parcellations Hi,
Thanks both of you.
On 17/11/15 21:32 , "Timothy Coalson" <[email protected]> wrote:
@Tim: By “not a 1:1 mapping to surface vertices”, do you mean:
I hope it’s (2), because otherwise I’m confused (again!).
A follow-on question is then why would it be less error-prone to use -cifti–separate (as opposed to e.g. -cifti-export-dense-mapping)?
I can see that using -cifti-export-dense-mapping on the Conn3.dconn.nii file lists a non-contiguous mapping of node-IDs:Vertex-Ids, presumably due to the omission of the vertices on medial wall that are covered by the subcortical ROIs, i.e.
CortexLeft, Total entries: 29696 (Node IDs: 0-29695, Vertice IDs: 0-32491)
CortexRight, Total entries: 29716 (Node IDs: 29696-59411, Vertice IDs: 0-32491)
SubCortical, Total entries: 31870 (Node IDs: 59412-91281)
Is this what you were referring to?
I then tried using some of your suggestions to extract the labels from the aparc32k atlas in 100307/MNINonLinear/fsaverage_LR32k.
I tried the following 3 workflows:
(A)
> wb_command -cifti-separate 100307.aparc.32k_fs_LR.dlabel.nii COLUMN -label CORTEX_LEFT aparc32k_fs_LR_dlabel_Separated_CortexLeft.gii
> wb_command -gifti-convert ASCII aparc32k_fs_LR_dlabel_Separated_CortexLeft.gii aparc32k_fs_LR_dlabel_Separated_GiftiConvert_CortexLeft.txt
> cp aparc32k_fs_LR_dlabel_Separated_GiftiConvert_CortexLeft.txt aparc32k_fs_LR_dlabel_Separated_GiftiConvert_CortexLeft_LabelsOnly.txt
# Strip away all header/footer XML codes from aparc32k_fs_LR_dlabel_Separated_GiftiConvert_CortexLeft_LabelsOnly.txt using emacs
> wc -l aparc32k_fs_LR_dlabel_Separated_GiftiConvert_CortexLeft_LabelsOnly.txt
32492
(B)
> wb_command -gifti-convert ASCII 100307.L.aparc.32k_fs_LR.label.gii L_aparc32k_fs_LR_label_GiftiConvert_CortexLeft.txt
> cp L_aparc32k_fs_LR_label_GiftiConvert_CortexLeft.txt L_aparc32k_fs_LR_label_GiftiConvert_CortexLeft_LabelsOnly.txt
# Strip away all header/footer XML codes from L_aparc32k_fs_LR_label_GiftiConvert_CortexLeft_LabelsOnly.txt using emacs
> wc -l L_aparc32k_fs_LR_label_GiftiConvert_CortexLeft_LabelsOnly.txt
32492
(C)
> wb_command -cifti-convert -to-text 100307.aparc.32k_fs_LR.dlabel.nii aparc32k_fs_LR_dlabel_ConvertedToText_NodeID_LabelOnly_CortexAll.txt
> wc -l aparc32k_fs_LR_dlabel_ConvertedToText_NodeID_LabelOnly_CortexAll.txt
59412
As you can see, they all gave the expected number of outputs (the latter one with the medial wall vertices already removed)
However, when I look at the first few labels, there are some differences between set (A) and (B):
A B C
10 1010
29 2929
24 2424
28 2828
11 1111
31 3131
27 2727
0 -113
13 1315
15 1535
35 3535
35 3510
10 1010
10 1010
10 1010
10 1010
10 1010
10 1010
10 1010
10 1010
10 1010
0 1010
0 1010
0 1010
0 1010
0 1010
0 1010
0 -110
0 -110
0 -110
0 -110
0 -110
0 -110
0 -110
0 -110
Shouldn’t these two give the same? Or maybe this is the errors you were referring to?
Thanks in advance,
M@
--
Department of Computer Science
University of Copenhagen
&
Section for Cognitive Systems
Department of Applied Mathematics and Computer Science
Technical University of Denmark
_______________________________________________ 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. _______________________________________________ |
- [HCP-Users] Hcp Data with non-overlapping parcellat... Vishal Patel
- Re: [HCP-Users] Hcp Data with non-overlapping ... Harms, Michael
- Re: [HCP-Users] Hcp Data with non-overlapp... Jennifer Elam
- Re: [HCP-Users] Hcp Data with non-over... Matthew George Liptrot
- Re: [HCP-Users] Hcp Data with non-... Donna Dierker
- Re: [HCP-Users] Hcp Data with... Matthew George Liptrot
- Re: [HCP-Users] Hcp Data ... donna
- Re: [HCP-Users] Hcp D... Timothy Coalson
- Re: [HCP-Users] Hcp D... Matthew George Liptrot
- Re: [HCP-Users] Hcp D... Harms, Michael
- Re: [HCP-Users] Hcp D... Timothy Coalson
- Re: [HCP-Users] Hcp D... Timothy Coalson
- Re: [HCP-Users] Hcp D... Matthew George Liptrot
- Re: [HCP-Users] Hcp D... Donna Dierker
- Re: [HCP-Users] Hcp D... Matthew George Liptrot
- Re: [HCP-Users] Hcp D... Donna Dierker
- Re: [HCP-Users] Hcp D... Timothy Coalson
