NFTest: automated testing of Nextflow pipelines
- PMID: 38341660
- PMCID: PMC10881102
- DOI: 10.1093/bioinformatics/btae081
NFTest: automated testing of Nextflow pipelines
Abstract
Motivation: The ongoing expansion in the volume of biomedical data has contributed to a growing complexity in the tools and technologies used in research with an increased reliance on complex workflows written in orchestration languages such as Nextflow to integrate algorithms into processing pipelines. The growing use of workflows involving various tools and algorithms has led to increased scrutiny of software development practices to avoid errors in individual tools and in the connections between them.
Results: To facilitate test-driven development of Nextflow pipelines, we created NFTest, a framework for automated pipeline testing and validation with customizability options for Nextflow features. It is open-source, easy to initialize and use, and customizable to allow for testing of complex workflows with test success configurable through a broad range of assertions. NFTest simplifies the testing burden on developers by automating tests once defined and providing a flexible interface for running tests to validate workflows. This reduces the barrier to rigorous biomedical workflow testing and paves the way toward reducing computational errors in biomedicine.
Availability and implementation: NFTest is an open-source Python framework under the GPLv2 license and is freely available at https://github.com/uclahs-cds/tool-NFTest. The call-sSNV Nextflow pipeline is available at: https://github.com/uclahs-cds/pipeline-call-sSNV.
© The Author(s) 2024. Published by Oxford University Press.
Conflict of interest statement
P.C.B. sits on the Scientific Advisory Boards of Intersect Diagnostics Inc., BioSymetrics Inc., and Sage Bionetworks. All other authors have no conflicts of interest to declare.
Figures


References
-
- Baresi L, Pezzè M.. An introduction to software testing. Electron Notes Theor Comput Sci 2006;148:89–111.
-
- Broad Institute. Picard Toolkit. Broad Institute. GitHub repository. 2019. https://github.com/broadinstitute/picard.
-
- Cremin CJ, Dash S, Huang X. et al. Big data: historic advances and emerging trends in biomedical research. Curr Res Biotechnol 2022;4:138–51.
-
- Crusoe MR, Abeln S, Iosup A. et al. Methods included: standardizing computational reuse and portability with the common workflow language. Commun ACM 2022;65:54–63.