Skip to main content

Annotation quality metrics calculator (coverage, consistency, specificity).

Project description

Build Status Coverage Status

SBMate

Systems Biology Model AnnoTation Evaluator

Overview

SBMate evaluates the quality of annotations in SBML model elements, especially libsbml.Model, libsbml.Species, libsbml.Compartment, and libsbml.Reaction. Currently, it examines annotations from five knowledge resources, CHEBI, GO, KEGG, SBO, and UNIPROT.

SBMate calculates three metrics:

  1. Coverage checks how many model elements of the above four types (model, reaction, species, and compartment) are actually annotated.
  2. Consistency computes how many of such annotated entities has proper annotation. For example, a reaction object should not have a GO cellular component term (GO:0005575 or its children). SBMate identifies such instances and calculates the proprotion of model entities whose annotations are consistent.
  3. Finally, specificity is a measure of how 'precise' such consistent annotations are. This is obtained by utilizing the hierarchical structures of knowledge resource terms, such as the directed acyclic graphs of SBO, GO and CHEBI.

More detailed discussions can be found in our manuscript (in preparation).

Example

It is quite easy to use SBMate as there is just one main method, sbmate.AnnotationMetrics.getMetrics.

By default, SBMate produces a report summarizing the three scores:

Another option is to create a pandas DataFrame, as below:

And you will get the dataframe.

Adding Additional Metrics

You can add additional metrics by creating a class that calculates metrics. Metric values are contained in a pandas DataFrame. See metric_calculator.py to see how to write a class that calculates metrics. When you construct AnnotationMetrics, you will assign a value to the keyword argument metric_calculator_classes of the constructor.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

SBMate-1.1.3.tar.gz (3.5 MB view hashes)

Uploaded Source

Built Distribution

SBMate-1.1.3-py3-none-any.whl (3.6 MB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page