History of AFNI updates  

|
January 22, 2016 11:19AM
The $ is effectively a "the last sub-brick" selector. So you could try:

stats.subj1_REML+tlrc'[1..$(2)]'

More info is available near the end of the afni -help output.

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)]



Edited 1 time(s). Last edit at 01/22/2016 11:22AM by Peter Molfese.
Subject Author Posted

sub-brick wildcard option

donnajb January 22, 2016 11:06AM

Re: sub-brick wildcard option

Peter Molfese January 22, 2016 11:19AM

Re: sub-brick wildcard option

donnajb January 22, 2016 12:00PM

Re: sub-brick wildcard option

rick reynolds January 22, 2016 02:45PM

Re: sub-brick wildcard option

donnajb January 22, 2016 06:00PM

Re: sub-brick wildcard option

Peter Molfese January 22, 2016 02:50PM

Re: sub-brick wildcard option

donnajb January 22, 2016 06:01PM