Skip to content
Animal Network Toolkit Software R package source code
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
R removing met_diversity Jun 14, 2019
data Several minor modification to resolve some issues May 13, 2019
man Documentation modification Mar 10, 2019
vignettes modification to pass R check Dec 21, 2018
.gitignore more files to ignore Mar 16, 2019
.travis.yml deleting .so files on .Rbuildignore Nov 17, 2018
ANTs.Rproj vignette 1 Nov 14, 2018
NAMESPACE New permutation approach with links weigths permutations Nov 17, 2018
desktop.ini adding function tests with library testthat Nov 15, 2018

alt text Animal Network Toolkit Software (ANTs)

Animal Network Toolkit Software (ANTs) is a free open R package for analysing animal networks.

ANTs is a multi-collaborative project and is meant to continuously evolve. If you wish to contribute by providing suggestions or additional codes please contact us at:

If you need help or if you want to report bugs, please contact us at:

For more information, visit our websites:

Authors: Sebastian Sosa, Ivan Puga-Gonzalez, Hu Feng He, Xiaohua Xie, Cédric Sueur


How animals interact and develop social relationships in face of sociodemographic and ecological pressures is of great interest. New methodologies, in particular Social Network Analysis (SNA), allow us to elucidate these types of questions. However, the different methodologies developed to that end and the speed at which they emerge make their use difficult. Moreover, the lack of communication between the different software developed to provide an answer to the same/different research questions is a source of confusion.

The R package ‘Animal Network Toolkit’ (ANTs) was developed with the aim of implementing in one package the different social network analysis techniques currently used in the study of animal social networks. Hence, ANTs is a toolkit for animal research allowing among other things to: 1) measure global, dyadic and nodal networks metrics; 2) perform data randomization: pre- and post-network (node and link permutations); 3) perform statistical permutation tests as correlation test, t-test, General Linear Model, General Linear Mixed Model, deletion simulation, Matrix TauKr correlations.

The package is partially coded in C++ using the R package Rcpp for an optimal coding speed.

The package gives researchers a workflow from the raw data to the achievement of statistical analyses, allowing for a multilevel approach: from the individual’s position and role within the network, to the identification of interactional patterns, and the study of the overall network properties.

Furthermore, ANTs also provides a guideline on the SNA techniques used: 1) from the appropriate randomization technique according to the data collected; 2) to the choice, the meaning, the limitations and advantages of the network metrics to apply, 3) and the type of statistical tests to run. The ANTs project is multi-collaborative, aiming to provide access to advanced social network analysis techniques and to create new ones that meet researchers’ needs in future versions.


To install the package in R, use the following command: devtools::install_github("SebastianSosa/ANTs")

Or download and install the package following the standard R installation process.


alt text

# Tutorials To find information on how to use ANTs, follow this link:
You can’t perform that action at this time.