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
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
- Behavior Classification
- Behavior Classification of multiple videos
- Metrics in mice
- Neural Data example
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.
- De Almeida et al, 2022: https://doi.org/10.3389/fnins.2022.779106
- De Almeida et al, 2021: 10.5281/zenodo.5883277
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:
- Tulio Almeida - GitHub - Google Scholar - Site
- Bruno Spinelli - GitHub - Google Scholar
- Ramon Hypolito - GitHub - Google Scholar
- Maria Carolina Gonzalez - GitHub - Google Scholar
- Abner Rodrigues - GitHub - Google Scholar
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | a6c11a7640e5e5f0012bee584f89d6d1cd21c35e53d161c5727f26166970aaf5 |
|
MD5 | ed1ec7816e6af7175077da32cd1065d1 |
|
BLAKE2b-256 | af1770920eb8a1bf1333ab602f0b3b997640ecf28729dded2795518ecc9f94fa |