/xnat_python_scripts

Set of python scripts used to interact with XNAT mostly via the rest

Primary LanguagePythonMIT LicenseMIT

xnat_python_scripts

Set of examplar python scripts used to demonstrate interaction with XNAT via the rest

  • upload_adni_data.py This script is used to populate a project with ADNI data. It shows how to create subject, experiment and scan, as well as set meta-data and upload files.

  • view_snapshot_gui.py This script present a simple interface to visualise snapshot and download files, dicom or nifti

  • extract_scanners_info.py This script shows how one can retrive information from XNAT to do some analytics. Here, we extract the number of different scanners in a multi-centric study (e.g. ADNI).

  • download_ifind.ipynb Examplar notebook that contains code to download all files from a given project using the requests module.