bids-specification icon indicating copy to clipboard operation
bids-specification copied to clipboard

[ENH] Allow direction entity in MESE files

Open tsalo opened this issue 7 months ago • 12 comments

Closes none.

Changes proposed:

  • Split MESE and MEGRE suffix entity sets.
  • Add optional direction entity to the raw MESE anatomical suffix.

tsalo avatar Apr 14 '25 13:04 tsalo

Codecov Report

:white_check_mark: All modified and coverable lines are covered by tests. :white_check_mark: Project coverage is 82.71%. Comparing base (04faf74) to head (3675f99). :warning: Report is 68 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2100   +/-   ##
=======================================
  Coverage   82.71%   82.71%           
=======================================
  Files          20       20           
  Lines        1608     1608           
=======================================
  Hits         1330     1330           
  Misses        278      278           

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

:rocket: New features to boost your workflow:
  • :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • :package: JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

codecov[bot] avatar Apr 14 '25 13:04 codecov[bot]

What's the use case?

effigies avatar Apr 14 '25 13:04 effigies

I have AP and PA MESE scans in a current study, but I don't know why. I don't know if there's a use-case as much as it is something researchers can control, so it seems like it should be reflected in the entity set.

tsalo avatar Apr 14 '25 13:04 tsalo

Apparently we plan to use the AP and PA MESE scans for distortion correction.

tsalo avatar Apr 14 '25 14:04 tsalo

In anatomical images, I think this would be an acceptable use of acq-, but I'd be okay with this change in general.

Apparently we plan to use the AP and PA MESE scans for distortion correction.

Please make sure there's nothing in the B0FieldIdentifier/B0FieldSources interface that disallows it from setting identifiers on these, so distortion can be estimated.

oesteban avatar Apr 14 '25 16:04 oesteban

Okay, so you have a use case for AP/PA MESE scans, but what about all the other groups? Do you get AP/PA T1w scans, or is this more in-passing to avoid doing this piecemeal, if other use cases are found?

At least for parametric volumes, I would assume that directions would be inapplicable by the time the final volumes are generated, similar to how echo, flip and part no longer apply.

I am hesitant to add more to the nonparametric group without a specific use case.

effigies avatar Apr 14 '25 18:04 effigies

Okay, so you have a use case for AP/PA MESE scans, but what about all the other groups?

If the only use case is fieldmap estimation, then acq- plus ensuring B0FieldIdentifier is explicitly allowed in their metadata should be sufficient to encode this.

oesteban avatar Apr 15 '25 06:04 oesteban

If there is operator ability to specify direction in anatomicals, we should allow for this entity. IMHO, overall, when there is appropriate targeted entity, we better allow for it instead of inspiring to absorb into some more generic one (like _acq).

yarikoptic avatar Apr 18 '25 17:04 yarikoptic

I agree that we shouldn't overload acq, and am happy to approve this for MESE. My hesitation is over a lack of use-case for other suffixes.

effigies avatar Apr 25 '25 12:04 effigies

Okay, I've limited my change to the MESE and MEGRE suffixes. I don't have any multi-PED MEGRE data, but I figured it was easier to just add direction to that one entity set than to split the rule.

tsalo avatar Apr 25 '25 13:04 tsalo

I would split it. I'm sure that the only reason we kept them together was because they had the same entities at the time, not because of some fundamental sameness.

I could be exposing my ignorance to the world, but my understanding is that gradient echo sequences just don't have the same susceptibility distortions that would justify paired direction acquisitions.

effigies avatar Apr 25 '25 13:04 effigies

@oesteban @yarikoptic Are you okay with this more limited proposal?

effigies avatar Jun 17 '25 20:06 effigies

I'm going to take silence for consent here. If you disagree, please open a reversion PR and cite the lack of a second approving review.

effigies avatar Aug 22 '25 16:08 effigies