Friday 2 March 2012

Gannet Quick Start Guide

0.   Get Matlab with Optimisation and Statistics Toolboxes


1.       Get the code from github and add these files to your matlab path
Assuming familiarity with Matlab, make sure all the files downloaded from github are in your matlab path; (i.e.use “add with subfolders”). If you are not familiar with matlab, someone else in your group probably is.

2.       What do I type?
Gannet is currently run from two commands – GannetLoad and GannetFit.  This section will cover the load and processing of a single data file. Replace the filename with the actual name of your file.
2.1.    GE data
P files contain a water reference internally, so:
MRS_struct  = GannetLoad({‘GE_data1.7’});
MRS_struct  = GannetFit(MRS_struct);

2.2.    Philips .sdat files
If no water reference data have been collected:
MRS_struct  = GannetLoad({‘Philips1.sdat’});
MRS_struct  = GannetFit(MRS_struct);
If water reference data have been collected:
MRS_struct  = GannetLoad({‘Philips1.sdat’},{‘Philips1_water.sdat’});
MRS_struct  = GannetFit(MRS_struct);

2.3.    Philips .data files
If no water reference data have been collected:
MRS_struct  = GannetLoad({‘Philips1.data’});
MRS_struct  = GannetFit(MRS_struct);
If water reference data have been collected:
MRS_struct  = GannetLoad({‘Philips1.data’},{‘Philips1_water.data’});
MRS_struct  = GannetFit(MRS_struct);

2.4.    Siemens .rda files (saved as OFF and ON rda files separately)
MRS_struct  = GannetLoad({'Siemens1_OFF.rda' 'Siemens1_ON.rda'});
MRS_struct  = GannetFit(MRS_struct);
If water reference data have been collected:
MRS_struct  = GannetLoad({ 'Siemens1_OFF.rda' 'Siemens1_ON.rda' },{'Siemens_water.rda'});
MRS_struct  = GannetFit(MRS_struct);

3.       Data Formats
GE, Philips and Siemens data formats are supported. Vendor is chosen according to file endings, so make sure your data files end .7 .rda .sdat or .data.


4.       Assumptions
The formatting of data within the data files is assumed to be the  same as for ‘our’ implementations on Philips and GE, whereas we handle Siemens outputted data that have already been processed into a single data file.  If you are using this software to process your own implementation of GABA-edited MRS, please contact us.

4 comments:

  1. For GE data: Gannet can currently read data acquired with Richard's sequence (repress7) for 14x (and possibly 15x). We're currently working on read functions for Ralph Noeske's sequence (gaba) for 14x and 22x.

    ReplyDelete
  2. Dear GannetUsers,

    I downloded the Gannet and trying to fit Siemens MRS MEGA-PRESS DATA using following commands.

    >> MRS_struct = GannetLoad({ 'MrSpec_SpecEdit.rda'},{'MrSpec_water.rda'});

    I get following error message.

    ??? Reference to non-existent field 'gabaspec'.

    Error in ==> GannetFit at 45
    GABAData=MRS_struct.gabaspec;

    Can someone help me to overcome the above mentioned error.

    P.S We donot have separate ON and OFF data as we did spectral editing in Siemens provided software itself.

    Best wishes,
    Harshal

    ReplyDelete
  3. Hi Harshal,
    As far as I know, the Siemens WIP exports three .rda files - the ON, the OFF and the difference spectrum.
    Gannet does not currently support just giving it the DIFF spectrum, but it could with a little tweaking.

    ReplyDelete
  4. i am getting error while loading the data.
    can some one tell me why i am getting error in line 914 and 915 in matlab.

    ReplyDelete