跳到正文

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

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

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

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

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

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

正文

获取原文件

references/ucsc-genome.md

Overview

Provides programmatic access to genome annotations, gene tracks, sequence data, and other resources from the UCSC Genome Browser database.

Base URL

https://api.genome.ucsc.edu

Auth

None required (public, unauthenticated).

Response Format

JSON for all endpoints.

Key Endpoints

List available genomes

GET /list/ucscGenomes

Returns all genome assemblies (hg38, mm39, etc.) with descriptions.

List tracks for a genome

GET /list/tracks?genome=hg38

Returns all annotation tracks available for the specified assembly.

List chromosomes/contigs

GET /list/chromosomes?genome=hg38

Optional: add &track=<trackName> to limit to chroms with data in that track.

List tables in a track

GET /list/schema?genome=hg38&track=knownGene

Returns table schema including field names, types, and SQL create statement.

Get track data (annotations)

GET /getData/track?genome=hg38&track=knownGene&chrom=chr1&start=11873&end=14409

Parameters:

  • genome -- assembly name (required)
  • track -- track name (required)
  • chrom -- chromosome (optional, limits to one chrom)
  • start, end -- 0-based half-open coordinates (optional, requires chrom)
  • maxItemsOutput -- limit number of items returned (default and maximum 1,000,000; still request a smaller bounded result)

Get sequence

GET /getData/sequence?genome=hg38&chrom=chr1&start=11873&end=11893

Returns DNA sequence for the specified region. Coordinates are 0-based half-open.

Search for a term

GET /search?search=BRCA1&genome=hg38

Returns matching positions across tracks (gene names, accessions, etc.).

Get hub genome data

GET /list/hubGenomes?hubUrl=<hubURL>

Lists genomes available in a track hub.

Example calls

Get RefSeq gene annotations in a region

GET https://api.genome.ucsc.edu/getData/track?genome=hg38&track=ncbiRefSeq&chrom=chr17&start=43044295&end=43125483

Get DNA sequence

GET https://api.genome.ucsc.edu/getData/sequence?genome=hg38&chrom=chr7&start=117119148&end=117119178

Response example (sequence)

{
  "genome": "hg38",
  "chrom": "chr7",
  "start": 117119148,
  "end": 117119178,
  "dna": "atgcagatatcagcgatgcagatcgatcg..."
}

Response example (track data)

{
  "genome": "hg38",
  "track": "ncbiRefSeq",
  "chrom": "chr17",
  "start": 43044295,
  "end": 43125483,
  "ncbiRefSeq": [
    {
      "chrom": "chr17",
      "chromStart": 43044295,
      "chromEnd": 43125483,
      "name": "NM_007294.4",
      "strand": "-",
      "name2": "BRCA1",
      "exonCount": 23,
      "exonStarts": "43044295,43047642,...",
      "exonEnds": "43045802,43047703,..."
    }
  ]
}

Coordinate system

All coordinates are 0-based, half-open (standard BED format). This means start is inclusive and end is exclusive.

Rate Limits

  • No published hard rate limits
  • The API is intended for moderate programmatic use; bulk downloads should use the MySQL public server (genome-mysql.soe.ucsc.edu) or BigBed/BigWig file downloads
  • Requests returning very large result sets may be truncated via maxItemsOutput

Common genome values

  • hg38 -- Human GRCh38 (current)
  • hg19 -- Human GRCh37
  • mm39 -- Mouse GRCm39
  • mm10 -- Mouse GRCm38
  • dm6 -- Drosophila
  • danRer11 -- Zebrafish
  • sacCer3 -- Yeast

CONTACT HAONAN

联系haonan

医疗 AI · 产品与独立开发

刘浩南

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

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

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