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  

|
March 28, 2023 06:34AM
Hi-

Let's say you have an atlas or ROI map DSET_ROI where the amygdala is defined wherever that dataset has a value 4, and it could also have a label attached like "Amygdala". You can use the "-mask .." option and sub-range selector to focus on just that ROI and its time series:
https://afni.nimh.nih.gov/pub/dist/doc/htmldoc/tutorials/afni_gen/files_gen.html#sub-range-selection
... getting its eigenvectors (=PCs).

For example, if you have DSET_4D as your time series dataset, then this might be one option, using sub-range selection:
3dpc -dmean -nscale -pcsave 1 -float -mask DSET_ROI"<4>" -prefix OUTPUT DSET_4D
or, if "3dinfo -is_atlas_or_labeltable DSET_ROI" outputs a 1 and, as noted above, there is a label "Amygdala" associated with the ROI with value=4, then:
3dpc -dmean -nscale -pcsave 1 -float -mask DSET_ROI"<Amygdala>" -prefix OUTPUT DSET_4D
should produce the same output.

To get the eigenvectors/PCs from the ROI, you would *not* want to first collapse the time series within that dset to an average. That would remove the ability to decompose the time series into PCs.

--pt
Subject Author Posted

ROI first Eigenvariate

SanjanaH March 27, 2023 05:25AM

Re: ROI first Eigenvariate

ptaylor March 27, 2023 06:08AM

Re: ROI first Eigenvariate

SanjanaH March 28, 2023 02:43AM

Re: ROI first Eigenvariate

ptaylor March 28, 2023 06:34AM

Re: ROI first Eigenvariate Attachments

SanjanaH March 30, 2023 05:50AM

Re: ROI first Eigenvariate

RWCox April 07, 2023 07:28AM