You can't do this on the command line but editing the .fsf from the script
is really trivial because of one rule: it is the LAST setting of any
variable that counts, so you can just append it to the end of the .fsf,
echo 'set feat_files(1) "my-new-fvol.hdr"' >> design.fsf
Hope this is good enough!
On Tue, 6 Jul 2004, Doug Greve wrote:
> Hi FSLers,
> I'm looking for a way to run Feat in batch mode without having to go
> through the viewer. I know that I can create a design.fsf, save it, then
> run "feat design.fsf".
> However, what I'd really like to do is use the Feat GUI to define the
> parameters of the first-level analysis once-and-for-all, then apply it
> to other data sets without having to invoke the GUI (premised on the
> assumption that they all have the same design of course).
> Can feat be invoked something like:
> feat design.fsf my-new-fvol.img
> which might tell feat to ignore whatever is listed as the input volume
> in the design.fsf and use my-new-fvol.img instead.
> Then I could just define design.fsf once and then set up a script to
> loop through all my volumes.
> I know that I can have my script hack into design.fsf, but I'd rather
> use any functionality that exists now.
> Douglas N. Greve, Ph.D.
> MGH-NMR Center
> [log in to unmask]
> Phone Number: 617-724-2358
> Fax: 617-726-7422
Stephen M. Smith DPhil
Associate Director, FMRIB and Analysis Research Coordinator
Oxford University Centre for Functional MRI of the Brain
John Radcliffe Hospital, Headington, Oxford OX3 9DU, UK
+44 (0) 1865 222726 (fax 222717)
[log in to unmask] http://www.fmrib.ox.ac.uk/~steve