Skip to main content

Analysis of Periodic contractions

Project description

PeCoWaCo

This python package is to be used in conjugation with the Fiji plugin WizardofOz(WoZ) to analyze periodic contractions of cortical waves, which travel around blastomeres in an oscillatory fashion.

Download Fiji from Fiji, After download open Fiji and to install the Fiji plugin WizardofOz check the update cite MTrack.

Click Help ▶ Update....

Click the Manage update sites button.

Select the MTrack update site in the list.

Click Close and then click Apply changes.

Restart Fiji.

Launch the plugin with Plugins ▶ WizardofOz ▶ Local Deformation & Intensity Tracking.

In the plugin the Raw image (shown below) and its segmentation image are the inputs. In the plugin we fit circles for computing the local curvature information using the start, center and end point of a 10 μm strip on the cell surface to fit a circle. The strip is then moved by 1 pixel along the segmented cell and a new circle is fitted. This process is repeated till all the points of the cell are covered. The radius of curvature of the 10 μm strip boundaries are averaged. Kymograph of local curvature values around the perimeter over time is produced by plotting the perimeter of the strip over time. Curvature kymographs obtained from local curvature tracking are then exported into this python package (pecowaco) for amplitude, frequency and velocity of wave analysis.

Notebook Description

Installation

This package can be installed with:

pip install --user PeCoWaCo

If you are building this from the source, clone the repository and install via

git clone https://github.com/MechaBlasto/PeCoWaCo/

cd PeCoWaCo

pip install --user -e .

# or, to install in editable mode AND grab all of the developer tools
# (this is required if you want to contribute code back to NapaTrackMater)
pip install --user -r requirements.txt

Pipenv install

Pipenv allows you to install dependencies in a virtual environment.

# install pipenv if you don't already have it installed
pip install --user pipenv

# clone the repository and sync the dependencies
git clone https://github.com/MechaBlasto/PeCoWaCo/
cd PeCoWaCo
pipenv sync

# make the current package available
pipenv run python setup.py develop

# you can run the example notebooks by starting the jupyter notebook inside the virtual env
pipenv run jupyter notebook

Access the example folder and run the cells.

Usage

The WizardofOz plugin can be run using a single channel image or a dual channel image. The segmentation image for both is the same. In the single channel mode curvature, distance and intensity of the membrane is computed, in dual channel mode the intensity along the membrane of the second channel is computed as well. We provide two notebooks for analysis of these two modes.

Example

PIV analysis is used to obtain the x- and y-velocities of individual vectors that are then used for Fourier analysis. A Fourier transform of the vector velocities over time is performed using Matlab’s fast Fourier transform function. The resulting Fourier transforms are squared to obtain individual power spectra. Squared Fourier transforms in the x and y directions of all vectors are averaged for individual embryos resulting in mean power spectra of individual embryos.

Notebook 1) In this notebook, the curvature, distance and intensity kymograph output coming from a single channel of WoZ plugin serves as an input. Users can choose the start and the end points along the x and y axis of kymograph to exclude certain regions from further computation. We calculate the root mean square, space resolved FFT along the time axis and a space averaged FFT plot with interactive bokeh plots. All the information is saved as csv files.

Notebook 2) In this notebook, the curvature, distance and intensity kymograph output coming from dual channel mode of WoZ plugin serves as an input. We compute the same quantities as in notebook 1 but in addition now with the intnesity kymograph analysis of the second channel included as well.

Requirements

  • Python 3.7 and above.

License

Under MIT license. See LICENSE.

Authors

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

pecowaco-1.0.1.tar.gz (21.6 kB view details)

Uploaded Source

Built Distribution

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

pecowaco-1.0.1-py3-none-any.whl (20.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pecowaco-1.0.1.tar.gz
  • Upload date:
  • Size: 21.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.5

File hashes

Hashes for pecowaco-1.0.1.tar.gz
Algorithm Hash digest
SHA256 81fcb8ddbba9e920786f2d466a4a382b839e7d51890aaa1a097aecf67991c275
MD5 9dde8b8bdb6a7b3910877b3103dc7212
BLAKE2b-256 c0e4623936bf95a71794d37293805e6f87a82a7fbc1ff01ecb1e2963183dd627

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pecowaco-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 20.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.5

File hashes

Hashes for pecowaco-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 336bd9493af24d5b6a6157e3c8af3af7e6bc32283f92955151db6035ef3af238
MD5 e93aabceb434cab92a82a1613aeaf3f0
BLAKE2b-256 a16e27ddd883c4cbd89675acb44bec892c5950c227e93cdcac02699788a8d03b

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