Published February 26, 2026 | Version v2

Code for article: Imbalance in gut microbial interactions as a marker of health and disease.

  • 1. ROR icon Universidad de Granada

Description

CORRECTION (July 2026). After publication, an error was identified in coabundance_analyses.py. In the FlashWeave step, the input table was written with sample identifiers in the header row; when those identifiers were purely numeric, the profiler's file reader did not recognise them as row labels and instead treated them as an additional variable, so the sample identifiers entered the inference as a spurious taxon. Of the datasets analysed, only the CRC dataset of Yachida et al. has purely numeric sample identifiers, so only that analysis was affected. Correcting it reduces the ENBI values reported for CRC (Fig. 3C, fig. S16B and fig. S20) but leaves them positive, and the conclusions of the paper are unchanged. 

This Zenodo record could not be updated with a new version. The corrected code is therefore available at a new Zenodo: https://zenodo.org/records/21878463 (DOI: 10.5281/zenodo.21878462)

A full account of the correction and of additional supporting analyses is given here: https://rcl-jccb.github.io/enbi-eletter-response/

---------------------------------------------------------------------------------------------------------------------------------------------

Corral López R, Bonachela JA, Dominguez-Bello MG, Manhart M, Levin SA, Blaser MJ, Muñoz MA. Imbalance in gut microbial interactions as a marker of health and disease. Science. 2026 Feb 26;391(6788):890-895. doi: 10.1126/science.ady1729

Contents of the archive:

  • ecologicalequations.py: Core model implementation for simulating ecological dynamics
  • dataanalyst.py: auxiliary functions needed for paperplots.py.

  • main.py: runs ecologicalequations.py.
  • [CRC, IBDMDB, IBS, CD_Elife, ModelData]_analyses.py: Scripts for preprocessing and analyzing datasets related to specific diseases and the model. It also implements network inference from longitudinal data using the LIMITS algorithm.

  • coabundance_analyses.py: Code for inferring co-abundance networks using FlashWeave and BEEM-Static.

  • metabolites_analyses.py: Functions for analyzing metabolomic profiles.

  • paperplots.py: Scripts to generate figures used in the manuscript and supplementary materials.

  • visualization.py: Helper module for data visualization.

  • utils.py: Utility functions for data processing and plotting.

  • Launch_script.py: Deploys the program to the server with all predefined constants and initialization settings.

Please contact the authors directly for any questions regarding use or reuse of these materials.

Files

code_for_publication.zip

Files (160.5 kB)

Name Size
md5:99f2cecd114426c8d6daeb2202a23553
160.5 kB Preview Download

Additional details

Dates

Copyrighted
2025-06-26

Software

Programming language
Python