Pyxnat

Xnat in Python
Download

Pyxnat Ranking & Summary

Advertisement

  • Rating:
  • License:
  • BSD License
  • Price:
  • FREE
  • Publisher Name:
  • Yannick Schwartz
  • Publisher web site:
  • http://cea.fr

Pyxnat Tags


Pyxnat Description

Xnat in Python Pyxnat is a simple Python library that relies on the REST API provided by the XNAT platform since its 1.4 version. XNAT is an extensible database for neuroimaging data. The main objective is to ease communications with an XNAT server to plug-in external tools or python scripts to process the data. It features: 1. resources browsing capabilities 2. read and write access to resources 3. complex searches 4. disk-caching of requested files and resources http://www.xnat.org/ http://packages.python.org/pyxnat/ A short overview Setup the connection >>> from pyxnat import Interface >>> interface = Interface(server='http://central.xnat.org:8080', user='login', password='pass', datastore=os.path.join( os.path.expanduser('~'), 'XnatStore' ) ) Browse the resources >>> interface.projects() Create new resources >>> interface.project('my_project').create() >>> interface.project('my_project').file('image.nii').put('/tmp/image.nii') Metadata support >>> proj = interface.project('my_project') >>> proj.attrib.keys() >>> proj.attrib.set('note', 'a note') >>> proj.attrib.get('note') 'a note' Make complex searches >>> search = interface.search( 'my_search', ) >>> search.get_subjects() Requirements: · Python


Pyxnat Related Software