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

Allow for .nwb standard/file format to be used for "micr"

Open yarikoptic opened this issue 2 years ago • 9 comments

See https://pynwb.readthedocs.io/en/stable/tutorials/domain/ophys.html for support of various microscopy modalities within NWB. As NWB is already supported for other modalities, there is some support for microscopy in NWB in various tools, and as there are datasets with .nwb -- it makes sense to allow for .nwb to be used for microscopy data as well where appropriate.

yarikoptic avatar Oct 18 '23 15:10 yarikoptic

this may be more of a question of physiology versus microscopy. in bids micr is focused on anatomy-based info not physiology. and i don't think nwb quite fits into that space. ophys doesn't fit into micr as far as i can tell. in bids ophys would go into func.

satra avatar Oct 18 '23 18:10 satra

or phys if that was to become a new modality.

satra avatar Oct 18 '23 18:10 satra

re "functional vs anatomical"

related discussions to tease apart those two notions of modality (MRI, micr, ...) and data type (anat vs func):

  • https://github.com/INCF/neuroscience-data-structure/issues/18
  • https://github.com/bids-standard/bids-2-devel/issues/55

Note that nothing in https://bids-specificabtrcitetcjtion.readthedocs.io/en/stable/04-modality-specific-files/10-microscopy.html explicitly restricts to anatomy (in effect - allows for extra), although indeed lacks any annotation for temporal component and events (requires "extending"). Overall the fact that we have anat/ and func/ ATM is an artifact of early days orientation toward MRI, and peculiarity that some modalities are purely functional (e.g. EEG, MEG) thus not even raising the question. But then if we look at PET -- we can have a single volume PET, or "functional PET" for which _events.tsv is then required.

So I could argue about similarity to this case here

re phys vs micr

ATM microscopy is for the modality, and it already supports 2PE which I guess also falls into "phys" domain. As all other "modality/" folders are really instrumentation modality, I would argue that we better not place microscopy data under electrophysiology folder.

yarikoptic avatar Oct 18 '23 20:10 yarikoptic

has there been a request by a user / a particular group of users to make this happen?

If not, I would wait with introducing such a change, and remain "use case driven".

Especially when an argument of being "consistent" isn't entirely clear (as I get the impression, reading the discussion above)

sappelhoff avatar Oct 24 '23 19:10 sappelhoff

has there been a request by a user / a particular group of users to make this happen?

it was brought up as a side-topic in discussion of BEP032 (@bep032) .

remain "use case driven".

LGTM. @bendichter, are you aware of any DANDI set with nwb microscopy data which we would run to while approaching conversion of DANDI dandisets to BIDS?

yarikoptic avatar Oct 25 '23 20:10 yarikoptic

There is an ongoing effort of https://github.com/con/nwb2bids . Not yet sure how we would deal with multimodal nwb files like in https://dandiarchive.org/dandiset/000037/0.240209.1623/files?location=sub-408021&page=1 but I remain of opinion that NWB is a viable and used format for micr... I will rebase and take it out of the draft.

yarikoptic avatar Apr 13 '24 15:04 yarikoptic

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 87.93%. Comparing base (943c20e) to head (97bd21c).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1632   +/-   ##
=======================================
  Coverage   87.93%   87.93%           
=======================================
  Files          16       16           
  Lines        1351     1351           
=======================================
  Hits         1188     1188           
  Misses        163      163           

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

codecov[bot] avatar Apr 13 '24 15:04 codecov[bot]

What benefits does micr/*.nwb have over micr/*.ome.zarr? There is a cost to tool writers to proliferating formats within a modality, hence why we do not support MINC.

That said, I know nothing of this space, and IMO this needs input from microscopy contributors. @jcohenadad do you have thoughts here?

effigies avatar May 23 '24 14:05 effigies