The XSO framework (v0.1) and Phydra library (v0.1) for a flexible, reproducible, and integrated plankton community modeling environment in Python

<p>Plankton community modeling is a critical tool for understanding the processes that shape marine ecosystems and their impacts on global biogeochemical cycles. These models can be of variable ecological, physiological, and physical complexity. Many published models are either not publicly av...

Full description

Bibliographic Details
Main Authors: B. Post, E. Acevedo-Trejos, A. D. Barton, A. Merico
Format: Article
Language:English
Published: Copernicus Publications 2024-02-01
Series:Geoscientific Model Development
Online Access:https://gmd.copernicus.org/articles/17/1175/2024/gmd-17-1175-2024.pdf
_version_ 1797315580497231872
author B. Post
B. Post
E. Acevedo-Trejos
A. D. Barton
A. Merico
A. Merico
author_facet B. Post
B. Post
E. Acevedo-Trejos
A. D. Barton
A. Merico
A. Merico
author_sort B. Post
collection DOAJ
description <p>Plankton community modeling is a critical tool for understanding the processes that shape marine ecosystems and their impacts on global biogeochemical cycles. These models can be of variable ecological, physiological, and physical complexity. Many published models are either not publicly available or implemented in static and inflexible code, thus hampering adoption, collaboration, and reproducibility of results. Here we present Phydra, an open-source library for plankton community modeling, and Xarray-simlab-ODE (XSO), a modular framework for efficient, flexible, and reproducible model development based on ordinary differential equations. Both tools are written in Python. Phydra provides pre-built models and model components that can be modified and assembled to develop plankton community models of various levels of ecological complexity. The components can be created, adapted, and modified using standard variable types provided by the XSO framework. XSO is embedded in the Python scientific ecosystem and is integrated with tools for data analysis and visualization. To demonstrate the range of applicability and how Phydra and XSO can be used to develop and execute models, we present three applications: (1) a highly simplified nutrient–phytoplankton (NP) model in a chemostat setting, (2) a nutrient–phytoplankton–zooplankton–detritus (NPZD) model in a zero-dimensional pelagic ocean setting, and (3) a size-structured plankton community model that resolves 50 phytoplankton and 50 zooplankton size classes with functional traits determined by allometric relationships. The applications presented here are available as interactive Jupyter notebooks and can be used by the scientific community to build, modify, and run plankton community models based on differential equations for a diverse range of scientific pursuits.</p>
first_indexed 2024-03-08T03:05:48Z
format Article
id doaj.art-4ea91350cf414615a96bb58ca3c5e795
institution Directory Open Access Journal
issn 1991-959X
1991-9603
language English
last_indexed 2024-03-08T03:05:48Z
publishDate 2024-02-01
publisher Copernicus Publications
record_format Article
series Geoscientific Model Development
spelling doaj.art-4ea91350cf414615a96bb58ca3c5e7952024-02-13T09:09:08ZengCopernicus PublicationsGeoscientific Model Development1991-959X1991-96032024-02-01171175119510.5194/gmd-17-1175-2024The XSO framework (v0.1) and Phydra library (v0.1) for a flexible, reproducible, and integrated plankton community modeling environment in PythonB. Post0B. Post1E. Acevedo-Trejos2A. D. Barton3A. Merico4A. Merico5Systems Ecology Group, Leibniz Centre for Tropical Marine Research (ZMT), Bremen, GermanySchool of Science, Constructor University, Bremen, GermanyEarth Surface Process Modelling, GFZ German Research Centre for Geosciences, Potsdam, GermanyScripps Institution of Oceanography and Department of Ecology, Behavior and Evolution, University of California San Diego, La Jolla, CA, United StatesSystems Ecology Group, Leibniz Centre for Tropical Marine Research (ZMT), Bremen, GermanySchool of Science, Constructor University, Bremen, Germany<p>Plankton community modeling is a critical tool for understanding the processes that shape marine ecosystems and their impacts on global biogeochemical cycles. These models can be of variable ecological, physiological, and physical complexity. Many published models are either not publicly available or implemented in static and inflexible code, thus hampering adoption, collaboration, and reproducibility of results. Here we present Phydra, an open-source library for plankton community modeling, and Xarray-simlab-ODE (XSO), a modular framework for efficient, flexible, and reproducible model development based on ordinary differential equations. Both tools are written in Python. Phydra provides pre-built models and model components that can be modified and assembled to develop plankton community models of various levels of ecological complexity. The components can be created, adapted, and modified using standard variable types provided by the XSO framework. XSO is embedded in the Python scientific ecosystem and is integrated with tools for data analysis and visualization. To demonstrate the range of applicability and how Phydra and XSO can be used to develop and execute models, we present three applications: (1) a highly simplified nutrient–phytoplankton (NP) model in a chemostat setting, (2) a nutrient–phytoplankton–zooplankton–detritus (NPZD) model in a zero-dimensional pelagic ocean setting, and (3) a size-structured plankton community model that resolves 50 phytoplankton and 50 zooplankton size classes with functional traits determined by allometric relationships. The applications presented here are available as interactive Jupyter notebooks and can be used by the scientific community to build, modify, and run plankton community models based on differential equations for a diverse range of scientific pursuits.</p>https://gmd.copernicus.org/articles/17/1175/2024/gmd-17-1175-2024.pdf
spellingShingle B. Post
B. Post
E. Acevedo-Trejos
A. D. Barton
A. Merico
A. Merico
The XSO framework (v0.1) and Phydra library (v0.1) for a flexible, reproducible, and integrated plankton community modeling environment in Python
Geoscientific Model Development
title The XSO framework (v0.1) and Phydra library (v0.1) for a flexible, reproducible, and integrated plankton community modeling environment in Python
title_full The XSO framework (v0.1) and Phydra library (v0.1) for a flexible, reproducible, and integrated plankton community modeling environment in Python
title_fullStr The XSO framework (v0.1) and Phydra library (v0.1) for a flexible, reproducible, and integrated plankton community modeling environment in Python
title_full_unstemmed The XSO framework (v0.1) and Phydra library (v0.1) for a flexible, reproducible, and integrated plankton community modeling environment in Python
title_short The XSO framework (v0.1) and Phydra library (v0.1) for a flexible, reproducible, and integrated plankton community modeling environment in Python
title_sort xso framework v0 1 and phydra library v0 1 for a flexible reproducible and integrated plankton community modeling environment in python
url https://gmd.copernicus.org/articles/17/1175/2024/gmd-17-1175-2024.pdf
work_keys_str_mv AT bpost thexsoframeworkv01andphydralibraryv01foraflexiblereproducibleandintegratedplanktoncommunitymodelingenvironmentinpython
AT bpost thexsoframeworkv01andphydralibraryv01foraflexiblereproducibleandintegratedplanktoncommunitymodelingenvironmentinpython
AT eacevedotrejos thexsoframeworkv01andphydralibraryv01foraflexiblereproducibleandintegratedplanktoncommunitymodelingenvironmentinpython
AT adbarton thexsoframeworkv01andphydralibraryv01foraflexiblereproducibleandintegratedplanktoncommunitymodelingenvironmentinpython
AT americo thexsoframeworkv01andphydralibraryv01foraflexiblereproducibleandintegratedplanktoncommunitymodelingenvironmentinpython
AT americo thexsoframeworkv01andphydralibraryv01foraflexiblereproducibleandintegratedplanktoncommunitymodelingenvironmentinpython
AT bpost xsoframeworkv01andphydralibraryv01foraflexiblereproducibleandintegratedplanktoncommunitymodelingenvironmentinpython
AT bpost xsoframeworkv01andphydralibraryv01foraflexiblereproducibleandintegratedplanktoncommunitymodelingenvironmentinpython
AT eacevedotrejos xsoframeworkv01andphydralibraryv01foraflexiblereproducibleandintegratedplanktoncommunitymodelingenvironmentinpython
AT adbarton xsoframeworkv01andphydralibraryv01foraflexiblereproducibleandintegratedplanktoncommunitymodelingenvironmentinpython
AT americo xsoframeworkv01andphydralibraryv01foraflexiblereproducibleandintegratedplanktoncommunitymodelingenvironmentinpython
AT americo xsoframeworkv01andphydralibraryv01foraflexiblereproducibleandintegratedplanktoncommunitymodelingenvironmentinpython