Each label has a pair of lines like this: <labelname> <value> <red> <green> <blue> <alpha>
Attached is an example exported from a yeo parcellation label.gii using wb_command -label-export-table. _______________________________________________ HCP-Users mailing list [email protected] http://lists.humanconnectome.org/mailman/listinfo/hcp-users
FreeSurfer_Defined_Medial_Wall 0 1 1 1 255 17Networks_1 1 120 18 134 255 17Networks_2 2 255 0 0 255 17Networks_3 3 70 130 180 255 17Networks_4 4 42 204 164 255 17Networks_5 5 74 155 60 255 17Networks_6 6 0 118 14 255 17Networks_7 7 196 58 250 255 17Networks_8 8 255 152 213 255 17Networks_9 9 220 248 164 255 17Networks_10 10 122 135 50 255 17Networks_11 11 119 140 176 255 17Networks_12 12 230 148 34 255 17Networks_13 13 135 50 74 255 17Networks_14 14 12 48 255 255 17Networks_15 15 0 0 130 255 17Networks_16 16 255 255 0 255 17Networks_17 17 205 62 78 255
On Feb 1, 2016, at 1:35 PM, Kristian M. Eschenburg <[email protected]> wrote: > Hi Tim > > Thanks for the quick reply -- what is the format of the "label-list-file"? > I've generated a text file of <value> <red> <green> <blue> <alpha> rows (1 > row for each new label), without the <labelname> part, and am getting: > > "ERROR: label list file is malformed for entry #91" (which corresponds to the > last row in my file), even though this row is the same format as the others. > > Thoughts? > > > Kristian > > > > On Thu, Jan 28, 2016 at 10:30 PM, Timothy Coalson <[email protected]> wrote: > Take a look at wb_command -metric-label-import , it will take that data saved > as .func.gii and make it into a .label.gii . > > Tim > On Jan 29, 2016 12:36 AM, "Kristian M. Eschenburg" <[email protected]> wrote: > Hi All > > I'm interested in generating a custom parcellation for the low-resolution > (32k) cortical mesh. Right now, my data consists of a 1x32k vector, where > each index is a label value (1 : K parcels). I want to be able to visualize > this on a surface in the Connectome Workbench viewer. > > My issue is this: > > > I am able to convert this new label vector into a *.func.gii file by 1) > loading a preexisting *.func.gii file into MATLAB with the gifti function > (http://www.artefact.tk/software/matlab/gifti/) and 2) replacing the "cdata" > field with the new label vector. I can then visualize this metric file on > the corresponding surface ( L / R. white / pial / > midthickness.32k_fs_LR.surf.gii ). However, there are no corresponding rgba > color values, keys, or ROI name associated with each label value -- I have to > specify a colormap in the Connectome Workbench viewer. > > > Ideally, I want to save the new labels as a .*label.gii file. When I try to > edit the .labels field (containing keys, names, and rgba color values) in > Matlab, Matlab produces an error: > > "Error using gifti/subsasgn (line 13) > Reference to non-existent field 'labels'." (we know the field exists since > it is part of the gifti class) > > My question is this: > > How can I create a custom *.label.gii file (with my own ROI names, key > values, and corresponding rgba color values) from either a vector of labels > for each vertex OR from the new *.func.gii file? > > > Thanks > > > Kristian > _______________________________________________ > HCP-Users mailing list > [email protected] > http://lists.humanconnectome.org/mailman/listinfo/hcp-users > > > _______________________________________________ > HCP-Users mailing list > [email protected] > http://lists.humanconnectome.org/mailman/listinfo/hcp-users >
