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. Statistics for directional data (circular)
  3. Data visualization codes/scripts
  4. Other codes/scripts
  5. 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

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

The Moore’s modified Rayleigh test (MMRT) + plot

project: MagButterly (article – Pakhomov et al., 2025 preprint)
link: modified version of R script from Hui et al, 2026): Download

The Moore’s modified Rayleigh test (MMRT) + plot

link: download

The classical Rayleigh test + plots

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

Terminal version: download

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

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)

Maps of selected geographic regions displaying magnetic field parameters (total intensity and inclination)
(for articles)

link: download

Maps of selected geographic regions displaying magnetic field parameters (total intensity and inclination) alongside species distribution ranges from the BirdLife database.
(for articles)

link: download

Time of sunsets and sunrise

link: download, (author: Alex Pakhomov)

Parameters of the magnetic field for virtual magnetic displacements

project: Magnetic map in migratory animals
link: Download.

Simple Python script to crop your video

project: all vidoe projects
link: Download.

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

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

Simple Python scripts to convert your .h264 raw video file to .mp4 and crop them simultaneously

project: all video projects
link: Download