Scheduled service maintenance on November 22


On Friday, November 22, 2024, between 06:00 CET and 18:00 CET, GIN services will undergo planned maintenance. Extended service interruptions should be expected. We will try to keep downtimes to a minimum, but recommend that users avoid critical tasks, large data uploads, or DOI requests during this time.

We apologize for any inconvenience.

highspeed-bids-validator.sh 1.8 KB

1234567891011121314151617181920212223242526272829303132333435
  1. #!/usr/bin/bash
  2. # ==============================================================================
  3. # SCRIPT INFORMATION:
  4. # ==============================================================================
  5. # SCRIPT: RUN BIDS VALIDATOR COMMAND LINE TOOL THROUGH SINGULARITY
  6. # PROJECT: HIGHSPEED
  7. # WRITTEN BY LENNART WITTKUHN, 2018 - 2020
  8. # CONTACT: WITTKUHN AT MPIB HYPHEN BERLIN DOT MPG DOT DE
  9. # MAX PLANCK RESEARCH GROUP NEUROCODE
  10. # MAX PLANCK INSTITUTE FOR HUMAN DEVELOPMENT
  11. # MAX PLANCK UCL CENTRE FOR COMPUTATIONAL PSYCHIATRY AND AGEING RESEARCH
  12. # LENTZEALLEE 94, 14195 BERLIN, GERMANY
  13. # ==============================================================================
  14. # DEFINE ALL PATHS:
  15. # ==============================================================================
  16. PATH_BASE="${HOME}"
  17. PROJECT="highspeed"
  18. PATH_CONTAINER="${PATH_BASE}/tools/bids_validator/validator_1.3.12.sif"
  19. PATH_INPUT="${PATH_BASE}/${PROJECT}/highspeed-bids"
  20. PATH_OUTPUT="${PATH_BASE}/tmp/bids_validator"
  21. # ==============================================================================
  22. # CREATE RELEVANT DIRECTORIES:
  23. # ==============================================================================
  24. # create output directory:
  25. if [ ! -d ${PATH_OUTPUT} ]; then
  26. mkdir -p ${PATH_OUTPUT}
  27. echo "created ${PATH_OUTPUT}"
  28. fi
  29. # ==============================================================================
  30. # RUN BIDS-VALIDATOR:
  31. # ==============================================================================
  32. # run bids-validator and save the output in a text file:
  33. singularity run --contain -B ${PATH_INPUT}:/input:ro ${PATH_CONTAINER} /input/ | tee -a ${PATH_OUTPUT}/bids_validation.txt
  34. # run the bids-validator and save the output in a .json file:
  35. singularity run --contain -B ${PATH_INPUT}:/input:ro ${PATH_CONTAINER} /input/ --json | tee -a ${PATH_OUTPUT}/bids_validation.json