OpenSource: Statistics and Data analysis

R, Python and other codes/scripts for data analysis used in our articles
* We are not professional data scientists or programmers, so if you find any errors or issues in our scripts, we would greatly appreciate it if you let us know 😊
  1. Data analysis codes/scripts
  2. Data visualization codes/scripts
  3. Other codes/scripts
  4. Video preparation for further analysis

Estimation of II-type error probability
(in circular statistics)

1) project: MagBird (article – Pakhomov et al. 2022)
link: GitHub (author: Fyodor Cellarius).
2) project: MagBird (article – Utvenko et al., 2025)
link: GitHub (author: Fyodor Cellarius)

Video analysis of flight activity and orientation of red admiral in the Mouritsen-Frost flight simulator

1) using custom-written neural networks (Caterpillar)
project: MagButterfly (article – Pakhomov et al., 2023 preprint)
link: GitHub (author: Fyodor Cellarius)


2) using DeepLabCut data
project: MagButterfly (article – Pakhomov et al., 2025 preprint)
link: download (author: Fyodor Cellarius)


3) analysis of heading on each frame
project: MagButterfly
link: download

Kruskal-Wallis test (+plot)

project: MagButterly (article – Pakhomov et al., 2025 preprint)
link: download

Fisher test (+plot)

project: MagButterly (article – Pakhomov et al., 2025 preprint)
link: download

Bootstrap analysis for mean vector length + plot
(in circular statistics)

project: MagBirds (article – Zolotareve et al., 2021)
link: download (author: Alex Pakhomov).

The non-parametric Moore’s modified Rayleigh test (MMRT) + plots
(in circular statistics)

project: MagButterly (article – Pakhomov et al., 2025 preprint)
link: download (modified version of R script from Massy et al, 2021).

updated version (2025): Download

The classical Rayleigh test + plots
(in circular statistics)

project: MagButterly, MagBirds (article – Pakhomov et al., 2025 preprint)
link: download (author: Fyodor Cellarius).

Estimation of the directionality of birds in Emlen funnels based on the number of scratches

project: our birds articles
link: GitHub (author N. Zelenova)

Power analysis for Mardia-Watson-Wheeler test, n of animals in experimental group
(in circular statistics)

link: download (author: Dmitry Kishkinev).

Map of specific region on Earth (bw and colour)
(for articles)

link: download, (author: Alex Pakhomov)

Map of Europe
(for articles)

link: download, (author: Alex Pakhomov)

Spectrum of light

project: MagButterly, MagBirds (article – Pakhomov et al., 2025 preprint)
link: download, (author: Alex Pakhomov)

Time of sunsets and sunrise

link: download, (author: Alex Pakhomov)

Simple Python script to crop your video

project: all
link: Download.

Simple Python scripts to convert your .h264 raw video file to .mp4

project: MagButterly (article – Pakhomov et al., 2025 preprint)
link: Download