Encode api

From aipoch/medical-research-skills · View interactive version

Encode api is an AI agent skill from the GitHub repository aipoch/medical-research-skills. Access the ENCODE Project REST API to search for and retrieve biological data (biosamples, experiments, etc.). Use this skill when the user needs to query ENCODE data, search by keywords, or retrieve specific objects by accession ID.

How to use this skill

Skill file

Source: https://github.com/aipoch/medical-research-skills

ENCODE API Skill

This skill allows you to interact with the ENCODE Project database via its REST API.

When to Use

Key Features

Dependencies

Example Usage

See ## Usage above for related details.

cd "20260316/scientific-skills/Evidence Insight/encode-api"
python -m py_compile scripts/encode_client.py
python scripts/encode_client.py --help

Example run plan:

  1. Confirm the user input, output path, and any required config values.
  2. Edit the in-file CONFIG block or documented parameters if the script uses fixed settings.
  3. Run python scripts/encode_client.py with the validated inputs.
  4. Review the generated output and return the final artifact with any assumptions called out.

Implementation Details

Usage

You can use the provided Python script scripts/encode_client.py to perform searches or retrieve specific objects.

1. Search for Objects

To search for data using keywords:

from scripts.encode_client import search_encode

results = search_encode(term="bone chip", limit=10)
print(results)

2. Get Object by Accession

To retrieve a specific object (e.g., a Biosample or Experiment) by its accession ID:

from scripts.encode_client import get_object

data = get_object(accession="ENCBS000AAA")
print(data)

API Reference

When Not to Use

Required Inputs

Recommended Workflow

  1. Validate the request against the skill boundary and confirm all required inputs are present.
  2. Select the documented execution path and prefer the simplest supported command or procedure.
  3. Produce the expected output using the documented file format, schema, or narrative structure.
  4. Run a final validation pass for completeness, consistency, and safety before returning the result.

Output Contract

Validation and Safety Rules

Failure Handling

Quick Validation

Run this minimal verification path before full execution when possible:

python scripts/encode_client.py --help

Expected output format:

Result file: encode_api_result.md
Validation summary: PASS/FAIL with brief notes
Assumptions: explicit list if any
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.