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.1.tar.gz (20.1 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.1-py3-none-any.whl (19.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: napari_cilia_assistant-1.0.1.tar.gz
  • Upload date:
  • Size: 20.1 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.1.tar.gz
Algorithm Hash digest
SHA256 ca3c332c1a458487521b9c284e0e6c036d742499875e4e822da0dc05a4695952
MD5 0cd759dc1530a550ac259264c1d6eb5c
BLAKE2b-256 384f6f48bdf9224199080543ea87b56be5159868d4dfd0bc86395921546f3108

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for napari_cilia_assistant-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fee424f06d219f0ee0fd40ab5fb8102196958aad5d80244e407e5e46ab593933
MD5 e83f6de9aad73d45fec367637a4d6664
BLAKE2b-256 f8a8df9c6444bd2361a67578005e50c3009ede10ed230589d68f014c0010271b

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