Difference between revisions of "AHM2009:Batchmake and XNAT"

From NAMIC Wiki
Jump to: navigation, search
(New page: Back to AHM_2009 Breakout session Moderator: Julien Jomier, Dan Marcus Agenda:)
 
Line 1: Line 1:
 
Back to [[AHM_2009]]
 
Back to [[AHM_2009]]
  
Breakout session Moderator: Julien Jomier, Dan Marcus
+
Breakout session Moderator: Dan Marcus
 +
(Julien Jomier will not be attending the meeting)
  
 
Agenda:
 
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)

Revision as of 10:18, 24 December 2008

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)