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: mask at group level

|
July 19, 2012 12:23PM
This may be an "old school" approach, but here goes... Since you have warped to tlrc in your pipeline you can use the TT_N27+tlrc template (the default for afni_proc.py) to construct a mask.

1. Copy the file from your afni folder:
3dcopy ~/abin/TT_N27+tlrc ~/Desktop/your_files/TT_N27+tlrc

2. Create a mask from that template:
3dAutomask -prefix TT_Mask TT_N27+tlrc

3. Modify the resolution of your mask
3dresample -master SingleSubjectStatsFile+tlrc -inset TT_Mask -prefix TT_Mask_lowres

4a. Use your mask in your 3dttest++/3dMEMA command (modified from the help command)

gen_group_command.py -command 3dttest++   \
-write_script cmd.tt++.3                                       \
-prefix tt++.3_V-A                                               \
-dsets stats*.HEAD                                           \
-set_labels Vrel Arel                                           \
-subs_betas  'Vrel#0_Coef' 'Arel#0_Coef'          \
-options                                                               \
 -mask TT_Mask_lowres+tlrc

4b. Use 3dcalc to mask your data that is already processed (will wipe out your stats thresholds and FDR)

3dcalc -a groupAnalysis+tlrc -b TT_Mask_lowres+tlrc -prefix forDisplayPurposes -expr 'a*b'



Edited 1 time(s). Last edit at 07/19/2012 12:24PM by Peter Molfese.
Subject Author Posted

mask at group level

lianablair July 11, 2012 03:38PM

Re: mask at group level

Isaac Schwabacher July 11, 2012 04:20PM

Re: mask at group level

rick reynolds July 11, 2012 04:31PM

Re: mask at group level

lianablair July 19, 2012 10:47AM

Re: mask at group level

Peter Molfese July 19, 2012 12:23PM

Re: mask at group level

lianablair July 19, 2012 01:30PM

Re: mask at group level

rick reynolds July 19, 2012 09:09PM

Re: mask at group level

mapguy July 20, 2012 10:21AM

Re: mask at group level

Gang July 20, 2012 11:38AM



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: