≡ ⎆
MRRC Wiki
Trace: • Scanners • sidebar • Onboarding • XNAT data syncing

XNAT data syncing

Scan data in XNAT can be mirrored using a local XNAT or copied using the REST API.

One way to use the API is using either python xnat or xnatpy library.

For rsync from MRRC MR Data Filesystem (gyrus) or fw download using Flywheel comparable scripts:.

  • An example using import xnat from MC is on github.
  • Alternatively, a script to mirror the dcmtk storescp DICOM listener file and path pattern written to scan_data/ can be found on https://github.com/NPACore/xnat-hpc/tree/main/misc/xnat_sync_raw.py.
    # write authentication information
    echo '{"server": "https://xnat.mrrc.upmc.edu", "user": "MYUSER", "password": "MYPASSWORD"}' > mrrc-xnat.cfg
     
    # using 'uv' from https://docs.astral.sh/uv/ 
    PROJCODE=WPC-1234 RAWROOT=/tmp/sync/test DRYRUN=1 \
      uv run --script https://raw.githubusercontent.com/NPACore/xnat-hpc/refs/heads/main/misc/xnat_sync_raw.py
Previous Next

MRRC Wiki

Table of Contents

  • Onboarding
  • Scanners
    • 3T Prisma 1
    • 3T Prisma 2
    • 3T Prisma 3
    • 7T plus (BST3)
    • 7T Terra.X
  • MRRC MR Data
    • Quality Assurance
    • ReproIn naming convention
    • XNAT
    • Flywheel
    • Filesystem
  • Supporting Hardware
    • Experimental Task PCs
    • Eye Tracking
      • SR Research EyeLink 1000 Plus
      • Avotec Arrington Eye Tracker
  • MR Physics Reports
  • Imaging Notes
    • XNAT vs Gyrus DICOMs
    • Resampling vs Registration
    • MR Task Notes
      • Psychtoolbox
  • NPAC
    • NPAC Support and Services
  • sitemap