AFNI Message Board

History of AFNI updates  

|
April 14, 2022 11:17AM
Hi, Pawel-

Re. subbricks: You should be able to use AFNI subbrick selectors:
INPUT DATASET NAMES
-------------------
 An input dataset is specified using one of these forms:
    'prefix+view', 'prefix+view.HEAD', or 'prefix+view.BRIK'.
 You can also add a sub-brick selection list after the end of the
 dataset name.  This allows only a subset of the sub-bricks to be
 read in (by default, all of a dataset's sub-bricks are input).
 A sub-brick selection list looks like one of the following forms:
   fred+orig[5]                     ==> use only sub-brick #5
   fred+orig[5,9,17]                ==> use #5, #9, and #17
   fred+orig[5..8]     or [5-8]     ==> use #5, #6, #7, and #8
   fred+orig[5..13(2)] or [5-13(2)] ==> use #5, #7, #9, #11, and #13
 Sub-brick indexes start at 0.  You can use the character '$'
 to indicate the last sub-brick in a dataset; for example, you
 can select every third sub-brick by using the selection list
   fred+orig[0..$(3)]

 N.B.: The sub-bricks are read in the order specified, which may
 not be the order in the original dataset.  For example, using
   fred+orig[0..$(2),1..$(2)]
 will cause the sub-bricks in fred+orig to be input into memory
 in an interleaved fashion.  Using
   fred+orig[$..0]
 will reverse the order of the sub-bricks.

 N.B.: You may also use the syntax <a..b> after the name of an input 
 dataset to restrict the range of values read in to the numerical
 values in a..b, inclusive.  For example,
    fred+orig[5..7]<100..200>
 creates a 3 sub-brick dataset with values less than 100 or
 greater than 200 from the original set to zero.
 If you use the <> sub-range selection without the [] sub-brick
 selection, it is the same as if you had put [0..$] in front of
 the sub-range selection.

 N.B.: Datasets using sub-brick/sub-range selectors are treated as:
  - 3D+time if the dataset is 3D+time and more than 1 brick is chosen
  - otherwise, as bucket datasets (-abuc or -fbuc)
    (in particular, fico, fitt, etc datasets are converted to fbuc!)

 N.B.: The characters '$ ( ) [ ] < >'  are special to the shell,
 so you will have to escape them.  This is most easily done by
 putting the entire dataset plus selection list inside forward
 single quotes, as in 'fred+orig[5..7,9]', or double quotes "x".
Subject Author Posted

HEAD/BRIK into Matlab (or how to check ROIs against atlas)

Pawel April 13, 2022 08:33PM

Re: HEAD/BRIK into Matlab (or how to check ROIs against atlas)

ptaylor April 14, 2022 09:08AM

Re: HEAD/BRIK into Matlab (or how to check ROIs against atlas)

Pawel April 14, 2022 11:11AM

Re: HEAD/BRIK into Matlab (or how to check ROIs against atlas)

ptaylor April 14, 2022 11:17AM

Re: HEAD/BRIK into Matlab (or how to check ROIs against atlas)

Pawel April 14, 2022 11:23AM

Re: HEAD/BRIK into Matlab (or how to check ROIs against atlas)

ptaylor April 14, 2022 01:50PM

Re: HEAD/BRIK into Matlab (or how to check ROIs against atlas)

Pawel April 14, 2022 01:56PM

Re: HEAD/BRIK into Matlab (or how to check ROIs against atlas)

ptaylor April 14, 2022 02:07PM

Re: HEAD/BRIK into Matlab (or how to check ROIs against atlas)

Pawel April 14, 2022 02:32PM

Re: HEAD/BRIK into Matlab (or how to check ROIs against atlas)

ptaylor April 14, 2022 03:51PM

Re: HEAD/BRIK into Matlab (or how to check ROIs against atlas)

Pawel April 14, 2022 04:09PM

Re: HEAD/BRIK into Matlab (or how to check ROIs against atlas)

Daniel Glen April 15, 2022 10:19PM

Re: HEAD/BRIK into Matlab (or how to check ROIs against atlas)

Pawel April 15, 2022 11:01PM

Re: HEAD/BRIK into Matlab (or how to check ROIs against atlas)

ptaylor April 15, 2022 11:50PM

Re: HEAD/BRIK into Matlab (or how to check ROIs against atlas)

Pawel April 16, 2022 01:14AM

Re: HEAD/BRIK into Matlab (or how to check ROIs against atlas)

ptaylor April 16, 2022 07:38AM

Re: HEAD/BRIK into Matlab (or how to check ROIs against atlas)

Pawel April 16, 2022 11:22AM

Re: HEAD/BRIK into Matlab (or how to check ROIs against atlas)

Daniel Glen April 17, 2022 10:43PM



Sorry, only registered users may post in this forum.

Click here to login