go-stats python tool
Generate statistics for a GO release based on a GOLr instance
Install
pip install go-stats
Content
This package contains several scripts used to compute both statistics and changes of Gene Ontology releases.
- go_stats.py: compute the stats for a given release
- go_ontology_changes.py: compute the changes for two releases (using OBO files)
- go_annotation_changes.py: compute the changes for two releases (using 1 GOLr instance and previously computed stats)
- go_refine_stats.py: used to compute the first stats, including ontology stats
- go_reports.py: used to compute all stats and changes between two releases
Usage
import go_stats
release_date = '2019-09-01'
include_protein_binding = False
json_stats = go_stats.compute_stats('http://golr-aux.geneontology.io/solr/', 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)
Notes
- current GOLr instance is http://golr-aux.geneontology.io/solr/
- 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. go_refine_stats.py is used to compute the first set of stats files, then for the next releases one can use go_reports.py)
Release files for go-stats 1.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| go-stats-1.1.3.tar.gz | 22.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| go_stats-1.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 47.5 kB
Release files / go-stats-1.1.3.tar.gz
| Download URL | go-stats-1.1.3.tar.gz |
|---|---|
| Size | 22.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3ccac177295db80df41ce68068f5762e80cac41767c3dd8132fe25d8e7620baf
|
|
BLAKE2b-256 checksum How to use checksums |
40047a378eda10334424bed9aaf9d51d1267616cdee3212e41d96e68d9e7d575
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.19.6 CPython/3.7.1
|
Release files / go_stats-1.1.3-py3-none-any.whl
| Download URL | go_stats-1.1.3-py3-none-any.whl |
|---|---|
| Size | 25.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e0984a6fce3efc11f44c410194a3945d74d9c71125f630215523604e6e20daba
|
|
BLAKE2b-256 checksum How to use checksums |
5ebf6fde0c66f473f2b35e0d40571246ecb877fd0018cb7a935cae77276b83e9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.19.6 CPython/3.7.1
|