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

Convert PS-OCT MAT files to OME-Zarr #19

Merged
merged 55 commits into from
Nov 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
b913cab
WIP: conversion form OCT's mat files to zarr
balbasty Apr 22, 2024
eec0f99
WIP
balbasty Aug 13, 2024
e81aa61
Merge branch 'main' into oct_mat_to_zarr
balbasty Aug 13, 2024
e82c068
WIp
balbasty Aug 13, 2024
1dc6107
WIP
balbasty Aug 13, 2024
3051d39
WIP
balbasty Aug 13, 2024
94ca882
FIX: units
balbasty Aug 13, 2024
d158694
FIX: units
balbasty Aug 13, 2024
db623c5
WIP
balbasty Aug 14, 2024
05a78a8
WIP
balbasty Aug 14, 2024
bd69a09
WIP
balbasty Aug 14, 2024
f8baa3d
WIP
balbasty Aug 14, 2024
4ab71bb
WIP
balbasty Aug 14, 2024
1c31b89
Raise exception when input is not a ndarray
calvinchai Oct 30, 2024
215d1c1
Raise exception when input does not have enough dimension
calvinchai Oct 30, 2024
91f8a57
Fix error message
calvinchai Oct 30, 2024
819d226
Add an argument "key" to use in .mat file data
calvinchai Oct 30, 2024
520be68
Fix the error when output file is not given
calvinchai Oct 30, 2024
241c5e9
Fix the error when output file is not given
calvinchai Oct 30, 2024
7f60997
Add argument key's doc
calvinchai Oct 30, 2024
70b3643
Add capability to handle multiple input files and stack them
calvinchai Oct 30, 2024
b008415
Cleanup
calvinchai Oct 30, 2024
f3a3c09
Fix typo
calvinchai Oct 30, 2024
9910ad6
Raise exception when the key is not found in the input file. Ensure a…
calvinchai Oct 30, 2024
3401c4c
Merge branch 'main' into oct_mat_to_zarr
calvinchai Nov 13, 2024
9bd60d4
Move PSOCT conversion script into modalities
calvinchai Nov 13, 2024
db21517
Update OCT process naming
calvinchai Nov 13, 2024
c9c0606
docs/style
calvinchai Nov 14, 2024
8589c9f
style
calvinchai Nov 14, 2024
aa44899
refactor: generate_pyramid from oct pipeline
calvinchai Nov 14, 2024
91072d0
fix: wrong shape was used for nii header in zarr, no effect
calvinchai Nov 14, 2024
5a72e9e
refactor: nifti-zarr header
calvinchai Nov 14, 2024
4ac9e0a
fix: nifti unit
calvinchai Nov 14, 2024
d7306fe
WIP
calvinchai Nov 15, 2024
2e09d6b
Seperate OCT pipeline to multi_slice.py and single_volume.py
calvinchai Nov 15, 2024
6d98272
Seperate OCT pipeline to multi_slice.py and single_volume.py
calvinchai Nov 15, 2024
eb88d93
feat: generate pyramid without pooling specific axis
calvinchai Nov 15, 2024
fd7e092
refactor: write_ome_metadata
calvinchai Nov 15, 2024
0a58cd9
refactor: move unused function
calvinchai Nov 18, 2024
68e2873
refactor: cleanup
calvinchai Nov 18, 2024
4e0c4c6
docs
calvinchai Nov 18, 2024
ed67556
fix: shape was concated to the list
calvinchai Nov 18, 2024
5d6beed
docs: add annotations and fix lint error
calvinchai Nov 19, 2024
854ee38
fix: add dependency for psoct pipeline
calvinchai Nov 19, 2024
1e1c29f
fix: add dependency for psoct pipeline
calvinchai Nov 19, 2024
b3e8c58
feat: add multislice for psoct
calvinchai Nov 19, 2024
f0a76c4
docs
calvinchai Nov 19, 2024
81cdcc2
feat: lazy load input instead of loading all at the beginning
calvinchai Nov 19, 2024
47d89a3
Update linc_convert/modalities/psoct/__init__.py
calvinchai Nov 19, 2024
bc1a7e9
Update linc_convert/modalities/psoct/cli.py
calvinchai Nov 19, 2024
6d0b360
Merge branch 'main' into oct_mat_to_zarr
balbasty Nov 21, 2024
52f4523
Merge branch 'main' into oct_mat_to_zarr
balbasty Nov 21, 2024
6749f34
MNT(pyproject) make psoct dep optional
balbasty Nov 21, 2024
5011edb
FIX: wrap optional imports in try/catch
balbasty Nov 21, 2024
ad90a04
style fixes by ruff
balbasty Nov 21, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions linc_convert/modalities/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Converters for all imaging modalities."""

__all__ = ["df", "lsm"]
from . import df, lsm
__all__ = ["df", "lsm", "psoct"]
from . import df, lsm, psoct
8 changes: 6 additions & 2 deletions linc_convert/modalities/df/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
"""Dark Field microscopy converters."""

__all__ = ["cli", "multi_slice", "single_slice"]
try:
import glymur as _ # noqa: F401

from . import cli, multi_slice, single_slice
__all__ = ["cli", "multi_slice", "single_slice"]
from . import cli, multi_slice, single_slice
except ImportError:
pass
9 changes: 7 additions & 2 deletions linc_convert/modalities/lsm/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
"""Light Sheet Microscopy converters."""

__all__ = ["cli", "mosaic"]
from . import cli, mosaic
try:
import tifffile as _ # noqa: F401

__all__ = ["cli", "mosaic"]
from . import cli, mosaic
except ImportError:
pass
10 changes: 10 additions & 0 deletions linc_convert/modalities/psoct/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
"""Polarization-sensitive optical coherence tomography converters."""

try:
import h5py as _h5py # noqa: F401
import scipy as _scipy # noqa: F401

__all__ = ["cli", "multi_slice", "single_volume"]
from . import cli, multi_slice, single_volume
except ImportError:
pass
Loading