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

[FIX] use bids uri for qmri derivatives #339

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

Remi-Gau
Copy link
Contributor

fixes #312

@sappelhoff does that make sense as a way to refer to source data in the derivatives using bids uri?

Copy link
Member

@sappelhoff sappelhoff left a comment

Choose a reason for hiding this comment

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

Co-authored-by: Stefan Appelhoff <stefan.appelhoff@mailbox.org>
@effigies
Copy link
Contributor

effigies commented Nov 8, 2022

I could swear we had a conversation where we dropped the file:// for relative paths. That's not a universal interpretation of file:///

@effigies
Copy link
Contributor

effigies commented Nov 8, 2022

Oh, I see. That predates the BIDS URI discussion altogether. I would still use plain relative paths. Note in Examples we use relative paths (no file://), absolute paths (with file:///) and external URIs.

@sappelhoff
Copy link
Member

mh then we have two ways of specifying relative paths in the spec, should we clarify that?

@Remi-Gau
Copy link
Contributor Author

Remi-Gau commented Nov 8, 2022

mh then we have two ways of specifying relative paths in the spec, should we clarify that?

yes please. 😝

Copy link
Member

@sappelhoff sappelhoff left a comment

Choose a reason for hiding this comment

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

I think we are safe dropping the file:// here, so my earlier recommendation was wrong (sorry).

I have opened a discussion here:

qmri_mpm/derivatives/hmri/dataset_description.json Outdated Show resolved Hide resolved
qmri_mtsat/derivatives/qMRLab/dataset_description.json Outdated Show resolved Hide resolved
qmri_vfa/derivatives/qMRLab/dataset_description.json Outdated Show resolved Hide resolved
Co-authored-by: Stefan Appelhoff <stefan.appelhoff@mailbox.org>
Copy link
Member

@sappelhoff sappelhoff left a comment

Choose a reason for hiding this comment

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

Changes here look good to me @Remi-Gau except for that one comment above. Once that is resolved, I think we can merge and mirror the change to the upstream (real) data

"sub-01/fmap/sub-01_flip-01_TB1DAM.nii.gz",
"sub-01/fmap/sub-01_flip-02_TB1DAM.nii.gz"
"bids:source:sub-01/sub-01/fmap/sub-01_flip-01_TB1DAM.nii.gz",
"bids:source:sub-01/sub-01/fmap/sub-01_flip-02_TB1DAM.nii.gz"
Copy link
Member

Choose a reason for hiding this comment

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

I think RawSources does not permit BIDS URIs, only dataset relative links. Also, that field is deprecated in favor of Sources (which does permit BIDS URIs)

https://bids-specification.readthedocs.io/en/latest/glossary.html#rawsources-metadata

I think we should either just use relative links here, OR turn the RawSources here into Sources

@sappelhoff sappelhoff added this to the 1.9.0 milestone Mar 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

MPM fmap in derivatives are intended for data in the raw dataset
3 participants