A machine learning-based service for estimating quality of genomes using PATRIC

Bruce D. Parrello, Rory Butler, Philippe Chlenski, Robert Olson, Jamie C. Overbeek, Gordon D. Pusch, Veronika Vonstein, Ross A. Overbeek

TL;DR

This paper introduces EvalG and EvalCon, two machine learning-based tools integrated into the PATRIC database for rapid and reliable quality assessment of draft genomes, particularly those from metagenomic samples. By leveraging existing annotations and novel consistency metrics, these tools significantly speed up genome evaluation, making large-scale metagenomic data analysis more tractable.

What Problem Does This Paper Address?

The explosion of high-throughput sequencing technologies has led to an unprecedented generation of genomic data, especially from complex metagenomic samples. While assembly methods are improving, they often produce "draft-quality" genomes that require rigorous assessment for completeness and contamination. Existing tools like CheckM, while effective, can be computationally intensive. Furthermore, the sheer volume of newly assembled genomes, many of which are novel, necessitates faster and more scalable quality control methods. This paper addresses the need for rapid, automated, and reliable genome quality assessment, particularly for draft genomes derived from metagenomic studies, by introducing new metrics and efficient computational approaches.

Methods

The core of this work lies in two new tools: EvalG and EvalCon.

  • EvalG: This tool implements a modified version of the CheckM algorithm. Instead of re-running gene calling and BLAST, it leverages existing RAST annotations within the PATRIC database. EvalG uses custom sets of "marker roles" (genes that occur in a high percentage of genomes within a specific taxonomic group) to estimate completeness and contamination. These marker roles are clustered based on co-occurrence patterns.
  • EvalCon: This tool introduces a novel metric: "annotation consistency." It uses machine learning to predict the multiplicity (number of copies) of functional roles within a genome based on the multiplicities of other roles. A "fine consistency score" measures how well the predicted role multiplicities match the actual annotated multiplicities. This is trained using a supervised machine learning approach (specifically, random forest classifiers) on a curated set of "reliably predictable roles" derived from a large set of manually curated genomes.

The machine learning aspect of EvalCon involves an iterative process: building a role occurrence matrix, training a predictor, identifying reliably predictable roles, and refining the predictor with this subset.

Datasets

  • Training Data for EvalCon: A set of genomes manually curated by the SEED project was used. Specific criteria were applied to select genomes for training: they had to be members of subsystems, appear in at least 10% of training genomes, and have multiplicities of no more than 5 (to exclude highly variable regions).
  • Evaluation Data:
    • The PATRIC database itself, containing over 220,000 genomes.
  • A recent set of ~150,000 draft genomes from a metagenomic study by Pasolli et al. [3].
  • Simulated datasets with varying levels of contamination and incompleteness were generated for evaluating EvalCon's performance.

Key Insights and Ideas

  • Consistency as a Novel Quality Metric: The introduction of "annotation consistency" (EvalCon) provides a complementary view of genome quality beyond just completeness and contamination. It captures how well the functional roles within a genome are organized and expressed relative to expectations derived from a large dataset.
  • Machine Learning for Role Prediction: Using machine learning, particularly random forest models, to predict role multiplicities is effective in capturing complex correlations between genes, even without explicit manual curation of all such relationships.
  • Speed and Scalability: By leveraging existing RAST annotations and avoiding computationally intensive steps like gene calling and BLAST, EvalG and EvalCon offer a significant speedup compared to tools like CheckM, making them suitable for large-scale analysis of millions of genomes.
  • Utility for Metagenomic Assemblies: The tools are particularly valuable for assessing the quality of draft genomes generated from metagenomic samples, which are often incomplete and may contain chimeric assemblies.
  • Problematic Roles Reporting: The detailed "problematic roles report" provides actionable insights into potential issues with gene calls or annotations, guiding users towards specific areas for manual inspection.

Key Results

  • EvalCon Performance: The random forest classifier was selected for EvalCon, yielding a final set of 1353 reliably predictable roles. EvalCon achieved high fine consistency scores (average of 97±2% on validation data without simulated errors). Fine consistency scores decreased approximately linearly with increasing contamination and incompleteness.
  • EvalG Performance: EvalG's completeness scores differed from CheckM by an average of 5.1% and a median of 3.2%. EvalG's contamination metric is defined differently from CheckM, tending asymptotically to 100% rather than potentially exceeding it.
  • Speed Comparison: EvalG and EvalCon analysis took an average of 1.51 seconds per genome, a substantial improvement over CheckM's runtime of several minutes per genome.
  • Analysis of Pasolli et al. Genomes: The tools were used to analyze the Pasolli et al. metagenomic assemblies, identifying 76,402 genomes meeting PATRIC's high-quality criteria (contamination ≤10%, consistency ≥87%, completeness ≥80%), closely matching the original study's findings.

Limitations and Future Work

  • Dependence on RAST Annotations: EvalCon and EvalG rely on RAST annotations and do not perform their own gene calling. Their accuracy is therefore tied to the quality of the RAST pipeline. As RAST annotations improve, so will the reliability of these tools.
  • Distinguishing Errors: The paper acknowledges that distinguishing between genuine biological variations (e.g., gene duplication) and errors (sequencing, assembly, or annotation) remains a challenge for automated tools. Expert user inspection is still required.
  • Future Directions:
    • Improving the performance of EvalG and EvalCon with the availability of more high-quality annotated reference genomes.
  • Further exploring the set of "strongly predictable roles" and their expression data for potential machine learning-based characterization of unicellular life structure.

Summary updated

BibTeX
@article{parrello2019machine,
  author = {Bruce D. Parrello and Rory Butler and Philippe Chlenski and Robert Olson and Jamie C. Overbeek and Gordon D. Pusch and Veronika Vonstein and Ross A. Overbeek},
  title = {{A machine learning-based service for estimating quality of genomes using PATRIC}},
  journal = {BMC Bioinformatics},
  year = {2019},
  doi = {10.1186/s12859-019-3068-y},
}
Figure