Skip to main content

Simulate zebrafish swim from tail angle tracking data

Project description

Zebrafish Tail Animator

Pylint PythonPackage PythonPublish PyPI version

Python toolbox to transform zebrafish tracking data to tail animations

Description

zf_animator is a Python package used to create visualisation of how swimming data looks from high-speed tracking data. The typical data used should be the tail angle along segments of the tail. The package will convert these tail angles to x- y- coordinates, and interpolate many more points along the range of tracked tail segments. These sets of coordinates will then transform slices of the zebrafish image, producing a stack of .png files that can be rendered into an mp4 file.

Installation

To convert the .png files to an .mp4 animation requires ffmpeg to be installed on the running computer. This can be install in Ubuntu in the terminal:

sudo apt install ffmpeg

Or with OS X can be installed:

brew install ffmpeg

Check it is installed by running which ffmpeg in the terminal. More details can be found here.

Dependencies

Default zebrafish image

Ref the source of the image

Example

Key Functions

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

fish_simulator_test-0.0.2.tar.gz (9.4 kB view details)

Uploaded Source

Built Distribution

fish_simulator_test-0.0.2-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

Details for the file fish_simulator_test-0.0.2.tar.gz.

File metadata

  • Download URL: fish_simulator_test-0.0.2.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for fish_simulator_test-0.0.2.tar.gz
Algorithm Hash digest
SHA256 46ef9800a3064aa7068ab5ea9e0f68e3b02ae53454a54bd2df94e397bc09cd19
MD5 b191b5f6852d342f41224a7ed11384f0
BLAKE2b-256 970729d47f7a9b8f8d893e9c5f2cb4afd91d85308c25e25a06f6fbf576a70990

See more details on using hashes here.

File details

Details for the file fish_simulator_test-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for fish_simulator_test-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 87fd0d30509d5ca98aff68552edf1f31ab78541d8ced4443a0bfa7820f98cfa6
MD5 bd0175b145a03f4d03197e22a75c6b9e
BLAKE2b-256 0f77aeb120fb81fdbe9502eb4e79b668ccc5fb0a5f5a3986099c1855d6408ea5

See more details on using hashes here.

Supported by

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