AFNI Message Board

Dear AFNI users-

We are very pleased to announce that the new AFNI Message Board framework is up! Please join us at:

https://discuss.afni.nimh.nih.gov

Existing user accounts have been migrated, so returning users can login by requesting a password reset. New users can create accounts, as well, through a standard account creation process. Please note that these setup emails might initially go to spam folders (esp. for NIH users!), so please check those locations in the beginning.

The current Message Board discussion threads have been migrated to the new framework. The current Message Board will remain visible, but read-only, for a little while.

Sincerely, AFNI HQ

History of AFNI updates  

|
July 25, 2015 07:02AM
Hi Rick,

thanks for your quick reply.

rick reynolds Wrote:
-------------------------------------------------------
>
>
> 1) It seems that an attribute of the read dataset
> (the
> binary aspect) is stored for the INDEX_LIST upon
> read,
> and that overrides the request to write it as
> text.

The GIFTI dataset used as input is in ASCII format; the relevant part is:

<DataArray ArrayIndexingOrder="RowMajorOrder"
DataType="NIFTI_TYPE_INT32"
Dim0="4"
Dimensionality="1"
Encoding="ASCII"
Endian="LittleEndian"
ExternalFileName=""
ExternalFileOffset=""
Intent="NIFTI_INTENT_NODE_INDEX">
<MetaData>
</MetaData>
<Data>8 7 2 3 </Data>

but also removing the "Endian" field still gives binary node indices. Is there anything else you mean by the "binary aspect" in the input?

>
> While there options to ponder regarding that, let
> me
> suggest using simply 3dcopy (or other 3d*
> programs),
> but with the AFNI_NIML_TEXT_DATA env var set to
> YES:
>
> 3dcopy -DAFNI_NIML_TEXT_DATA=Y dset.gii
> dset.niml.dset

Thanks, that works very well. Still, wouldn't it make more sense if Convertdset with "-o_niml_asc" would only write ASCII data, not binary?

> Out of curiosity, how did you even notice this?
> Did
> you encounter software that cares?

I didn't encounter software that cares; I tried Convertdset, nibabel and the Matlab GIFTI toolbox, and they all seem to be fine with the NODE_INDEX field as the last DataArray. I noticed the issue when some experimental modifications I made to existing Matlab code made ConvertDset crash; to track this down I read the GIFTI standard documentation in detail and compared it with the output from Convertdset; that's how I found it. (The reason I crashed ConvertDset was due to a feature in experimental code; ConvertDset seems to be working fine otherwise).

best,
Nick
Subject Author Posted

Questions about ConvertDset behaviour for GIFTI and NIML

nick July 24, 2015 11:00AM

Re: Questions about ConvertDset behaviour for GIFTI and NIML

rick reynolds July 24, 2015 01:55PM

Re: Questions about ConvertDset behaviour for GIFTI and NIML

nick July 25, 2015 07:02AM

Re: Questions about ConvertDset behaviour for GIFTI and NIML

rick reynolds July 24, 2015 03:18PM

Re: Questions about ConvertDset behaviour for GIFTI and NIML

nick July 25, 2015 07:02AM