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.0.tar.gz (3.5 MB view details)

Uploaded Source

Built Distribution

SBMate-1.1.0-py3-none-any.whl (3.6 MB view details)

Uploaded Python 3

File details

Details for the file SBMate-1.1.0.tar.gz.

File metadata

  • Download URL: SBMate-1.1.0.tar.gz
  • Upload date:
  • Size: 3.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/3.10.0 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.8

File hashes

Hashes for SBMate-1.1.0.tar.gz
Algorithm Hash digest
SHA256 725babeb229ddb0ae60c57c5955f22ddd46157870bbcd38c19b585ab99607c62
MD5 f8a8b757760ece13b9bd03aa2f6176ad
BLAKE2b-256 85d7945a295f4632fbb6622cc13380b6eddfbc9f58863e5bbe554f9eda19206c

See more details on using hashes here.

File details

Details for the file SBMate-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: SBMate-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.6 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/3.10.0 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.8

File hashes

Hashes for SBMate-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 24f3ec6f88b135900afe5e988c76812cf72d1dd59a1aa9bb72037c8e5729697f
MD5 a5a45784d9f3678d4be006d4e9ae97d4
BLAKE2b-256 e9bcb7d63c52081f6b4c7a338df4af5bb7ccfa9e8cb5a4735f974e7042c9f33b

See more details on using hashes here.

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