AHM2009:Batchmake and XNAT

From NAMIC Wiki
Revision as of 10:18, 24 December 2008 by Jjomier (talk | contribs)
Jump to: navigation, search
Home < AHM2009:Batchmake and XNAT

Back to AHM_2009

Breakout session Moderator: Dan Marcus (Julien Jomier will not be attending the meeting)

Agenda:


Accessing XNAT from BatchMake

Several commands have been added to BatchMake to support XNAT.

 # Set the XNAT catalog downloaded from XNAT Central
 Set(xnatCatalog 'C:/Julien/NeuroMRT_10_MR_1_12_23_2008_12_54_56.xcat')
 echo ('Xnat Tests')
 # Parse the catalog and return a list of URI/Names
 GetXnatDataSets(xnatDatas ${xnatCatalog})
 
 # Loop through all the datasets in the catalog
 ForEach(xnatData ${xnatDatas})
   # Get the filename of each datasets
   GetXnatFilename(xnatFilename ${xnatData})
   echo(${xnatFilename})
   # Get the URI of the datasets
   GetXnatURI(xnatURI ${xnatData})
   echo(${xnatURI})
   # Download the datasets
   DownloadXnatDataSet(${xnatData} 'C:/Julien/TestXNAT')
 EndForEach(${xnatData})
  • In progress
    • Support for other XNAT installation (now tied to central.xnat.org)