Published April 18, 2026 | Version v3
Dataset Open

Codes for homology analyses of trails and its insights into perception ranges

  • 1. Natural History Museum
  • 2. ROR icon University College London

Contributors

Contact person:

Description

These are the Matlab (Persistence_Analysis.m) and Python (Persistence_Analysis.py) codes, along with the free software "Trajectory_Analysis_Version4" to compute the homology persistence of a trail (fossil or modern). These codes are supplemented to the PNAS paper "Sensing the environment: the perceptual ranges of the earliest motile animals" by Zekun Wang and Tianyun Shi.

For all the codes, you need to upload the coordinates for both the trajectory (Trajectory.txt) and the boundary of the foraging patch (Patch_boundary.txt). If the coordinates are extracted via GetData Graph Digitizer, you need to remove the headers of its output files and only keep the coordinates. You can EITHER input the "sampling frequency", which is 2.678 for the benchmark, OR "trail width", which is 108.333 (pixels) for the benchmark.

 

Files

Patch_boundary.txt

Files (135.8 MB)

Name Size Download all
md5:ab7ea60e88ba5a14e7a733d5a8e6c11b
390 Bytes Preview Download
md5:2ccd2ca8fa9152ce2fa43e78511824f4
9.9 kB Download
md5:b5448b6c5c1a4ad7289fc807ee8da58f
7.5 kB Download
md5:195c01f0047cab7962cf08cde8588e31
19.9 kB Preview Download
md5:eb9daec6d7c5b640d68fa31c05563065
135.7 MB Download

Additional details

Dates

Submitted
2026-02