Sample scripts invoking xnat-tools.
Please clone this repository. If this is your first time working with xnat-tools, you can use BNC's shared folder in Oscar.
-
Login into Oscar
-
In the terminal navigate into the directory where you will download this code
cd /gpfs/data/bnc/shared/xnat-tools-examples -
Clone this repository
git clone https://github.com/brown-bnc/xnat-tools-examples.git $USER -
Make a logs directory
cd $USER mkdir -m 775 logs -
Navigate to scripts folder
cd oscar-sbatch -
Set-up variables/secrets
Create a
.envfile inside the current directory and place your secrets⚠️ At the end of this session you should delete the file, or at least your passwordXNAT_USER=<user> XNAT_PASSWORD=<psswd> XNAT_SESSION=<xnat_session_accession_number>⚠️ If you your code and data does not live in/gpfs/data/bnc/sharedthen you also need to make sure thatdata_dir,bids_root_dirandbidsmap_fileinsidexnat2bids_single_session.share correct -
Run script
sbatch xnat2bids_single_session.sh -
View logs
cat ../logs/<jobid>.txt