Skip to content

Commit

Permalink
add docs from ThorTiffImagingInterface
Browse files Browse the repository at this point in the history
  • Loading branch information
bendichter committed May 9, 2024
1 parent 6f7046b commit 4182606
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/api/interfaces.ophys.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ ScanImage Imaging
-----------------
.. automodule:: neuroconv.datainterfaces.ophys.scanimage.scanimageimaginginterfaces

ThorLabs Imaging
----------------
.. automodule:: neuroconv.datainterfaces.ophys.thor.thorimaginginterface

Tiff Imaging
------------
.. automodule:: neuroconv.datainterfaces.ophys.tiff.tiffdatainterface
Expand Down
29 changes: 29 additions & 0 deletions docs/conversion_examples_gallery/imaging/thor.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
ThorLabs data conversion
------------------------

Install NeuroConv with the additional dependencies necessary for reading ThorLabs imaging data.

.. code-block:: bash
pip install neuroconv[thor]
Convert single plane single file imaging data
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Convert ScanImage imaging data to NWB using
:py:class:`~neuroconv.datainterfaces.ophys.thor.thorimaginginterface`.

.. code-block:: python
>>> from datetime import datetime
>>> from dateutil import tz
>>> from pathlib import Path
>>> from neuroconv.datainterfaces import ThorTiffImagingInterface
>>>
>>> file_path = OPHYS_DATA_PATH / "imaging_datasets" / "ThorLabs" / "data"
>>> interface = ThorTiffImagingInterface(folder_path=folder_path)
>>>
>>> metadata = interface.get_metadata()
>>>
>>> # Choose a path for saving the nwb file and run the conversion
>>> interface.run_conversion(nwbfile_path=f"{path_to_save_nwbfile}", metadata=metadata)
2 changes: 2 additions & 0 deletions src/neuroconv/datainterfaces/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
)
from .ophys.sima.simadatainterface import SimaSegmentationInterface
from .ophys.suite2p.suite2pdatainterface import Suite2pSegmentationInterface
from .ophys.thor.thorimaginginterface import ThorTiffImagingInterface
from .ophys.tiff.tiffdatainterface import TiffImagingInterface

# Text
Expand Down Expand Up @@ -138,6 +139,7 @@
ExtractSegmentationInterface,
SimaSegmentationInterface,
SbxImagingInterface,
ThorTiffImagingInterface,
TiffImagingInterface,
Hdf5ImagingInterface,
ScanImageImagingInterface,
Expand Down

0 comments on commit 4182606

Please sign in to comment.