Skip to content

AFNI/NIfTI Server

Sections
Personal tools
You are here: Home » AFNI » Community » Message Board

History of AFNI updates   Suggested reading for beginners   Add yourself to the AFNI map!

Re: Creating BRIK files by matlab

|
August 01, 2012 10:09AM
Inbal S.L. Wrote:
-------------------------------------------------------
> Hello.
> I wanted to create a time series data for a
> selected set of voxels.
> I have the PRI coordinates for a list of the
> voxels I am interested at, and a time series data
> vector for each one of those voxels.

You can use AFNI_XYZcontinuous2Index and it's inverse, AFNI_Index2XYZcontinuous, to go between coordinates and voxel indices. Make sure you specify the proper coordinate system for these functions.

> How can I create a BRIK file to be loaded as an
> overlay in AFNI, that will contain the time series
> data of the voxels I have in my list?

If you're just interested in the time series, you can load these from the BRIK directly.
Assuming you got N linear indices in a vector idxs (i.e. use IndexDim=1 in AFNI_XYZcontinuous2Index), you can use Brikload with

opt.Format='vector'
opt.Voxels=idxs

and the result should be N x T, if there are T subbriks.

(this requires a somewhat recent version of the matlab toolbox).

hope this helps.

Nick
Subject Author Posted

Creating BRIK files by matlab

Inbal S.L. July 26, 2012 07:48AM

Re: Creating BRIK files by matlab

rick reynolds July 26, 2012 03:23PM

Re: Creating BRIK files by matlab

nick August 01, 2012 10:09AM

Re: Creating BRIK files by matlab

bam August 10, 2012 03:20PM

Re: Creating BRIK files by matlab

Daniel Glen August 10, 2012 03:47PM

Re: Creating BRIK files by matlab

bam August 10, 2012 04:55PM



Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
CAPTCHA
Message:

Powered by Plone

phorum.org

This site conforms to the following standards: