Python API

datalad-xnat has three main commands that are exposed as functions via datalad.api and as methods of the Dataset class: xnat_init for configuring a dataset to track XNAT projects, xnat_update for updating and retrieving files from tracked XNAT projects, and xnat_query-files for querying available files on an XNAT server. Find out more about each command below.

xnat_init(url[, pathfmt, project, subject, ...])

Initialize an existing dataset to track an XNAT project

xnat_query_files(url[, project, experiment, ...])

Query an XNAT server for projects, or an XNAT project for subjects

xnat_update([project, subject, experiment, ...])

Update files for a subject(s) of an XNAT project.