metaGOflow: a workflow for the analysis of marine Genomic Observatories shotgun metagenomics data

Haris Zafeiropoulos, Martín Beracochea, Stelios Ninidakis, Katrina Exter, Antonis Potirakis, Gianluca De Moro, Lorna Richardson, Erwan Corre, João Paulo Machado, Evangelos Pafilis, Georgios Kotoulas, Ioulia Santi, Robert Finn, Cymon J. Cox, Christina PavloudiGigaScience 2022

TL;DR

This paper introduces metaGOflow, a new bioinformatics workflow designed for the efficient and reproducible analysis of large-scale marine metagenomic data from Genomic Observatories. It addresses the challenge of processing vast amounts of data by leveraging containerization and modern workflow languages, while also emphasizing data provenance through RO-Crate packaging.

What Problem Does This Paper Address?

Marine ecosystems are incredibly diverse, and understanding their microbial communities is crucial for monitoring environmental health and predicting the impacts of climate change. Genomic Observatories (GOs) are established to collect long-term data on this biodiversity. However, the sheer volume and complexity of shotgun metagenomic data generated by these initiatives pose significant computational and analytical challenges. Existing tools and pipelines can be resource-intensive, difficult to standardize, and lack robust mechanisms for tracking data provenance, hindering reproducibility and interoperability. The European Marine Omics Biodiversity Observation Network (EMO BON) alone is expected to generate over 540 datasets in its first two years, necessitating an efficient and standardized analysis framework.

Methods

metaGOflow is built upon the established MGnify resource and utilizes containerization technologies (Docker, Singularity) and the Common Workflow Language (CWL) to ensure portability across different computing platforms. Key methodological aspects include:

  • Modular Workflow: The workflow is designed with modularity, allowing users to execute specific steps or run them at a later point. This is crucial for managing computational resources, especially for time-consuming steps like functional annotation.
  • Efficient Assembly: To handle large datasets efficiently, metaGOflow employs the MEGAHIT algorithm for assembly, which offers a lower computational cost compared to alternatives like metaSPAdes, prioritizing community-level insights over individual species resolution.
  • RO-Crate Packaging: A novel aspect is the use of Research Object (RO) Crate packaging. This automatically bundles data products with comprehensive metadata, including sample information, analysis details, software versions, and parameters, ensuring FAIR (Findable, Accessible, Interoperable, Reusable) data practices and enhancing reproducibility.
  • Standardized Analysis Steps: The workflow integrates established tools for sequence preprocessing (fastp), taxonomic profiling (MAPseq, mOTUS2), gene prediction (FragGeneScan), and functional annotation (InterProScan, eggNOG, HMMER for KEGG).

Datasets

The paper uses data from:

  • EMO BON samples: Two samples (one marine sediment, one water column) from the European Marine Omics Biodiversity Observation Network.
  • Tara Oceans sample: One seawater sample from the Tara Oceans expedition.
  • Additional gut samples: For demonstrating broader applicability, a fish gut and a human gut metagenomic sample were also analyzed.

These datasets represent real-world marine metagenomic data, with the EMO BON samples serving as the primary use case for evaluating the workflow's performance and scalability.

Key Insights and Ideas

  • Reproducibility through Containerization and CWL: The combination of containerization and CWL is highlighted as a powerful approach for managing the complexity of bioinformatics pipelines, ensuring that analyses can be reliably reproduced across different computational environments.
  • The Power of RO-Crates for Data Provenance: Packaging analysis outputs within RO-Crates is a significant step towards making complex biological data truly FAIR. It automates the capture of essential metadata, which is often a bottleneck in scientific data management.
  • Balancing Computational Cost and Scientific Insight: The choice of MEGAHIT for assembly demonstrates a pragmatic approach to handling large datasets, prioritizing the generation of community-level insights within practical computational constraints.
  • Flexibility for Diverse Needs: The modular design of metaGOflow allows researchers to tailor the analysis to their specific needs, whether it's a quick taxonomic inventory or a full functional annotation, making it adaptable beyond the initial EMO BON project.

Key Results

  • Efficient Processing: The workflow demonstrated efficient processing of EMO BON and Tara Oceans samples. For example, the preprocessing and taxonomy inventory steps took between 10 to 24 hours.
  • Reduced Assembly Time and Memory: The MEGAHIT assembly step was completed in less than 2 hours with less than 10 GB of RAM, significantly less than what other assemblers might require.
  • Time-Consuming Functional Annotation: As expected, gene calling and functional annotation (particularly InterProScan) were the most computationally intensive steps, taking approximately 4 days per sample.
  • Comprehensive Output: metaGOflow generates detailed taxonomic and functional profiles, along with visualization tools (e.g., Krona plots for taxonomy) and comprehensive metadata packaged in RO-Crates.

Limitations and Future Work

  • Functional Annotation Bottleneck: The paper acknowledges that functional annotation, especially using InterProScan, remains computationally intensive. Future work aims to optimize this step, potentially by leveraging cluster-mode execution once it becomes more fault-tolerant.
  • CWL Drawbacks: The authors note limitations of CWL, such as the requirement for explicit input-output declarations and potential portability issues with JavaScript Expression-Tools.
  • Future Directions: The authors plan to investigate further optimizations, explore cloud-based implementations, and integrate metaGOflow into broader e-infrastructures to enhance its accessibility and utility. They also suggest investigating tools like Toil for better resource exploitation.

Summary updated

Abstract

metaGOflow is an efficient and robust workflow that scales to the needs of projects producing big metagenomic data such as EMO BON. It highlights how containerization technologies along with modern workflow languages and metadata package approaches can support the needs of researchers when dealing with ever-increasing volumes of biological data. Despite being initially oriented to address the needs of EMO BON, metaGOflow is a flexible and easy-to-use workflow that can be broadly used for one-sample-at-a-time analysis of shotgun metagenomics data.
BibTeX
@inproceedings{zafeiropoulos2022metagoflow,
  author = {Haris Zafeiropoulos and Martín Beracochea and Stelios Ninidakis and Katrina Exter and Antonis Potirakis and Gianluca De Moro and Lorna Richardson and Erwan Corre and João Paulo Machado and Evangelos Pafilis and Georgios Kotoulas and Ioulia Santi and ROBERT FINN and Cymon J. Cox and Christina Pavloudi},
  title = {{metaGOflow: a workflow for the analysis of marine Genomic Observatories shotgun metagenomics data}},
  booktitle = {GigaScience},
  year = {2022},
  doi = {10.1093/gigascience/giad078},
}
Figure