Uploading Data

Uploading data from the scanner
After data collection, data can be sent to XNAT directly from the scanner. Partial data transfers can sometimes get stuck, so transfer an entire scan session at once, rather than run-by-run. If you are the operator at the console, select your dataset in the patient browser, then click Transfer -> Send to -> XNATRELAY.

Automated routing from scanner to XNAT

If your XNAT project has been created and named to match your protocol tree, XNAT will attempt to place the data coming from the scanner in the appropriate project using information from the DICOM metadata. At Brown we match the conditions described in XNAT's Third Pass which relies on matching the Study Description with the Project ID
Typically there is no action required at the scanner since the protocol tree is concatenated to match the study description. That is Study Description = XNAT's Project ID. Spaces are automatically replaced with underscore upon arrival in XNAT. See image indicating where the Study Description field is in the scanner console
If no Project was identified, the DICOM files will be placed in the “Unidentified” prearchive box. If Project was identified, but Subject and/or Session was not, the DICOM files will be placed in the appropriate project prearchive box. However, the automatic matching tool will not be functional, and additional data entry will be required.
We assume that the metadata for the Patient ID and the Patient Name is correctly inferred.
Study Description Field in the Console must match XNAT's project ID

Naming for multi-session studies

If your study involves multiple scan sessions per participant, following a specific consistent naming scheme will allow XNAT to nicely organize your data so that each scan session is nested under the the correct participant like this:
Individual scan sessions ("SESSION1" and "SESSION2") for participant 005
To achieve this, you need to use the Last Name and Patient ID fields in a specific way when you register your participant at the beginning of a scan. In the Last Name field, enter the subject ID you have assigned to your participant (in this demodat example, we would enter 005). In the Patient ID field, enter the same subject ID *underscore* whatever you would like to use to label your different sessions. You could do "005_sess1", "005_sess2", etc., or something that describes the different phases of your study, like "005_pretraining", "005_training", "005_posttraining".
Using the Patient ID field to enable XNAT to nest multiple sessions under a single participant

Uploading historic data (NOT Available at the moment 5/25/21)

Method 1: Using Globus and XNAT's inbox

This is the preferred method to transfer large amounts of data to the XNAT server. We leverage Globus as a secure, fast and resilient transferring service that is enabled for Brown's research storages. If you are not familiar with Globus, you can learn more from Brown's documentation.


Before uploading data to a project the following pre-requisites need to be completed
  1. 1.
    The project must exist in XNAT
  2. 2.
    You must have signed in into Globus at least once using your Brown's Credentials. To do so, make sure to find Brown University under the list of organizations.
  3. 3.
    You need to fill in the following form to request data-upload access
  4. 4.
    After receiving an email confirmation from XNAT maintainers, you will be able to transfer data using globus.


1. Have your endpoints ready
2. Organizing the Data
3. Upload
XNAT's administrator should have shared a new folder in Globus named with your XNAT's Project ID.
You should have the endpoint where your data is currently hosted already set up. Please see Brown's Documentation for setting up your endpoints for and Oscar's GPFS.
Once you have permissions to the projects folder please organize data as follows
PROJECT_ID(ROOT)/participant-id/SESSION. For instance to upload data for participant 123 in the SANES SADLUM Data, the organization looks as follows
  1. 1.
    Start Globus Transfer
  2. 2.
    Wait for Globus transfer to complete. You should receive a notification
  3. 3.
    Make a REST call to XNAT as follows. For more details on using XNAT's inbox, see here
export XNAT_USER=test_user