← Life Sciences DatabasesCONTENT HISTORY

Update to Life Sciences Databases

Snapshot Sep 30, 2026 · 23:01 UTC · version 0.1.5

Collection source: not recorded for this historical snapshot.

WHAT CHANGED · RULE-BASED ANALYSIS

First saved snapshot

No earlier snapshot is available to establish a change.

Compare saved observations

Download comparison JSON
Full technical diff · 0 changed fields
Full snapshot data
{
  "name": "gtex-eqtl-skill",
  "description": "Fetch GTEx single-tissue eQTL associations from one variant input by accepting rsID, GRCh37, or GRCh38 input and resolving to the required GRCh38 query for the GTEx v2 API. Use when a user wants eQTL associations returned as JSON.",
  "included_files": [
    {
      "relative_path": "agents/openai.yaml",
      "size_in_bytes": 91
    },
    {
      "relative_path": "scripts/gtex_eqtl.py",
      "size_in_bytes": 6682
    },
    {
      "relative_path": "scripts/test_gtex_eqtl.py",
      "size_in_bytes": 4572
    },
    {
      "relative_path": "scripts/test_variant_resolution.py",
      "size_in_bytes": 3921
    },
    {
      "relative_path": "scripts/variant_resolution.py",
      "size_in_bytes": 362
    }
  ],
  "skill_md_contents": "---\nname: gtex-eqtl-skill\ndescription: Fetch GTEx single-tissue eQTL associations from one variant input by accepting rsID, GRCh37, or GRCh38 input and resolving to the required GRCh38 query for the GTEx v2 API. Use when a user wants eQTL associations returned as JSON.\n---\n\n## Source presentation\n<!-- source-presentation-contract:v2 -->\n- Add claim-adjacent links only for substantive claims supported by returned `sources`; never cite empty, metadata-only, or failed lookups.\n- Preserve `checked_sources`, use only supported `canonical_url` mappings, and leave requested raw or machine-readable output unchanged.\n- Use the `gtex-eqtl-skill` entry in `../../references/source-links.json` and follow `../../references/source-presentation.md`.\n\n# Operating rules\n\n- Use Python `requests` for all network calls.\n- Accept exactly one of `rsid`, `grch37`, `grch38`, or `variant`, and resolve to a GRCh38 `chrom-pos-ref-alt` query.\n- Convert to GTEx `variantId` format: `chr{chrom}_{pos}_{ref}_{alt}_b38`.\n- The script returns one JSON object; summarize its evidence with claim-adjacent citations unless the user requests machine-readable output.\n\n# Input\n\nAccept JSON on stdin as either:\n\n- A string: `\"10-112998590-C-T\"` (treated as GRCh38)\n- An object:\n\n```json\n{\n  \"grch38\": \"10-112998590-C-T\",\n  \"max_results\": 200\n}\n```\n\nOther accepted object forms include:\n\n```json\n{\n  \"grch37\": \"10-114758349-C-T\"\n}\n```\n\n```json\n{\n  \"rsid\": \"rs7903146\",\n  \"max_results\": 50\n}\n```\n\nAllowed variant separators include `-`, `:`, `_`, `/`, or whitespace, for example:\n\n- `10-112998590-C-T`\n- `10:112998590-C-T`\n- `10:112998590:C:T`\n- `chr10 112998590 C T`\n\n`max_results` is optional and truncates returned eQTL rows when provided.\n\n# Output\n\nSuccess shape:\n\n```json\n{\n  \"ok\": true,\n  \"source\": \"gtex-v2\",\n  \"input\": {\"type\": \"grch38\", \"value\": \"10-112998590-C-T\"},\n  \"query_variant\": {\n    \"chr\": \"10\",\n    \"pos\": 112998590,\n    \"ref\": \"C\",\n    \"alt\": \"T\",\n    \"canonical\": \"10:112998590-C-T\",\n    \"variant_id\": \"chr10_112998590_C_T_b38\"\n  },\n  \"eqtl_count\": 2,\n  \"eqtl_count_total\": 2,\n  \"truncated\": false,\n  \"eqtls\": [],\n  \"paging_info\": {},\n  \"warnings\": []\n}\n```\n\nFailure shape:\n\n```json\n{\n  \"ok\": false,\n  \"error\": {\"code\": \"...\", \"message\": \"...\"},\n  \"warnings\": []\n}\n```\n\n# Execution\n\nUse:\n\n- `scripts/gtex_eqtl.py`\n\nThe script reads JSON from stdin and prints JSON to stdout.\n\nExample:\n\n```bash\necho '{\"grch38\":\"10-112998590-C-T\",\"max_results\":5}' | python scripts/gtex_eqtl.py\n```\n"
}

SHA-256: 50e88a727f071a6e8940776b930c521ceb8b0a2d69b2b5968ab07a4862c547f5