Behavior and Neuroimaging Core User Manual
  • About
  • Infrastructure Overview
  • XNAT
    • Getting Started
    • Accessing XNAT
    • BIDS Ready Protocols
    • New XNAT projects
    • Uploading Data
    • Downloading Data
  • Demo Dataset
    • Introduction
    • How to access it
    • Protocol Information
    • Basic analysis example: checks task
  • XNAT to BIDS
    • Getting Started
    • XNAT2BIDS Software
    • Exporting to BIDS using Oscar
      • Oscar Utility Script
        • Running xnat2bids using default configuration
        • Running xnat2bids with a custom configuration
        • Syncing your XNAT project & Oscar data directory
        • Extra tools & features
      • Step-wise via Interact Session
    • BIDS Validation
      • Oscar
      • Docker
    • Converting non-MR data
      • Physiological data
      • EEG data
  • XNAT TO BIDS (Legacy)
    • Oscar SBATCH Scripts
  • BIDS and BIDS Containers
    • Introduction to BIDS
    • mriqc
    • fmriprep
    • BIDS to NIMH Data Archive (NDA)
  • Analysis Pipelines
    • Freesurfer
    • 🚧CONN Toolbox
    • FSL topup and eddy
    • Tractography: DSI Studio
    • Brown University MRS Data Collection and Preprocessing Protocol
    • LC Model
      • Installation
      • Example Run
      • Running LCModel on your own data
    • Quantitative Susceptibility Mapping (QSM)
  • Standalone Tools
    • Multi-session spectroscopy with voxalign
    • dicomsort: a tool to organize DICOM files
    • ironmap
    • convert enhanced multi-frame DICOMs to legacy single-frame
    • DICOM anonymization
  • MRF GUIDES
    • MRI simulator room
      • Motion Trainer: Balloon Task
      • Simulating scanner triggers
    • Stimulus display & response collection
    • Eyetracking at the scanner
    • Exporting data via scannershare
    • EEG in the scanner
    • Exporting spectroscopy RDA files
  • Community
    • MRF/BNC user community meetings
Powered by GitBook
On this page
  • 0. Summary of commands
  • 1. Log into oscar and start an interactive section
  • 2. Define variables
  • 3. Run the main executable via singularity

Was this helpful?

  1. XNAT to BIDS
  2. BIDS Validation

Oscar

Running the BIDS validator on Oscar

PreviousBIDS ValidationNextDocker

Last updated 4 months ago

Was this helpful?

0. Summary of commands

version=v1.14.14
bids_directory=${HOME}/xnat-exports/bnc/study-demodat/bids
simg=/oscar/data/bnc/simgs/bids/validator-${version}.sif
singularity exec --bind ${bids_directory}:${bids_directory}:ro ${simg} \bids-validator ${bids_directory}

1. Log into oscar and start an interactive section

If you are using the , then you are already inside an interactive session and you just need to open the terminal. Otherwise, you can start an interactive job of 1 hour with

interact -n 2 -t 01:00:00 -m 8g

2. Define variables

Specify the version of the validator you want to use.

version=v1.14.14

You can run ls /oscar/data/bnc/simgs/bids/validator* to print all available versions

Set up paths

Specify your bids directory. This is where dataset_description.json file lives

bids_directory=${HOME}/xnat-exports/bnc/study-demodat/bids

Path to Singularity Image for the bids-validator (maintained by bnc)

simg=/oscar/data/bnc/simgs/bids/validator-${version}.sif

3. Run the main executable via singularity

The following command runs the bids-validator executable (via singularity) to test if a directory is BIDS compliant. The command tells singularity to launch the validator-${version}.sif image and execute the bids-validator command. The bids validator expects a directory as an input, which in this case corresponds to ${bids_directory}. The --bind ${bids_directory}:${bids_directory}:ro makes the ${HOME}/xnat-exports/bnc/study-demodat/bids available read-only inside the container at the same path.

singularity exec --bind ${bids_directory}:${bids_directory}:ro ${simg} \bids-validator ${bids_directory}

Desktop app on Open OnDemand