adhd200preproc > RE: Question about liner trend and filter
Jul 27, 2011  09:07 PM | Carlton Chu
RE: Question about liner trend and filter
Hi Cheng Wei:

Sorry for the late correction, but I think I mad a mistate in my early reply to you (I had a bad jetlag at that time)

The src has to be the grey matter template in SPM (not the label)
so the correct code should be

tmp='/DirectoryOfTheTemplate/Template_6.nii';

label='/DirectoryOfTheLPBA40Label/lpba40.spm5.avg152T1.label.nii'

src='/spm_root/tpm/grey.nii';

 

vg=spm_vol(tmp);

vf=spm_vol(src);

flags.regtype='none';

[M,scal] = spm_affreg(vg,vf,flags);

N=nifti(label);

N.mat=M*N.mat;

create(N);

Originally posted by Carlton Chu:

Hi Cheng Wei:

I pre-processed the Burner pipeline, so I will answer your questions for Cameron.

Ans for Q1: You will need to find the labels from the *_phenotypic.csv provided by the competition organizer. There was no information about patients or controls in the original file structure anyway. I used the scanID as the file name, so it is fairly easy to retrieve the information from the datasheet.

Ans for Q2: 
I have not upladed the group average to the NITRC FTP, but in the mean time you can also download from 
http://fmrif.nimh.nih.gov/~chuc2/pub/ADH...
The file name is Template_6.nii
One way to extract brain structrual information is to use an atlas. I often use LPBA40 by LONI. http://www.loni.ucla.edu/~shattuck/resou...
You can affine reigster the Maximum likelibood label map (in the maxprob directory) to the "Template_6.nii". I often use "spm_affreg.m" to do the affine registration, it is part of the SPM package.
The code is here

tmp='/DirectoryOfTheTemplate/Template_6.nii';

src='/DirectoryOfTheLPBA40Label/lpba40.spm5.avg152T1.label.nii

 

vg=spm_vol(tmp);

vf=spm_vol(src);

flags.regtype='none';

[M,scal] = spm_affreg(vg,vf,flags);

N=nifti(src);

N.mat=M*N.mat;

create(N);

 

After affine register the Atlas to the template, choose Coregister(Reslice) in SPM to reslice the atlas. Remember to select "Nearest Neighbour" as the interpolation method.

Now, you can use your resliced atlas as the mask to select brain regions.

 

Best,

Carlton

Threaded View

TitleAuthorDate
cheng wei Jun 1, 2011
cheng wei Jul 12, 2011
cheng wei Jul 11, 2011
Cameron Craddock Jul 12, 2011
cheng wei Jul 14, 2011
Cameron Craddock Jul 11, 2011
cheng wei Jul 11, 2011
Cameron Craddock Jul 11, 2011
Cameron Craddock Jun 22, 2011
Cameron Craddock Jun 1, 2011
cheng wei Jun 2, 2011
Cameron Craddock Jun 2, 2011
Cameron Craddock Jun 2, 2011
Cameron Craddock Jun 2, 2011
Pierre Bellec Jun 2, 2011
Cameron Craddock Jun 2, 2011
Cameron Craddock Jun 2, 2011
Cameron Craddock Jun 2, 2011
cheng wei Jun 6, 2011
Carlton Chu Jun 7, 2011
RE: Question about liner trend and filter
Carlton Chu Jul 27, 2011
cheng wei Jun 8, 2011
Cameron Craddock Jun 8, 2011
cheng wei Jun 22, 2011
cheng wei Jun 16, 2011