Skip to main content

PyRat is a user friendly library in python to analyze data from the DeepLabCut. Developed to help researchers unfamiliar with programming can perform animal behavior analysis more simpler.

Project description

downloads version commit Open Source? Yes! DOI Stars

PyRat - Python in Rodent Analysis and Tracking


PyRat is a user friendly library in python to analyze data from the DeepLabCut. Developed to help researchers unfamiliar with programming can perform animal behavior analysis more simpler.

Installation


The latest stable release is available on PyPi, and you can install it by saying

pip install pyratlib

Anaconda users can install using conda-forge:

conda install -c conda-forge pyratlib

To build PyRat from source, say python setup.py build. Then, to install PyRat, say python setup.py install. If all went well, you should be able to execute the demo scripts under examples/ (OS X users should follow the installation guide given below).

Alternatively, you can download or clone the repository and use pip to handle dependencies:

unzip pyratlib.zip
pip install -e pyratlib

or

git clone https://github.com/pyratlib/pyrat.git
pip install -e pyratlib

By calling pip list you should see pyrat now as an installed package:

pyrat (0.x.x, /path/to/pyratlib)

Data


The data is available on Zenodo

Examples


  • Basic Usage Open In Colab
  • Behavior Classification Open In Colab
  • Behavior Classification of multiple videos Open In Colab
  • Metrics in mice Open In Colab
  • Neural Data example Open In Colab

References:


If you use our code we kindly as that you please cite De Almeida et al, 2022 and, if you use the dataset please also cite De Almeida et al, 2021.

Please check out the following references for more details:

@article{deAlmeida2022,
  title        = {PyRAT: An open source-python library for fast and robust animal behavior analysis and neural data synchronization},
  author       = {De Almeida, Tulio Fernandes and 
                  Spinelli, Bruno Guedes and 
                  Hypolito Lima, Ram{\'o}n and 
                  Gonzalez, Maria Carolina and 
                  Rodrigues, Abner Cardoso},
  journal      = {Frontiers in Neuroscience},
  pages        = {505},
  publisher    = {Frontiers}
}

@dataset{deAlmeida2021,
  title        = {PyRAT-data-example},
  author       = {Almeida, Túlio and
                  Spinelli, Bruno and
                  Gonzalez, Maria Carolina and
                  Lima, Ramón and
                  Rodrigues, Abner},
  month        = sep,
  year         = 2021,
  publisher    = {Zenodo},
  version      = {1.0.0},
  doi          = {10.5281/zenodo.5883277},
  url          = {https://doi.org/10.5281/zenodo.5883277}
}

Development Team:


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

pyratlib-0.7.7.tar.gz (22.7 kB view details)

Uploaded Source

File details

Details for the file pyratlib-0.7.7.tar.gz.

File metadata

  • Download URL: pyratlib-0.7.7.tar.gz
  • Upload date:
  • Size: 22.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for pyratlib-0.7.7.tar.gz
Algorithm Hash digest
SHA256 a6c11a7640e5e5f0012bee584f89d6d1cd21c35e53d161c5727f26166970aaf5
MD5 ed1ec7816e6af7175077da32cd1065d1
BLAKE2b-256 af1770920eb8a1bf1333ab602f0b3b997640ecf28729dded2795518ecc9f94fa

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