Skip to main content

NWB extensions for storing (larval) zebrafish expreiment related data

Project description

ndx-zebrafish Extension for NWB

Provides standard container formats for tracking zebrafish behavior. For now tail and position tracking are specified, with

Installation

python -m pip install ndx-zebrafish

Usage

Example storage of freely-swimming fish tracking data:

tail_direction = pynwb.behavior.SpatialSeries(
    "fish_direction",
    {},
    timestamps={},
)
tail_shape = pynwb.behavior.SpatialSeries(
    "tail_shape",
    {},
    timestamps={},
    unit="radians",
)
position = pynwb.behavior.SpatialSeries(
    "fish_position",
    {}
    timestamps={},
    unit="mm",
)

behavior_storage = ZebrafishBehavior(
    name=f"fish_{i_fish}_behavior",
    fish_id=i_fish,
    position=position,
    orientation=tail_direction,
    tail_shape=tail_shape,
)

This extension was created using ndx-template.

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

ndx-zebrafish-0.1.0.tar.gz (12.6 kB view hashes)

Uploaded Source

Built Distribution

ndx_zebrafish-0.1.0-py2.py3-none-any.whl (4.2 kB view hashes)

Uploaded Python 2 Python 3

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