|
So there is a bug in the .dlabel.nii files that left and right ROIs are not kept separate (because FreeSurfer gives them the same name in both hemispheres). I have just fixed this for the next data release, but it will have to be worked around here by
processing left and right hemispheres separately. My suggestion for extracting timecourses from the ROIs is to use this approach:
wb_command -cifti-create-label ${StudyFolder}/${Subject}/MNINonLinear/fsaverage_LR32k/${Subject}.L.aparc.a2009s.32k_fs_LR.dlabel.nii -left-label ${StudyFolder}/${Subject}/MNINonLinear/fsaverage_LR32k/${Subject}.L.aparc.a2009s.32k_fs_LR.label.gii -roi-left ${StudyFolder}/${Subject}/MNINonLinear/fsaverage_LR32k/${Subject}.L.atlasroi.32k_fs_LR.shape.gii
wb_command -cifti-create-label ${StudyFolder}/${Subject}/MNINonLinear/fsaverage_LR32k/${Subject}.R.aparc.a2009s.32k_fs_LR.dlabel.nii -right-label ${StudyFolder}/${Subject}/MNINonLinear/fsaverage_LR32k/${Subject}.R.aparc.a2009s.32k_fs_LR.label.gii -roi-right
${StudyFolder}/${Subject}/MNINonLinear/fsaverage_LR32k/${Subject}.R.atlasroi.32k_fs_LR.shape.gii
For left and right dlabel files, parcellate the dense timeseries to get average timecourses in each ROI:
wb_command -cifti-parcellate <dtseries> <dlabel> COLUMN <ptseries>
To get the average ROI timeseries out of the parcellated timeseries file:
wb_command -nifti-information <ptseries> -print–matrix
The alternative, if you were more comfortable with GIFTI files would be to split the CIFTI file into components:
wb_command -cifti-separate <dtseries> -metric CORTEX_LEFT <func.gii> -metric CORTEX_RIGHT <func.gii>, would would produce GIFTI timeseries at which point, you could directly use the GIFTI label files.
Peace,
Matt.
From: basile pinsard <[email protected]>
Date: Thursday, December 5, 2013 3:03 AM To: Matt Glasser <[email protected]> Cc: "[email protected]" <[email protected]> Subject: Re: [HCP-Users] Q3 rfMRI Hi Matt,
yes I mean homotopic connections.model type structure index count CIFTI_MODEL_TYPE_SURFACE CIFTI_STRUCTURE_CORTEX_LEFT 0 29696 CIFTI_MODEL_TYPE_SURFACE CIFTI_STRUCTURE_CORTEX_RIGHT 29696 29716 CIFTI_MODEL_TYPE_VOXELS CIFTI_STRUCTURE_ACCUMBENS_LEFT 59412 135 CIFTI_MODEL_TYPE_VOXELS CIFTI_STRUCTURE_ACCUMBENS_RIGHT 59547 140 CIFTI_MODEL_TYPE_VOXELS CIFTI_STRUCTURE_AMYGDALA_LEFT 59687 315 CIFTI_MODEL_TYPE_VOXELS CIFTI_STRUCTURE_AMYGDALA_RIGHT 60002 332 CIFTI_MODEL_TYPE_VOXELS CIFTI_STRUCTURE_BRAIN_STEM 60334 3472 CIFTI_MODEL_TYPE_VOXELS CIFTI_STRUCTURE_CAUDATE_LEFT 63806 728 CIFTI_MODEL_TYPE_VOXELS CIFTI_STRUCTURE_CAUDATE_RIGHT 64534 755 CIFTI_MODEL_TYPE_VOXELS CIFTI_STRUCTURE_CEREBELLUM_LEFT 65289 8709 CIFTI_MODEL_TYPE_VOXELS CIFTI_STRUCTURE_CEREBELLUM_RIGHT 73998 9144 CIFTI_MODEL_TYPE_VOXELS CIFTI_STRUCTURE_DIENCEPHALON_VENTRAL_L 83142 706 CIFTI_MODEL_TYPE_VOXELS CIFTI_STRUCTURE_DIENCEPHALON_VENTRAL_R 83848 712 CIFTI_MODEL_TYPE_VOXELS CIFTI_STRUCTURE_HIPPOCAMPUS_LEFT 84560 764 CIFTI_MODEL_TYPE_VOXELS CIFTI_STRUCTURE_HIPPOCAMPUS_RIGHT 85324 795 CIFTI_MODEL_TYPE_VOXELS CIFTI_STRUCTURE_PALLIDUM_LEFT 86119 297 CIFTI_MODEL_TYPE_VOXELS CIFTI_STRUCTURE_PALLIDUM_RIGHT 86416 260 CIFTI_MODEL_TYPE_VOXELS CIFTI_STRUCTURE_PUTAMEN_LEFT 86676 1060 CIFTI_MODEL_TYPE_VOXELS CIFTI_STRUCTURE_PUTAMEN_RIGHT 87736 1010 CIFTI_MODEL_TYPE_VOXELS CIFTI_STRUCTURE_THALAMUS_LEFT 88746 1288 CIFTI_MODEL_TYPE_VOXELS CIFTI_STRUCTURE_THALAMUS_RIGHT 90034 1248 but the problem might be in the mapping of ROIs from the aparc.a2009s+aseg gifti files.
Sorry if it is not clear but I had to reverse engineer the stuff so I may have done it wrong and it might not be possible to do it without some prior hidden in the workbench. On Thu, Dec 5, 2013 at 12:52 AM, Glasser, Matthew
<[email protected]> wrote:
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. _______________________________________________ |
- Re: [HCP-Users] Q3 rfMRI basile pinsard
- Re: [HCP-Users] Q3 rfMRI Glasser, Matthew
- Re: [HCP-Users] Q3 rfMRI basile pinsard
- Re: [HCP-Users] Q3 rfMRI basile pinsard
- Re: [HCP-Users] Q3 rfMRI Timothy Coalson
- Re: [HCP-Users] Q3 rfMRI basile pinsard
