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  

|
January 29, 2012 02:09PM
Dear all,

people in my new lab are trying to convert me from matlab to python, and they may have a point: "import this" tells me that "Beautiful is better than ugly, Explicit is better than implicit, Simple is better than complex, Complex is better than complicated", etc, which most of us probably agree with. It also says that "There should be one-- and preferably only one --obvious way to do it, Although that way may not be obvious at first unless you're Dutch.", and since I'm dutch I should have the innate ability to know the obvious way to do things in python which makes life easier.

Anyway, I was wondering if there is a python library that supports reading and writing AFNI HEAD and BRIK files (and maybe even NIML, but that seems unlikely).

Approaches I'm currently aware of that may serve as a workaround are:
- the older pyNIFTI and newer NiBabel packages provide NIFTI I/O support
- AFNI can handle NIFTI files pretty well (although sometimes it has difficulties deciding which transformation to use if has both AFNI and original NIFTI attributes)
- 3dcopy can convert between AFNI and NIFTI formats.
- the AFNI matlab package supports reading and writing AFNI files (I made some minor contributions to this package)

Yet I'd like to know if there is a python package that can read and write AFNI files directly without AFNI or matlab.

Thanks,
Nick
Subject Author Posted

python library for afni file I/O

Nick January 29, 2012 02:09PM

Re: python library for afni file I/O

rick reynolds January 30, 2012 09:35PM

Re: python library for afni file I/O

nick January 30, 2012 10:44PM

Re: python library for afni file I/O

florisvanvugt April 06, 2017 12:26PM