Marvellbrazil/my-agentic-skills / archive/bioinformatics/embl_ebi_ols
embl-ebi-ols
VerifiedQuery and search the EMBL-EBI Ontology Lookup Service (OLS) for biomedical ontology terms, definitions, and hierarchies across 250+ ontologies (e.g., GO, DOID, HP). Use when the user asks to search for terms, retrieve details, navigate hierarchies (parents, children, ancestors), look up properties and individuals, get autocomplete suggestions, or access ontology metadata and statistics.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 11.2 KB |
| references/api_reference.md | markdown | 5.0 KB |
| references/citation.bib | other | 2.0 KB |
| scripts/get_individual.py | script | 5.3 KB |
| scripts/get_ontology.py | script | 4.3 KB |
| scripts/get_property.py | script | 6.6 KB |
| scripts/get_stats.py | script | 2.0 KB |
| scripts/get_term.py | script | 10.3 KB |
| scripts/ols_utils.py | script | 2.7 KB |
| scripts/search_ols.py | script | 6.4 KB |
| scripts/suggest_ols.py | script | 3.7 KB |
scripts/get_stats.py
View on GitHub# Copyright 2026 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""Retrieves statistics from the EMBL-EBI Ontology Lookup Service.
This script fetches index statistics from the OLS4 v2 stats API,
including counts of ontologies, classes, properties, and individuals.
"""
# /// script
# requires-python = ">=3.10"
# dependencies = [
# "polite-http",
# ]
# ///
import argparse
import ols_utils
def get_stats(args: argparse.Namespace):
"""Fetches and writes OLS index statistics.
This function calls the OLS4 v2 stats API, parses the JSON response,
and writes the extracted statistics to an output file or stdout.
Args:
args: An argparse.Namespace object containing command-line arguments,
including the 'output' file path.
"""
url = "https://www.ebi.ac.uk/ols4/api/v2/stats"
data = ols_utils.CLIENT.fetch_json(url)
stats = {
"numberOfOntologies": data.get("numberOfOntologies", 0),
"numberOfClasses": data.get("numberOfClasses", 0),
"numberOfProperties": data.get("numberOfProperties", 0),
"numberOfIndividuals": data.get("numberOfIndividuals", 0),
"lastModified": data.get("lastModified", ""),
}
ols_utils.write_output(
{"status": "success", "statistics": stats}, args.output
)
def parse_args() -> argparse.Namespace:
parser = argparse.ArgumentParser(description="Get OLS index statistics")
parser.add_argument(
"--output", type=str, required=True, help="Output file path"
)
return parser.parse_args()
if __name__ == "__main__":
main_args = parse_args()
get_stats(main_args)
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |