There is a newer version of the record available.

Published November 30, 2022 | Version v1
Software Open

Two simple movement mechanisms for spatial division of labour in social insects

  • 1. University of Bristol
  • 2. EPFL
  • 3. University of Lausanne

Description

Software for article "Two simple movement mechanisms for spatial division of labour in social insects".

Code-Analysis

'code-analysis.zip' contains a pipeline for processing the trajectories contained in Dryad repository https://doi.org/10.5061/dryad.9w0vt4bjb. As well as ancillary scripts and inputs, this pipeline consists of three R scripts:

1_Bipartite_Spatial_Fidelity-Per-Site_Statistics.R

This counts the number of times each individual visited each site in the nest.

2_Bipartite_Spatial_Fidelity-Community_Detection.R

This uses the site-visit counts to construct bipartite spatial network for a given colony. It then repeatedly performs community detection on the site-visit network, resulting many different partitions of the network. 

3_Bipartite_Spatial_Fidelity-Stochastic_Partitions.R

This script calculates the continuous module scores from the many partitions.

Code-Simulations

'code-simulations.zip' contains two files; an R script, 'Synthetic_trajectory_model.R' which calls a c++ program, 'Trajectory_model_cpp_functions.cpp'. 

These files generate synthetic spatial trajectories.

Parameters for controlling agent movement are entered by the user on lines 13-44 of the R script. Parameters are currently set to measured parameters for the ant Leptothorax acervorum. 

The mechanism that is simulated (either focal point attraction, locomotion adjustment, or boundary effect), is determined by setting some parameters to 0.

To simulate a trajectory produced by the locomotion adjustment mechanism or focal point attraction, set sigma (L. 40) to 0. 

To simulate a trajectory produced by the locomotion adjustment mechanism  ....

In the R script, users should set the working directory (WD, line 9) to the same directory in which the R and C++ files have been saved.

Notes

Individual trajectories collected by automated tracking using barcode tags. See the paper and Supplementary Information for details on the tracking.

Files

code-analysis.zip

Files (28.4 kB)

Name Size Download all
md5:825128537deb3fc57189dadcdbfeb8da
16.4 kB Preview Download
md5:8213cfa822ea1d82bd60446e38bbc75c
12.0 kB Preview Download

Additional details

Funding

European Commission
SOCIAL LIFE - The evolution of social life and division of labour 249375
European Commission
resiliANT - Resilience in ant societies 741491
European Commission
DISEASE - Disease Risk And Immune Strategies In Social Insects 802628