Water-phase nematode variability and pollutant-specific functional stability in a full-scale fixed-biofilm treatment system
Description
This dataset supports an investigation of how water-phase nematode abundance, carrier-associated bacterial guilds and treatment performance vary in a full-scale multistage fixed-biofilm wastewater treatment system. The study tested whether nematode abundance provided predictive information about treatment states despite weak conditional correlations with broad bacterial guild proportions. Spatial separation between water-phase predators and carrier biofilms was considered a possible explanation for this weak correspondence. The package contains water-quality measurements, taxonomic guild-classification records, analysis-ready observations from 18 biological sampling dates, MATLAB source code, archived validation partitions, fixed bootstrap inputs and model outputs. The modelling dates span October 2023 to July 2024 and temperatures of 8.60–25.25 °C. Measurements cover the influent, anoxic tank, aerobic tanks 1, 4 and 6, and effluent. Water-quality samples were spatial composites. Nematode abundance was determined by microscopy, while heterotrophic and autotrophic guild proportions were inferred from carrier-biofilm 16S rRNA-gene taxonomic data. Marked fluctuations in nematode abundance coexisted with a comparatively stable heterotrophic guild proportion. Whole-system chemical oxygen demand (COD) removal was more stable than ammonium-nitrogen removal. Removing nematode predictors increased date-averaged COD mean absolute prediction error by 1.97 mg/L, with a 95% paired date-block bootstrap interval of 0.95–2.99 mg/L. This result indicates incremental predictive information within the sampled dataset and does not establish a causal effect of predation. The code implements a conditional state-transition surrogate, date-grouped validation, benchmark comparisons, predictor ablation and perturbation scenarios. The data can support independent evaluation of predictive performance, alternative model development and comparison with other treatment systems. Guild proportions should be interpreted as taxonomically inferred community fractions rather than absolute functional biomass or activity. Scenario outputs describe fitted conditional responses, and the proposed spatial-buffering mechanism remains unverified. The supplied scripts cover the surrogate-model analyses rather than every analysis in the associated manuscript.
Files
Steps to reproduce
1. Download and extract the complete archive. Preserve the directory structure, with 00_canonical_source, 03_code and 04_input located together in the project root. Retain an untouched copy of the archived outputs for comparison. 2. Open MATLAB and set the Current Folder to the extracted project root. The code implements fitting and resampling routines using base MATLAB operations. Arial is required for figure export. Record the MATLAB release and operating system used for reproduction. 3. Run the following commands in a fresh MATLAB session: cd('03_code') run('run_model_WR_W_analysis.m') The script clears the workspace, reads experiment_data.xlsx, validates the fixed inputs, fits the models and performs validation, ablation and perturbation analyses. A successful run replaces WR_W_analysis_outputs_matlab and creates selected summary tables in 02_results at the project root. 4. Preserve the supplied resampling files. Outer validation reads 100 archived date-grouped partitions, each containing 12 calibration dates and 6 validation dates. Seed 42 is retained as the original split-design provenance. The Table S9 bootstrap uses 10,000 resamples with MATLAB twister seed 20260902. Table S10 reads fixed bootstrap matrices whose metadata records NumPy PCG64 seeds 20260902 and 20260903. Python is not required to execute the MATLAB workflow. 5. To recalculate Table S10 from existing scenario outputs without refitting the model, run: run_TableS10_fixed_bootstrap The optional comparison with the separate Fig. 6 plotting directory is skipped when that directory is absent. 6. Confirm that ANALYSIS_RUN_COMPLETE.txt records a new completion time. Compare the regenerated numerical results with the archived copies, especially summary_revised.csv, model_comparison_summary.csv, W_ablation_date_bootstrap.csv and TableS10_fixed_bootstrap_selected.csv. Match rows by their identifiers. Table S10 should contain 16 data rows. Small floating-point differences may occur across environments. Final manuscript figure assembly and the separately archived Fig5c_MAE.png are not reproduced by the supplied scripts.
Institutions
- North China Electric Power UniversityBeijing, Beijing