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-description.py 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # ======================================================================
  2. # SCRIPT INFORMATION:
  3. # ======================================================================
  4. # SCRIPT: UPDATE OF BIDS DIRECTORY
  5. # PROJECT: HIGHSPEED
  6. # WRITTEN BY LENNART WITTKUHN, 2018 - 2019
  7. # CONTACT: WITTKUHN AT MPIB HYPHEN BERLIN DOT MPG DOT DE
  8. # MAX PLANCK RESEARCH GROUP NEUROCODE
  9. # MAX PLANCK INSTITUTE FOR HUMAN DEVELOPMENT
  10. # MAX PLANCK UCL CENTRE FOR COMPUTATIONAL PSYCHIATRY AND AGEING RESEARCH
  11. # LENTZEALLEE 94, 14195 BERLIN, GERMANY
  12. # ======================================================================
  13. # IMPORT RELEVANT PACKAGES
  14. # ======================================================================
  15. import json
  16. import os
  17. # ======================================================================
  18. # DEFINE PATHS
  19. # ======================================================================
  20. # path to the root directory:
  21. path_root = os.environ['HOME']
  22. # path to the data input directory (in bids format):
  23. path_bids = os.path.join(path_root, 'highspeed', 'bids')
  24. path_desc = os.path.join(path_bids, 'dataset_description.json')
  25. # ======================================================================
  26. # UPDATE DATA-SET DESCRIPTION FILE
  27. # ======================================================================
  28. # open the dataset_description.json file:
  29. with open(path_desc) as json_file:
  30. json_desc = json.load(json_file)
  31. json_file.close()
  32. # update fields of the json file:
  33. json_desc["Acknowledgements"] = "This work was funded by a research group grant awarded to NWS by the Max Planck Society (M.TN.A.BILD0004). We thank Eran Eldar, Sam Hall-McMaster and Ondrej Zika for helpful comments on a previous version of this manuscript, Gregor Caregnato for help with participant recruitment and data collection, Anika Loewe, Sonali Beckmann and Nadine Taube for assistance with MRI data acquisition, Lion Schulz for help with behavioral data analysis, Michael Krause for support with cluster computing and all participants for their participation. Lennart Wittkuhn is a pre-doctoral fellow of the International Max Planck Research School on Computational Methods in Psychiatry and Ageing Research (IMPRS COMP2PSYCH). The participating institutions are the Max Planck Institute for Human Development, Berlin, Germany, and University College London, London, UK. For more information, see https://www.mps-ucl-centre.mpg.de/en/comp2psych."
  34. json_desc["Authors"] = ["Lennart Wittkuhn", "Nicolas W. Schuck"]
  35. json_desc["Funding"] = ["M.TN.A.BILD0004"]
  36. json_desc["DatasetDOI"] = "openneuro.org"
  37. json_desc["License"] = "Creative Commons CC0"
  38. json_desc["Name"] = "Faster than thought: Detecting sub-second activation sequences with sequential fMRI pattern analysis"
  39. json_desc["ReferencesAndLinks"] = ["Wittkuhn, L. and Schuck, N. W. (2020). Faster than thought: Detecting sub-second activation sequences with sequential fMRI pattern analysis. bioRxiv. doi: 10.1101/2020.02.15.950667"]
  40. json_desc["HowToAcknowledge"] = "Please cite: Wittkuhn, L. and Schuck, N. W. (2020). Faster than thought: Detecting sub-second activation sequences with sequential fMRI pattern analysis. bioRxiv. doi: 10.1101/2020.02.15.950667"
  41. json_desc["EthicsApprovals"] = ["The research protocol was approved by the ethics commission of the German Psychological Society (DPGs), reference number: NS 012018"]
  42. # save updated data-set_description.json file:
  43. with open(path_desc, 'w') as outfile:
  44. json.dump(json_desc, outfile, indent=4)
  45. outfile.close()