Skip to main content

A napari plugin for measuring ciliary beat frequency from high-speed microscopy videos.

Project description

napari-cilia-assistant

napari-cilia-assistant is a napari plugin for measuring ciliary beat frequency (CBF) from high-speed AVI microscopy videos.

Cilia Assistant UI

Watch the demo video

Install

Install conda-forge first: https://conda-forge.org/download/

Then open a terminal and run:

conda create -n cilia-assistant python=3.11 -y
conda activate cilia-assistant
conda install -c conda-forge napari pyqt git -y
git clone https://github.com/wulinteousa2-hash/napari-cilia-assistant.git
cd napari-cilia-assistant
pip install -e .
napari

In napari, open Plugins > Cilia Assistant.

What It Does

  • Opens one AVI video through the napari widget.
  • Reads video metadata such as FPS, frame count, size, and duration.
  • Loads AVI data as a grayscale T, Y, X image stack.
  • Lets the user draw/edit a rectangular ROI over active cilia.
  • Measures ROI mean-intensity change over time.
  • Estimates CBF using FFT and peak-interval checks.
  • Creates a kymograph layer from the selected ROI.
  • Exports the last ROI signal and FFT spectrum as CSV files.
  • Copies or saves the current measurement graph.

Basic Workflow

  1. Open napari.
  2. Open Plugins > Cilia Assistant.
  3. Click Open AVI.
  4. Confirm the FPS. Correct it manually if the AVI metadata are wrong.
  5. Click Create / Edit ROI Rectangle.
  6. Move/resize the ROI over visibly beating cilia.
  7. Set the expected CBF search range, for example 3-25 Hz.
  8. Click Measure CBF from Selected ROI.
  9. Review the trace, FFT peak, peak-interval result, and kymograph.
  10. Export the CSV files if the result is usable.

Output

  • FFT CBF: dominant frequency in the selected search range.
  • Peak-interval CBF: independent check based on repeated peaks in the ROI signal.
  • Kymograph: visual audit of periodic motion in the ROI.
  • CSV export: raw ROI time-intensity signal and FFT power spectrum.

Good Measurement Practice

  • Use videos with known FPS.
  • Keep temperature, medium, and timing consistent across samples.
  • Place the ROI on active cilia, not static tissue, debris, or whole-frame motion.
  • Use multiple ROIs/videos and biological replicates for group comparisons.
  • Treat whole-frame motion frequency as exploratory only.

Limitations

This plugin measures beat frequency, not full ciliary waveform or clinical diagnostic beat pattern. A sample can have a normal CBF but abnormal waveform or poor flow generation. Always review the raw video and kymograph before interpreting the number.

References

  1. Chilvers MA, O'Callaghan C. Analysis of ciliary beat pattern and beat frequency using digital high speed imaging: comparison with the photomultiplier and photodiode methods. Thorax. 2000;55:314-317. doi:10.1136/thorax.55.4.314
  2. Jackson CL, Bottier M. Methods for the assessment of human airway ciliary function. European Respiratory Journal. 2022;60:2102300. doi:10.1183/13993003.02300-2021
  3. Francis R. A Simple Method for Imaging and Quantifying Respiratory Cilia Motility in Mouse Models. Methods and Protocols. 2025;8:113. doi:10.3390/mps8050113

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_cilia_assistant-1.0.3.tar.gz (20.5 kB view details)

Uploaded Source

Built Distribution

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

napari_cilia_assistant-1.0.3-py3-none-any.whl (20.1 kB view details)

Uploaded Python 3

File details

Details for the file napari_cilia_assistant-1.0.3.tar.gz.

File metadata

  • Download URL: napari_cilia_assistant-1.0.3.tar.gz
  • Upload date:
  • Size: 20.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for napari_cilia_assistant-1.0.3.tar.gz
Algorithm Hash digest
SHA256 7944fdacafbda0505c0226a4d15f873c853940fa5876bdffb2c15cc0d9a8f568
MD5 5a8afe38be79f020a5a1c75ed9c48af7
BLAKE2b-256 11ce6417aa25a8dcf641069ddeebf77ec9a2bdb669aa80cdcf00b49c84a90c17

See more details on using hashes here.

File details

Details for the file napari_cilia_assistant-1.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for napari_cilia_assistant-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 287e9b4cd90b81944f8503497c51b1b534c8324c86a2a8b125058cad9cd07a07
MD5 8e1b70a212a2c574958bdaefc92310ec
BLAKE2b-256 2113db4c3435cb39a2b6a9dbb70bcfa3d80b1f34ea7f9f0f07cd967fc7f80ff1

See more details on using hashes here.

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