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

Reply via email to