Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ASL support #839

Merged
merged 4 commits into from
Nov 30, 2023
Merged

Add ASL support #839

merged 4 commits into from
Nov 30, 2023

Conversation

tsalo
Copy link
Contributor

@tsalo tsalo commented Nov 29, 2023

Closes #838.

Changes proposed:

  • Add "asl" to list of non-standard spaces.
  • Add "asl" field to data collection function (collect_data) and class (BIDSDataGrabber).
  • Add ASL-related filename patterns to the BIDS config file (nipreps.json).

@@ -83,11 +83,11 @@
},
{
"name": "fmap",
"pattern": "(phasediff|magnitude[1-2]|phase[1-2]|fieldmap|epi)\\.nii"
"pattern": "(phasediff|magnitude[1-2]|phase[1-2]|fieldmap|epi|m0scan)\\.nii"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This creates a weird pseudo-entity "fmap": "m0scan", which duplicates the suffix. This quirk is unlikely to be replicated in other APIs, and I think we're better off eliminating uses of it than adding use cases to it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I'm not sure I understand 100%. Are you saying that you'd prefer to recommend to dataset curators that they place reverse phase-encoded M0 scans in the perf folder instead of the fmap folder, or that I should support this on ASLPrep's side rather than in niworkflows?

Copy link
Member

@effigies effigies Nov 29, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, just that all this will do is populate an fmap entity in the BIDSLayout database. You already can retrieve the file with layout.get(suffix="m0scan", datatype="fmap").

Also, we should make it clearer in the spec that m0scan is a valid suffix for fieldmap files. It's barely squeezed in there.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, thank you. That makes more sense. I can remove that then.

Copy link

codecov bot commented Nov 29, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (a5a85a3) 63.36% compared to head (6b4fe95) 63.36%.

❗ Current head 6b4fe95 differs from pull request most recent head 1a77a74. Consider uploading reports for the commit 1a77a74 to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #839   +/-   ##
=======================================
  Coverage   63.36%   63.36%           
=======================================
  Files          53       53           
  Lines        6237     6238    +1     
  Branches      907      907           
=======================================
+ Hits         3952     3953    +1     
  Misses       2099     2099           
  Partials      186      186           
Flag Coverage Δ
reportlettests ∅ <ø> (∅)
unittests ∅ <ø> (∅)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@effigies effigies merged commit 16609f2 into nipreps:master Nov 30, 2023
23 of 24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add ASL support
2 participants