config_pybids.json 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. {
  2. "name": "bids",
  3. "entities": [
  4. {
  5. "name": "subject",
  6. "pattern": "[/\\\\]+sub-([a-zA-Z0-9]+)",
  7. "directory": "{subject}"
  8. },
  9. {
  10. "name": "session",
  11. "pattern": "[_/\\\\]+ses-([a-zA-Z0-9]+)",
  12. "mandatory": false,
  13. "directory": "{subject}{session}"
  14. },
  15. {
  16. "name": "sample",
  17. "pattern": "[_/\\\\]+sample-([a-zA-Z0-9]+)"
  18. },
  19. {
  20. "name": "task",
  21. "pattern": "[_/\\\\]+task-([a-zA-Z0-9]+)"
  22. },
  23. {
  24. "name": "acquisition",
  25. "pattern": "[_/\\\\]+acq-([a-zA-Z0-9]+)"
  26. },
  27. {
  28. "name": "ceagent",
  29. "pattern": "[_/\\\\]+ce-([a-zA-Z0-9]+)"
  30. },
  31. {
  32. "name": "tracer",
  33. "pattern": "[_/\\\\]+tracer-([a-zA-Z0-9]+)"
  34. },
  35. {
  36. "name": "stain",
  37. "pattern": "[_/\\\\]+stain-([a-zA-Z0-9]+)"
  38. },
  39. {
  40. "name": "reconstruction",
  41. "pattern": "[_/\\\\]+rec-([a-zA-Z0-9]+)"
  42. },
  43. {
  44. "name": "direction",
  45. "pattern": "[_/\\\\]+dir-([a-zA-Z0-9]+)"
  46. },
  47. {
  48. "name": "run",
  49. "pattern": "[_/\\\\]+run-0*(\\d+)",
  50. "dtype": "int"
  51. },
  52. {
  53. "name": "proc",
  54. "pattern": "[_/\\\\]+proc-([a-zA-Z0-9]+)"
  55. },
  56. {
  57. "name": "modality",
  58. "pattern": "[_/\\\\]+mod-([a-zA-Z0-9]+)"
  59. },
  60. {
  61. "name": "echo",
  62. "pattern": "[_/\\\\]+echo-([0-9]+)"
  63. },
  64. {
  65. "name": "flip",
  66. "pattern": "[_/\\\\]+flip-([0-9]+)"
  67. },
  68. {
  69. "name": "inv",
  70. "pattern": "[_/\\\\]+inv-([0-9]+)"
  71. },
  72. {
  73. "name": "mt",
  74. "pattern": "[_/\\\\]+mt-(on|off)"
  75. },
  76. {
  77. "name": "part",
  78. "pattern": "[_/\\\\]+part-(imag|mag|phase|real)"
  79. },
  80. {
  81. "name": "fmap",
  82. "pattern": "(phasediff|magnitude[1-2]|phase[1-2]|fieldmap|epi)\\.nii"
  83. },
  84. {
  85. "name": "recording",
  86. "pattern": "[_/\\\\]+recording-([a-zA-Z0-9]+)"
  87. },
  88. {
  89. "name": "space",
  90. "pattern": "[_/\\\\]+space-([a-zA-Z0-9]+)"
  91. },
  92. {
  93. "name": "chunk",
  94. "pattern": "[_/\\\\]+chunk-([0-9]+)"
  95. },
  96. {
  97. "name": "suffix",
  98. "pattern": "[._]*([a-zA-Z0-9]*?)\\.[^/\\\\]+$"
  99. },
  100. {
  101. "name": "scans",
  102. "pattern": "(.*\\_scans.tsv)$"
  103. },
  104. {
  105. "name": "datatype",
  106. "pattern": "[/\\\\]+(anat|beh|dwi|eeg|fmap|func|ieeg|meg|perf|micr|ephys)[/\\\\]+"
  107. },
  108. {
  109. "name": "extension",
  110. "pattern": "[._]*[a-zA-Z0-9]*?(\\.[^/\\\\]+)$"
  111. }
  112. ],
  113. "default_path_patterns": [
  114. "sub-{subject}[/ses-{session}]/{datatype<anat>|anat}/sub-{subject}[_ses-{session}][_acq-{acquisition}][_ce-{ceagent}][_rec-{reconstruction}][_part-{part}]_{suffix<T1w|T2w|T1rho|T1map|T2map|T2star|FLAIR|FLASH|PDmap|PD|PDT2|inplaneT[12]|angio>}{extension<.nii|.nii.gz|.json>|.nii.gz}",
  115. "sub-{subject}[/ses-{session}]/{datatype<anat>|anat}/sub-{subject}[_ses-{session}][_acq-{acquisition}][_ce-{ceagent}][_rec-{reconstruction}][_mod-{modality}]_{suffix<defacemask>}{extension<.nii|.nii.gz|.json>|.nii.gz}",
  116. "sub-{subject}[/ses-{session}]/{datatype<func>|func}/sub-{subject}[_ses-{session}]_task-{task}[_acq-{acquisition}][_ce-{ceagent}][_dir-{direction}][_rec-{reconstruction}][_run-{run}][_echo-{echo}][_part-{part}]_{suffix<bold|cbv|sbref>}{extension<.nii|.nii.gz|.json>|.nii.gz}",
  117. "sub-{subject}[/ses-{session}]/{datatype<func>|func}/sub-{subject}[_ses-{session}]_task-{task}[_acq-{acquisition}][_ce-{ceagent}][_dir-{direction}][_rec-{reconstruction}][_run-{run}][_echo-{echo}]_{suffix<phase>}{extension<.nii|.nii.gz|.json>|.nii.gz}",
  118. "sub-{subject}[/ses-{session}]/{datatype<dwi>|dwi}/sub-{subject}[_ses-{session}][_acq-{acquisition}][_part-{part}]_{suffix<dwi>}{extension<.bval|.bvec|.json|.nii.gz|.nii>|.nii.gz}",
  119. "sub-{subject}[/ses-{session}]/{datatype<fmap>|fmap}/sub-{subject}[_ses-{session}][_acq-{acquisition}][_dir-{direction}][_run-{run}]_{fmap<phasediff|magnitude[12]|phase[12]|fieldmap>}{extension<.nii|.nii.gz|.json>|.nii.gz}",
  120. "sub-{subject}[/ses-{session}]/{datatype<fmap>|fmap}/sub-{subject}[_ses-{session}][_acq-{acquisition}][_ce-{ceagent}]_dir-{direction}[_run-{run}]_{fmap<epi>}{extension<.nii|.nii.gz|.json>|.nii.gz}",
  121. "sub-{subject}[/ses-{session}]/[{datatype<func|meg|beh>|func}/]sub-{subject}[_ses-{session}]_task-{task}[_acq-{acquisition}][_rec-{reconstruction}][_run-{run}][_echo-{echo}][_recording-{recording}]_{suffix<events>}{extension<.tsv|.json>|.tsv}",
  122. "sub-{subject}[/ses-{session}]/[{datatype<func|beh>|func}/]sub-{subject}[_ses-{session}]_task-{task}[_acq-{acquisition}][_rec-{reconstruction}][_run-{run}][_echo-{echo}][_recording-{recording}]_{suffix<physio|stim>}{extension<.tsv.gz|.json>|.tsv.gz}",
  123. "sub-{subject}[/ses-{session}]/{datatype<meg>|meg}/sub-{subject}[_ses-{session}]_task-{task}[_acq-{acquisition}][_run-{run}][_proc-{proc}]_{suffix<meg>}{extension}",
  124. "sub-{subject}[/ses-{session}]/{datatype<meg>|meg}/sub-{subject}[_ses-{session}]_task-{task}[_acq-{acquisition}][_run-{run}][_proc-{proc}]_{suffix<channels>}{extension<.tsv|.json>|.tsv}",
  125. "sub-{subject}[/ses-{session}]/{datatype<meg>|meg}/sub-{subject}[_ses-{session}]_task-{task}[_acq-{acquisition}]_{suffix<coordsystem>}{extension<.json>|.json}",
  126. "sub-{subject}[/ses-{session}]/{datatype<meg>|meg}/sub-{subject}[_ses-{session}]_task-{task}[_acq-{acquisition}]_{suffix<photo>}{extension<.jpg>|.jpg}",
  127. "[acq-{acquisition}_][ce-{ceagent}_][rec-{reconstruction}_]{suffix<T1w|T2w|T1rho|T1map|T2map|T2star|FLAIR|FLASH|PDmap|PD|PDT2|inplaneT[12]|angio>}{extension<.json>|.json}",
  128. "[acq-{acquisition}_][ce-{ceagent}_][rec-{reconstruction}_][mod-{modality}_]{suffix<defacemask>}{extension<.json>|.json}",
  129. "task-{task}[_acq-{acquisition}][_ce-{ceagent}][_dir-{direction}][_rec-{reconstruction}][_run-{run}][_echo-{echo}]_{suffix<bold|cbv|phase|sbref>}{extension<.json>|.json}",
  130. "[acq-{acquisition}_]{suffix<dwi>}{extension<.json>|.json}",
  131. "[acq-{acquisition}_][dir-{direction}_][run-{run}_]{fmap<phasediff|magnitude[1-2]|phase[1-2]|fieldmap>}{extension<.json>|.json}",
  132. "[acq-{acquisition}_][ce-{ceagent}_]dir-{direction}[_run-{run}]_{fmap<epi>}{extension<.json>|.json}",
  133. "task-{task}[_acq-{acquisition}][_rec-{reconstruction}][_run-{run}][_echo-{echo}][_recording-{recording}]_{suffix<events>}{extension<.json>|.json}",
  134. "task-{task}[_acq-{acquisition}][_rec-{reconstruction}][_run-{run}][_echo-{echo}][_recording-{recording}]_{suffix<physio|stim>}{extension<.json>}"
  135. ]
  136. }