bioRxivEcology
bmotif: a package for motif analyses of bipartite networks
B. I. Simmons, M. J. M. Sweering, M. Schillinger, L. V. Dicks, W. J. Sutherland, R. Di Clemente
Abstract
O_LIBipartite networks are widely-used to represent a diverse range of species interactions, such as pollination, herbivory, parasitism and seed dispersal. The structure of these networks is usually characterised by calculating one or more metrics that capture different aspects of network architecture. While these metrics capture useful properties of networks, they only consider structure at the scale of the whole network (the macro-scale) or individual species (the micro-scale). Meso-scale structure between these scales is usually ignored, despite representing ecologically-important interactions. Network motifs are a framework for capturing this meso-scale structure and are gaining in popularity. However, there is no software available in R, the most popular programming language among ecologists, for conducting motif analyses in bipartite networks. Similarly, no mathematical formalisation of bipartite motifs has been developed.\nC_LIO_LIHere we introduce bmotif: a package for counting motifs, and species positions within motifs, in bipartite networks. Our code is primarily an R package, but we also provide MATLAB and Python code of the core functionality. The software is based on a mathematical framework where, for the first time, we derive formal expressions for motif frequencies and the frequencies with which species occur in different positions within motifs. This framework means that analyses with bmotif are fast, making motif methods compatible with the permutational approaches often used in network studies, such as null model analyses.\nC_LIO_LIWe describe the package and demonstrate how it can be used to conduct ecological analyses, using two examples of plant-pollinator networks. We first use motifs to examine the assembly and disassembly of an Arctic plant-pollinator community, and then use them to compare the roles of native and introduced plant species in an unrestored site in Mauritius.\nC_LIO_LIbmotif will enable motif analyses of a wide range of bipartite ecological networks, allowing future research to characterise these complex networks without discarding important meso-scale structural detail.\nC_LI
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- pymfinder: a tool for the motif analysis of binary and quantitative complex networks
Bernat Bramon Mora, Alyssa R. Cirtwill, Daniel B. Stouffer·bioRxiv·Jul 7, 2018
- The non-random assembly of functional motifs in plant-pollinator networks
J. B. Lanuza, A. Allen-Perkins, I. Bartomeus·bioRxiv·Apr 6, 2022
- Uncovering indirect interactions in bipartite ecological networks
B. I. Simmons, A. Cirtwill, … W. J. Sutherland·bioRxiv·May 4, 2018
- ILSM: A package for analyzing the interconnection structure of tripartite interaction networks
Weicheng Sun, Yangyang Zhao, Chuan Yan·EcographyPeer-reviewed·Oct 10, 2025
- BiMultiNetPlot: An R package for visualizing ecological bipartite multilayer networks
Hai‐Dong Li·bioRxiv·Sep 20, 2024
- Telling mutualistic and antagonistic ecological networks apart by learning their multiscale structure
B. Pichon, R. Le Goff, … B. Perez-Lamarque·bioRxiv·Apr 4, 2023