Skip to main content

Python Library to generate statistics on a Gene Ontology (GO) release

Project description

go-stats python tool

Generate statistics for a GO release based on a GOLr instance


pip install go-stats


This package contains several scripts used to compute both statistics and changes of Gene Ontology releases.

  • compute the stats for a given release
  • compute the changes for two releases (using OBO files)
  • compute the changes for two releases (using 1 GOLr instance and previously computed stats)
  • used to compute the first stats, including ontology stats
  • used to compute all stats and changes between two releases


import go_stats

release_date = '2019-09-01'
include_protein_binding = False

json_stats = go_stats.compute_stats('', release_date, include_protein_binding)
go_stats.write_json("stats.json", json_stats)

tsv_stats = go_stats.create_text_report(json_stats)
go_stats.write_text("stats.tsv", tsv_stats)

json_meta = go_stats.create_meta(json_stats)
go_stats.write_json("meta.json", json_meta)


  • current GOLr instance is
  • older GOLr archives are stored in zenodo both as full archive and reference archive which can be used with bdbags to retrieve only the golr database dump (golr-index-contents.tgz)
  • several scripts will be refactored and simplified (e.g. is used to compute the first set of stats files, then for the next releases one can use

Project details

Download files

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

Files for go-stats, version 1.1.3
Filename, size File type Python version Upload date Hashes
Filename, size go_stats-1.1.3-py3-none-any.whl (25.3 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size go-stats-1.1.3.tar.gz (22.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page