highspeed-bids-description.py 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # ======================================================================
  2. # SCRIPT INFORMATION:
  3. # ======================================================================
  4. # SCRIPT: UPDATE OF BIDS DIRECTORY
  5. # PROJECT: HIGHSPEED
  6. # WRITTEN BY LENNART WITTKUHN, 2018 - 2020
  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 project root:
  21. project_name = 'highspeed-bids'
  22. path_root = os.getcwd().split(project_name)[0] + project_name
  23. path_desc = os.path.join(path_root, 'dataset_description.json')
  24. # ======================================================================
  25. # UPDATE DATA-SET DESCRIPTION FILE
  26. # ======================================================================
  27. # open the dataset_description.json file:
  28. with open(path_desc) as json_file:
  29. json_desc = json.load(json_file)
  30. json_file.close()
  31. # update fields of the json file:
  32. 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."
  33. json_desc["Authors"] = ["Lennart Wittkuhn", "Nicolas W. Schuck"]
  34. json_desc["Funding"] = ["M.TN.A.BILD0004"]
  35. json_desc["DatasetDOI"] = "https://gin.g-node.org/lnnrtwttkhn/highspeed-bids/"
  36. json_desc["License"] = "Creative Commons Attribution-NonCommercial-ShareAlike 4.0"
  37. json_desc["Name"] = "Faster than thought: Detecting sub-second activation sequences with sequential fMRI pattern analysis"
  38. 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"]
  39. 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"
  40. json_desc["EthicsApprovals"] = ["The research protocol was approved by the ethics commission of the German Psychological Society (DPGs), reference number: NS 012018"]
  41. # save updated data-set_description.json file:
  42. with open(path_desc, 'w') as outfile:
  43. json.dump(json_desc, outfile, indent=4)
  44. outfile.close()