Duaer

入门

在 Duaer 里检索 GWAS

在 Duaer 里用 Duaer Data 经 GWAS Catalog REST API v2 检索顶关联。一次成功查询 1 额度。本页含完整英文调用技能。

能拿到什么

Duaer 数据里的「GWAS」返回 GWAS Catalog 顶关联(位点、基因、性状、p 值)。一次成功查询 1 额度。

从节点创建器的 Duaer 数据分类 选「GWAS」。变异见 变异。

在画布里检索

  1. 打开节点创建器,点「Duaer 数据」,再选「GWAS」。
  2. 填 Words(新节点默认 TCF7L2),或 Gene / Rs id / Trait。
  3. Limit 默认 10,最大 20。点执行此步骤。

成功扣 1 额度。正式运行的交付进 数据池。

用 API 调用

  • GET https://api.duaer.com/v1/data/gwas?...
  • Authorization: Bearer <Duaer key>
  • 必须提供 words、gene、rsId 或 trait。

密钥见 Duaer 公开 API 的身份验证。下方是英文技能。

调用技能(英文)

调用这项数据的技能。正文保持英文。

---
name: duaer-gwas
description: >-
  Duaer GWAS. Search GWAS Catalog associations (REST API v2).
  One successful search uses 1 Duaer credit.
---

# Duaer GWAS

Search GWAS Catalog associations (REST API v2). Data comes from GWAS Catalog.

## When to use

- Find GWAS associations for a gene, variant, or trait.
- Check p-values and effect sizes for an rs id.

## When not to use

- Clinical significance of a variant. Use https://skills.duaer.com/clinvar.md.

## Call

`GET https://api.duaer.com/v1/data/gwas?words=TCF7L2&limit=10`

Header: `Authorization: Bearer <Duaer key>`

Use an account key or a model API key.

Get a Duaer key: https://skills.duaer.com/keys.md

## Parameters

Provide `words`, `gene`, `rsId`, or `trait` (or combine).

- `words` — gene symbol or rs id (`rs…`).
- `gene` — Optional. Mapped gene symbol.
- `rsId` — Optional. Variant rs id (`rs7903146`).
- `trait` — Optional. EFO trait text.
- `limit` — Optional. From 1 to 20. Default 10.

## Examples

- `GET https://api.duaer.com/v1/data/gwas?words=TCF7L2&limit=10` — GWAS associations for TCF7L2.

## Result

The response is `{ "items": [...] }`. Each item has `source` (`GWAS Catalog`), `title`, `url`, and `summary`, plus:

- `associationId`, `rsId`, `mappedGenes`, `efoTraits`, `reportedTrait`, `pValue`, `beta`, `accessionId`, `pubmedId`, `locations` — text.

Fields without a value are empty strings.

## Credits

A successful search uses 1 credit, even when it finds nothing.
Wrong input or a missing search field returns 400 with a message and uses 0.
A failed upstream search returns 503 and uses 0.
No remaining credits returns 402 and does not search.
A missing key returns 401.

## Related

- https://skills.duaer.com/variants.md — Duaer variants
- https://skills.duaer.com/genes.md — Duaer genes
- https://skills.duaer.com/diseases.md — Duaer diseases
- https://skills.duaer.com/adverse-events.md — Duaer adverse events

常见问题

和 Variants 有什么区别?

GWAS 是文献策展的性状关联;Variants 走 MyVariant 注释型变异查询。

同组