Usage: Genesis2Analyze basename*.MR
Renumber all files ending in '*.MR' with 3 digit numbers
Create an analyze 4D file with these contents
Note that you must keep a copy of the NameFile (which ends in .NAME_FILE)
and the headers file, which ends in: .GenesisHeaders, in order to
successfully reconstruct the genesis headers using Analyze2Genesis
More (y/n)?: y
This is part of a set of utilities to pre-process signa files for intensity correction,
and to post-process the resulting files to convert them to a valid Signa format.
==============
The tool Genesis2Analyze takes a series of ExxxxSxxxIxxx.MR files and makes them into a single
4-D analyze file. It also saves a record of the original names, and the complete header for each
Typing Genesis2Analyze (my way of providing simple help) gives:
Usage: Genesis2Analyze basename*.MR
Renumber all files ending in '*.MR' with 3 digit numbers
Create an analyze 4D file with these contents
Note that you must keep a copy of the NameFile (which ends in .NAME_FILE)
and the headers file, which ends in: .GenesisHeaders, in order to
successfully reconstruct the genesis headers using Analyze2Genesis
===============
Analyze2Genesis does the reverse operation, extracting each slice in an analyze file, and giving
it a name and header from the output derived from Genesis2Analyze.
Typing Analyze2Genesis gives:
Usage:
Analyze2Genesis -i AnalyzeInputFile -n NameFile
Analyze2Genesis will convert a (4D) analyze file to a series of genesis
files having names corresponding to the contents of the NameFile
Note that you must keep a copy of the NameFile (which ends in .NAME_FILE)
and the headers file, which ends in: .GenesisHeaders, in order to
successfully reconstruct the genesis headers using Analyze2Genesis
The user is responsible for ensuring that the name file has a separate
entry for each slice location in the analyze file
================
A complete session transcript follows for RF correction. Note that the warning messages for mv
and differing byte order are expected.
Genesis2Analyze E*.MR
Renaming files
mv: E2123S2I124.MR and E2123S2I124.MR are identical.
... etc ...
mv: E2123S2I100.MR and E2123S2I100.MR are identical.
WARNING: Computer and data differ in byte order
Patience for a moment
Created Analyze (4D) file: E2123S2.img
Save these files!: E2123S2.NAME_FILE and E2123S2.GenesisHdrs
To create corresponding genesis images from an analyze file named XXX.img, use:
Analyze2Genesis -n E2123S2.NAME_FILE -i XXX.img
All done
--------------------
> EQ -i E2123S2.img -o eqTst
EQ
$Revision: 1.5 $$Date: 2002/04/09 00:49:20 $
Working
Done. Thank you for using EQ.
mscohen@ucla.edu -- http://www.brainmapping.org
--------------------
Analyze2Genesis -n E2123S2.NAME_FILE -i eqTst.img
Using E2123S2.GenesisHdrs for genesis headers
......................................................................
> ls Ec*
Ec2123S2I001.MR Ec2123S2I026.MR Ec2123S2I051.MR Ec2123S2I076.MR Ec2123S2I101.MR
... etc ...
Ec2123S2I025.MR Ec2123S2I050.MR Ec2123S2I075.MR Ec2123S2I100.MR
|