跳到正文

医学公开数据库查询与登记

使用有明确接口的公开数据库查询方法保存请求、筛选、分页与来源,可用于医学文献、临床试验及药物资料检索。

开源精选医疗业务86 个文件50,135 Stars浏览次数 0K-Dense-AI/scientific-agent-skills MIT版本 a1043ef
开始使用

下载前阅读 SKILL.md 中的使用条件,并确认所用工具支持对应能力。

输入资料
指定数据库和查询问题 实际接口、筛选条件及使用范围 阅读本节完整说明
交付内容
可复查的查询资料 请求、分页与来源记录 阅读本节完整说明
  1. 获取完整包,保留配套文件的目录结构。
  2. 按照原文准备所需工具、依赖与输入资料。
  3. 阅读对应使用步骤与输入输出说明,在自己的环境中验证结果。

使用提示摘自原文,配套文件保留来源版本;实际运行条件以各包说明为准。

正文

获取原文件

references/gtex.md

Overview

GTEx catalogs gene expression levels across human tissues from postmortem donors, enabling study of tissue-specific gene regulation and eQTLs.

Base URL

https://gtexportal.org/api/v2

Auth

None required (public, unauthenticated).

Response Format

JSON. Most endpoints return paginated results with structure:

{
  "data": [ ... ],
  "paging_info": {
    "numberOfPages": 10,
    "page": 0,
    "maxItemsPerPage": 250
  }
}

Pagination Parameters (common to most endpoints)

  • page -- 0-indexed page number (default: 0)
  • itemsPerPage -- results per page (default: 250; current schema maximum: 100000, use small pages)

Key Endpoints

Gene expression (median by tissue)

GET /expression/medianGeneExpression?gencodeId=ENSG00000139618.14&datasetId=gtex_v8

Parameters:

  • gencodeId -- Versioned Ensembl gene ID (required)
  • datasetId -- gtex_v8 (explicit historical selection; defaults vary by endpoint)
  • tissueSiteDetailId -- filter to specific tissue (optional)

Returns median TPM per tissue for the gene.

Highly expressed genes for a tissue

GET /expression/topExpressedGene?tissueSiteDetailId=Liver&datasetId=gtex_v8

Single-tissue eQTLs

GET /association/singleTissueEqtl?gencodeId=ENSG00000139618.14&tissueSiteDetailId=Whole_Blood&datasetId=gtex_v8

Parameters:

  • gencodeId -- Versioned Ensembl gene ID (optional filter)
  • tissueSiteDetailId -- tissue ID (optional filter)
  • datasetId -- gtex_v8 (explicit historical selection; defaults vary by endpoint)

Multi-tissue eQTLs

GET /association/metasoft?gencodeId=ENSG00000139618.14&datasetId=gtex_v8
GET /reference/gene?geneId=BRCA2&gencodeVersion=v26&genomeBuild=GRCh38/hg38

Parameters:

  • geneId -- gene symbol or Ensembl ID
  • gencodeVersion -- v26 for GTEx v8
  • genomeBuild -- GRCh38/hg38

List tissues

GET /dataset/tissueSiteDetail?datasetId=gtex_v8

Returns all tissue site detail IDs, names, colors, sample counts.

Exon expression

GET /expression/medianExonExpression?gencodeId=ENSG00000139618.14&datasetId=gtex_v8

Transcript expression

GET /expression/medianTranscriptExpression?gencodeId=ENSG00000139618.14&datasetId=gtex_v8

Top expressed genes in a tissue

GET /expression/topExpressedGene?tissueSiteDetailId=Brain_Cortex&datasetId=gtex_v8&filterMtGene=true

Dynamic eQTL query for a gene–variant–tissue combination

GET /association/dyneqtl?variantId=chr1_1000000_A_G_b38&gencodeId=ENSG00000139618.14&tissueSiteDetailId=Whole_Blood&datasetId=gtex_v8

Tissue ID examples

Use the underscore-separated names exactly:

  • Whole_Blood, Liver, Brain_Cortex, Heart_Left_Ventricle
  • Muscle_Skeletal, Adipose_Subcutaneous, Lung, Skin_Sun_Exposed_Lower_leg

Example response (median gene expression)

{
  "data": [
    {
      "datasetId": "gtex_v8",
      "gencodeId": "ENSG00000139618.14",
      "geneSymbol": "BRCA2",
      "median": 4.523,
      "tissueSiteDetailId": "Whole_Blood",
      "unit": "TPM"
    },
    {
      "datasetId": "gtex_v8",
      "gencodeId": "ENSG00000139618.14",
      "geneSymbol": "BRCA2",
      "median": 12.87,
      "tissueSiteDetailId": "Testis",
      "unit": "TPM"
    }
  ],
  "paging_info": { "numberOfPages": 1, "page": 0, "maxItemsPerPage": 250 }
}

Rate Limits

  • No published rate limits
  • Reasonable request pacing recommended (~1-2 req/sec)
  • For bulk analysis, download full datasets from the GTEx Portal downloads page

Notes

  • These examples intentionally pin the historical GTEx v8 dataset. Current expression and single-tissue eQTL endpoints default to gtex_v10, while metasoft/dyneqtl default to v8. Specify the dataset and resolve gene IDs using its compatible GENCODE release; do not mix gene versions across datasets.
  • Gene IDs must be versioned GENCODE IDs (e.g., ENSG00000139618.14)
  • Use the gene search endpoint to resolve symbols to versioned GENCODE IDs
  • gencodeVersion=v26 corresponds to GTEx v8

Official schema: https://gtexportal.org/api/v2/openapi.json

CONTACT HAONAN

联系haonan

医疗 AI · 产品与独立开发

刘浩南

关注医疗 AI 从 demo 到真实落地,聚焦产品化、商业化与院内工作流效率提升。

12年医疗产研经验,大湾区头部医疗AI公司前产品总监,独立开发者

医疗 AI 产品化医疗 AI 商业化院内工作流效率
刘浩南的微信联系二维码
微信扫一扫,联系 haonan