Skip to main content

A simple reader for .iss-tdfilm files

Project description

napari-iss-tdflim-reader

License Apache Software License 2.0 PyPI Python Version tests codecov napari hub npe2 Copier

🔬 A napari plugin to read and write ISS TD-FLIM acquisition files (.iss-tdflim).


✨ Features

📂 Reader

Opens .iss-tdflim files directly in napari.
Each file is a ZIP archive produced by the ISS ALBA FLIM system and contains:

  • dataProps/Core.xml — acquisition metadata (pixel size, TAC range, channel IDs, …)
  • data/PrimaryDecayData.bin — raw photon-count decay histograms

Two image layers are added per channel:

Layer Shape Description
<stem>_intensity_Ch<id> (H, W) Total photon counts (sum along TAC axis)
<stem>_flim_Ch<id> (T, H, W) Full FLIM decay cube — use the time slider to scrub through TAC bins

Spatial calibration (µm/pixel) and TAC time axis (ns/bin) are embedded as napari scale and axis_labels so physical units are always correct.

💾 Writer

Saves any napari Image layer (including those loaded by the reader) to ImageJ-hyperstack TIFF files.

  • ✅ Supports both intensity (H, W) and FLIM decay (T, H, W) layers
  • 🗜️ Lossless zlib compression (requires imagecodecs)
  • 📐 Spatial calibration (XResolution/YResolution tags + unit) preserved for Fiji/ImageJ
  • ⏱️ Time-axis interval (finterval) embedded for FLIM cubes
  • 🏷️ Full acquisition metadata (channel IDs, ADC resolution, TAC range, …) stored as JSON in the TIFF Info field — visible in Fiji via Image › Info… and recoverable in Python via:
    import json, tifffile
    with tifffile.TiffFile('my_file.tif') as tf:
        meta = json.loads(tf.imagej_metadata['Info'])
    
  • 🔄 Non-ImageJ-compatible integer dtypes (e.g. uint32, uint64) are automatically cast to float32

🚀 Installation

Install from PyPI:

pip install napari-iss-tdflim-reader

To install with napari and all optional dependencies (including Qt backend and compression support):

pip install "napari-iss-tdflim-reader[all]"

Install the latest development version directly from GitHub:

pip install git+https://github.com/DBP008/napari-iss-tdflim-reader.git

🛠️ Usage

Reading

Drag and drop an .iss-tdflim file onto the napari window, or open it via File › Open File(s)….
The plugin is selected automatically based on the file extension.

Writing

Select one or more Image layers in the napari layer list, then use File › Save Selected Layer(s)… and choose a .tif / .tiff destination.
When saving multiple layers, each is written to a separate file with a _0, _1, … suffix.


🤝 Contributing

Contributions are very welcome. Tests can be run with tox, please ensure the coverage at least stays the same before you submit a pull request.

📄 License

Distributed under the terms of the Apache Software License 2.0 license.
napari-iss-tdflim-reader is free and open source software.

🐛 Issues

If you encounter any problems, please file an issue along with a detailed description.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

napari_iss_tdflim_reader-0.2.0.tar.gz (27.3 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

napari_iss_tdflim_reader-0.2.0-py3-none-any.whl (15.8 kB view details)

Uploaded Python 3

File details

Details for the file napari_iss_tdflim_reader-0.2.0.tar.gz.

File metadata

  • Download URL: napari_iss_tdflim_reader-0.2.0.tar.gz
  • Upload date:
  • Size: 27.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for napari_iss_tdflim_reader-0.2.0.tar.gz
Algorithm Hash digest
SHA256 7c7b22fa390af24cb981ae0028e2822b23a206fe27e0b9f6dee64a738e3f1f04
MD5 2054074c5c75609e50aa19d8bf1e7eb8
BLAKE2b-256 84080fb951c6e364f6d0fa614e50d2a98d929a0e194e2aebeeca7d9562eb1584

See more details on using hashes here.

Provenance

The following attestation bundles were made for napari_iss_tdflim_reader-0.2.0.tar.gz:

Publisher: test_and_deploy.yml on DBP008/napari-iss-tdflim-reader

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file napari_iss_tdflim_reader-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for napari_iss_tdflim_reader-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 01574f8a30202c643e2a132ce6c87a45a4eee00d8fe9cde9c731220e7f14eabe
MD5 4ac3db3f439badeeaedebf3b64dd8781
BLAKE2b-256 5b6fddca386e689d4e05cd179b9532e78a503b540b570606a366aeab76f30d42

See more details on using hashes here.

Provenance

The following attestation bundles were made for napari_iss_tdflim_reader-0.2.0-py3-none-any.whl:

Publisher: test_and_deploy.yml on DBP008/napari-iss-tdflim-reader

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page