To me, a mask is a binary ROI (1 where the stuff you want is, 0
elsewhere).  This is quite different from a label file (lots of different
integers).  I did not mean for you to run -cifti-reduce on a dlabel file.

I was suggesting that you use -cifti-label-to-roi to make a binary ROI from
each label you are interested in, use -cifti-merge (or wb_shortcuts
-cifti-concatenate) to put all those binary ROIs as separate maps in a
single dscalar file, then use -cifti-reduce on that multi-ROI dscalar file
to get a single map with the combined binary ROI.

To then separate the ROI per-hemisphere, you can use -cifti-separate (on
the binary ROI dscalar file).

Tim


On Tue, Sep 27, 2016 at 5:20 PM, Michael F.W. Dreyfuss <
mid2...@med.cornell.edu> wrote:

> I’m sorry, but this is still not clear to me. It seems this function is
> meant to perform an operation to produce a scalar file, but what is
> produced when I use MAX for example is just a scalar file where the value
> for the key each labeled region had in the label file is not the value in
> that scalar file. so BA44 was 65, BA45 was 66, and now there are two
> regions with values 65 and 66.
>
> What I am trying to do is to merge regions together into one region as a
> label file to use as a single mask. Is this possible with this function?
>
> I’m sorry if I’m missing something here.
>
> Thank you,
> Michael
>
>
>
> On Sep 27, 2016, at 5:57 PM, Timothy Coalson <tsc...@mst.edu> wrote:
>
> http://www.humanconnectome.org/software/workbench-
> command.php?function=-cifti-reduce
> <https://urldefense.proofpoint.com/v2/url?u=http-3A__www.humanconnectome.org_software_workbench-2Dcommand.php-3Ffunction-3D-2Dcifti-2Dreduce&d=DQMFaQ&c=lb62iw4YL4RFalcE2hQUQealT9-RXrryqt9KZX2qu2s&r=rPclmYysc_z1plf99IoNsmxWf1JolkKMmL6bXnYFSwg&m=Xs5EfvmcgCd1YzshFEix8oFIzx34876b06vXtA_UXVI&s=KS6IGgzKif6PPGEjorzvQDKDv09VSeiBIXSHw-xZrAI&e=>
>
> It is a simple reduction across columns (by default, anyway) in the file.
> For these kinds of files, that means it isn't reducing across space.  MAX
> is one of the options it can calculate, and for binary ROIs, that is
> equivalent to boolean OR, which is what we want.
>
> The commands are generally written to perform small, specific actions,
> such that they could be suitable for multiple tasks.
>
> Tim
>
>
> On Tue, Sep 27, 2016 at 4:49 PM, Michael F.W. Dreyfuss <
> mid2...@med.cornell.edu> wrote:
>
>> How would this work with -cifti-reduce? If I have a cifti with BA44 and
>> BA45 for example and I want those two regions to be merged into one, how
>> would -cifti-reduce do that? Wouldn’t it be more suited to calculating
>> something (i.e. mean, mode, etc.) within each of those parcels?
>>
>> Thank you
>>
>> On Sep 27, 2016, at 5:40 PM, Timothy Coalson <tsc...@mst.edu> wrote:
>>
>> wb_shortcuts
>>
>>
>>
>
>

_______________________________________________
HCP-Users mailing list
HCP-Users@humanconnectome.org
http://lists.humanconnectome.org/mailman/listinfo/hcp-users

Reply via email to