AUTHOR=De Almeida Tulio Fernandes , Spinelli Bruno Guedes , Hypolito Lima Ramón , Gonzalez Maria Carolina , Rodrigues Abner Cardoso TITLE=PyRAT: An Open-Source Python Library for Animal Behavior Analysis JOURNAL=Frontiers in Neuroscience VOLUME=16 YEAR=2022 URL=https://www.frontiersin.org/journals/neuroscience/articles/10.3389/fnins.2022.779106 DOI=10.3389/fnins.2022.779106 ISSN=1662-453X ABSTRACT=

Here we developed an open-source Python-based library called Python rodent Analysis and Tracking (PyRAT). Our library analyzes tracking data to classify distinct behaviors, estimate traveled distance, speed and area occupancy. To classify and cluster behaviors, we used two unsupervised algorithms: hierarchical agglomerative clustering and t-distributed stochastic neighbor embedding (t-SNE). Finally, we built algorithms that associate the detected behaviors with synchronized neural data and facilitate the visualization of this association in the pixel space. PyRAT is fully available on GitHub: https://github.com/pyratlib/pyrat.