Principles of resilient coding for plant ecophysiologists

J.R. Stinziano, C. Roback, D. Sargent, B.K. Murphy, P.J. Hudson, C.D. Muir

Research output: Contribution to journalArticlepeer-review

10 Citations (Scopus)

Abstract

Plant ecophysiology is founded on a rich body of physical and chemical theory, but it is challenging to connect theory with data in unambiguous, analytically rigorous and reproducible ways. Custom scripts written in computer programming languages (coding) enable plant ecophysiologists to model plant processes and fit models to data reproducibly using advanced statistical techniques. Since many ecophysiologists lack formal programming education, we have yet to adopt a unified set of coding principles and standards that could make coding easier to learn, use and modify. We identify eight principles to help in plant ecophysiologists without much programming experience to write resilient code: (i) standardized nomenclature, (ii) consistency in style, (iii) increased modularity/extensibility for easier editing and understanding, (iv) code scalability for application to large data sets, (v) documented contingencies for code maintenance, (vi) documentation to facilitate user understanding; (vii) extensive tutorials and (viii) unit testing and benchmarking. We illustrate these principles using a new R package, {photosynthesis}, which provides a set of analytical and simulation tools for plant ecophysiology. Our goal with these principles is to advance scientific discovery in plant ecophysiology by making it easier to use code for simulation and data analysis, reproduce results and rapidly incorporate new biological understanding and analytical tools.
Original languageEnglish
Article numberplab059
Number of pages10
JournalAOB Plants
Volume13
Issue number5
DOIs
Publication statusPublished - 2021

Open Access - Access Right Statement

© The Author(s) 2021. This is an Open Access article distributed under the terms of the Creative Commons Attribution License (https://creativecommons. org/licenses/by/4.0/), which permits unrestricted reuse, distribution, and reproduction in any medium, provided the original work is properly cited.

Fingerprint

Dive into the research topics of 'Principles of resilient coding for plant ecophysiologists'. Together they form a unique fingerprint.

Cite this