sourcedata.yaml 1.3 KB

1234567891011121314151617181920212223
  1. ---
  2. tags:
  3. - name: sourcetype
  4. pattern: "(eeg|eyetrack|mri|nirs|genome)"
  5. - name: subject
  6. pattern: "[/\\\\]+sub-([a-zA-Z0-9]+)"
  7. - name: session
  8. pattern: "[_/\\\\]+ses-([a-zA-Z0-9]+)"
  9. - name: task
  10. pattern: "[_/\\\\]+task-([a-zA-Z0-9]+)"
  11. - name: acquisition
  12. pattern: "[_/\\\\]+acq-([a-zA-Z0-9]+)"
  13. - name: run
  14. pattern: "[_/\\\\]+run-([0-9]+)"
  15. - name: suffix
  16. pattern: "(?:^|[_/\\\\])([a-zA-Z0-9]+)\\.[^/\\\\]+$"
  17. - name: extension
  18. pattern: "[^./\\\\](\\.[^/\\\\]+)$"
  19. path_patterns:
  20. - "{sourcetype<mri>|mri}/sub-{subject}[/ses-{session}]/sub-{subject}[_ses-{session}][_task-{task}][_acq-{acquisition}][_run-{run}]_{suffix<mri>|mri}{extension<.dcm>}"
  21. - "{sourcetype<eeg>|eeg}/sub-{subject}[/ses-{session}]/sub-{subject}[_ses-{session}]_task-{task}[_acq-{acquisition}][_run-{run}]_{suffix<eeg>|eeg}{extension<.bdf|.cnt|.eeg|.edf|.data|.gdf|.mat|.mff|.nxe|.set|.vhdr|.vmrk>}"
  22. - "{sourcetype<nirs>|nirs}/sub-{subject}[/ses-{session}]/sub-{subject}[_ses-{session}]_task-{task}[_acq-{acquisition}][_run-{run}]_{suffix<nirs>|nirs}{extension<.nirx>}"
  23. - "{sourcetype<eyetrack>|eyetrack}/sub-{subject}[/ses-{session}]/sub-{subject}[_ses-{session}]_task-{task}[_acq-{acquisition}][_run-{run}]_{suffix<eyetrack>|eyetrack}{extension<.edf|.dat|.log>}"