[FIX] Entity order for derivatives data sink#1020
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1020 +/- ##
==========================================
- Coverage 71.77% 67.13% -4.65%
==========================================
Files 91 54 -37
Lines 8755 6849 -1906
Branches 936 852 -84
==========================================
- Hits 6284 4598 -1686
+ Misses 2238 2036 -202
+ Partials 233 215 -18 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| "sub-{subject}[/ses-{session}]/{datatype<anat>|anat}/sub-{subject}[_ses-{session}][_hash-{hash}][_acq-{acquisition}][_ce-{ceagent}][_rec-{reconstruction}][_run-{run}][_space-{space}][_cohort-{cohort}][_res-{resolution}]_label-{label}[_desc-{desc}]_{suffix<probseg>|probseg}{extension<.nii|.nii.gz|.json>|.nii.gz}", | ||
| "sub-{subject}[/ses-{session}]/{datatype<anat>|anat}/sub-{subject}[_ses-{session}][_hash-{hash}][_desc-{desc}]_{suffix<dseg>}{extension<.tsv|.json>|.tsv}", | ||
| "sub-{subject}[/ses-{session}]/{datatype<anat>|anat}/sub-{subject}[_ses-{session}][_hash-{hash}][_label-{label}][_desc-{desc}]_{suffix<morph>}{extension<.tsv|.json>|.tsv}", | ||
| "sub-{subject}[/ses-{session}]/{datatype<anat>|anat}/sub-{subject}[_ses-{session}][_hash-{hash}][_acq-{acquisition}][_ce-{ceagent}][_rec-{reconstruction}][_run-{run}]_hemi-{hemi<L|R>}[_space-{space}][_cohort-{cohort}][_den-{density}]_desc-{desc}_{suffix<mask>|mask}{extension<.label.gii|.json>|.label.gii}", |
|
Okay, it think it could use 1 more sort according to schema.rules.entities, but before I do that, where should If not then I think it would best belong before Also, efforts are underway with pybids to help avoid ever having to do this manually again. |
|
hash should stay where it is, after session. @mgxd added it to allow for use in a BIDS-adjacent database context, so we should not mess with it. |
Closes issue #1018, this is the easier path to fix this. Only updates the entities touched by petprep. Please feel free to request/push changes to update other file name templates.