I would like to know how I can enter regressors that I created outside of afni into afni_proc.py for nuisance regression in a resting state analysis. I ca not find the answer. Is there a specific format that the files should have? Does .txt work?
I have a .txt file that contains 10 columns separated by tabs (compcor regressors (5 principal components for wm, 5 PC for csf) derived from antsR).
thank you very much for your reply!
So you are saying that with using -regress_extra_stim_files I can only pass in text files that include only one column? So I need to create 10 of those if I have 10 regressors?
Thanks for the reminder, Carolin. I did add options -regress_extra_ortvec and -regress_extra_ortvec_labels so that you can pass full matrices of regressors (of no interest). That was added 2/24, so if your binaries are newer than those, you no long need to break those into separate files.
This should mention those new options if you are current:
afni_proc.py -hist | tail
Please let me know how it goes, thanks!
BTW, it is only on the “todo” list to make sure the lengths of those columns are appropriate…
thanks a lot! It seems to work! The length of my columns is 150 volumes. I can see that those additional regressors are now considered in the regression. There are 10 additional regressors included in X.xmat.1D and in the output script it says:
initial DF : 150 : 100.0%
DF used for regs of interest : 0 : 0.0%
DF used for censoring : 0 : 0.0%
DF used for polort : 4 : 2.7%
DF used for motion : 0 : 0.0%
DF used for other RONI : 10 : 6.7%
total DF used : 14 : 9.3%
The
National Institute of Mental Health (NIMH) is part of the National Institutes of
Health (NIH), a component of the U.S. Department of Health and Human
Services.