-
Notifications
You must be signed in to change notification settings - Fork 18
Add support to open NIfTI assets in Neurosift #2700
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
base: master
Are you sure you want to change the base?
Conversation
yarikoptic
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks reasonable , lets do it!
|
if no objections from @dandi/archive-maintainers voiced, I will merge some time not too early next week |
| regex: /\.nii(\.gz)?$/, | ||
| maxsize: Infinity, | ||
| endpoint: | ||
| "https://neurosift.app/dandiset/$dandiset_id$?tab=$asset_path$", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you explain why the path is needed for Neurosift? Typically, the API yields file contents through the asset_url value.
(I bring this up because I'm always wary when we expand this "API", especially since we're always seeming to do so in an ad hoc way.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IIRC it is because neurosift indexes entire dandisets via lindi and refer to them by original path...
@magland is that correct or we could refer also by an asset id?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wasn't able to construct a Neurosift URL with the DANDI asset_url so that the .nii.gz is displayed. Perhaps I am doing something wrong, or in fact Neurosift does just need the path for visualization in NiiVue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yarikoptic neurosift/lindi only indexes public nwb files, and does not use the path.
In this case, it's BIDS... right? So the path is used to refer to the .nii.gz file, correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, in this case, it needs the path, not the asset url.
Example asset in Neurosift: https://neurosift.app/dandiset/001289?tab=derivatives/dwi/sub-MR243/sub-MR243_sample-brain_acq-MulShell_desc-DWImasked.nii.gz
cc @magland @satra