Duaer

入门

在 Duaer 里检索基因

在 Duaer 里用 Duaer Data 检索基因。一次成功查询 1 额度。符号可用于蛋白 Gene。本页含完整英文调用技能。

能拿到什么

Duaer 数据里的「基因」检索公开基因库。一次成功查询 1 额度。

从节点创建器的 Duaer 数据分类 选「基因」。符号可填进 基因和蛋白 的 Gene。

在画布里检索

  1. 打开节点创建器,点「Duaer 数据」,再选「基因」。
  2. 用 Words 即可(新节点默认 INS)。Symbol、Gene ID、Species 可选。
  3. Limit 默认 10,最大 20。点执行此步骤。

成功扣 1 额度。把 symbol 用作蛋白 Gene。正式运行的交付进 数据池。

用 API 调用

  • GET https://api.duaer.com/v1/data/genes?...
  • Authorization: Bearer <Duaer key>
  • 字段可组合;至少填一个检索字段。

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

调用技能(英文)

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

---
name: duaer-genes
description: >-
  Duaer genes. MyGene.info genes by words, official symbol, or NCBI Gene id, with name, aliases, Ensembl id, species, and map location.
  One successful search uses 1 Duaer credit.
---

# Duaer genes

Duaer genes searches MyGene.info for genes. It uses one search field: `id` first, then `symbol`, then `q`.

## When to use

- Turn a gene symbol or name into an NCBI Gene id and Ensembl id.
- Check aliases and the chromosome location of a gene.
- Get the official symbol before searching proteins or variants.

## When not to use

- Protein function, disease, and location. Use https://skills.duaer.com/proteins.md.
- Variants in a gene. Use https://skills.duaer.com/variants.md.
- Official HGNC nomenclature records. Use https://skills.duaer.com/hgnc.md.

## Call

`GET https://api.duaer.com/v1/data/genes?symbol=INS`

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 `q`, `symbol`, or `id`. When you send more than one, Duaer uses `id` if it is a number, else `symbol`, else `q`.

- `q` — Words in the gene symbol, name, or summary.
- `symbol` — Official gene symbol, such as `INS`.
- `id` — NCBI Gene id, such as `3630`. Reuse `geneId` from a result for an exact lookup.
- `species` — Optional. Species for `q` and `symbol`, such as `human`, `mouse`, or a taxonomy id. Default `human`. Ignored with `id`.
- `limit` — Optional. Rows to return, from 1 to 20. Default 10.

## Examples

- `GET https://api.duaer.com/v1/data/genes?symbol=INS` — human insulin gene.
- `GET https://api.duaer.com/v1/data/genes?symbol=Trp53&species=mouse` — mouse p53 gene.
- `GET https://api.duaer.com/v1/data/genes?id=3630` — one gene by NCBI Gene id.

## Result

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

- `geneId` — NCBI Gene id.
- `symbol`, `name` — official symbol and full name.
- `aliases` — other symbols.
- `ensemblId` — Ensembl gene id.
- `taxId` — NCBI taxonomy id of the species.
- `mapLocation` — cytogenetic location, such as `11p15.5`.
- `typeOfGene` — gene type, such as `protein-coding`.

Use `symbol` as `gene` in https://skills.duaer.com/proteins.md and https://skills.duaer.com/variants.md.

For tissue expression, use https://skills.duaer.com/expression.md.

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/proteins.md — Duaer proteins
- https://skills.duaer.com/variants.md — Duaer variants
- https://skills.duaer.com/pathways.md — Duaer pathways
- https://skills.duaer.com/gene-ontology.md — Duaer Gene Ontology
- https://skills.duaer.com/expression.md — Duaer expression
- https://skills.duaer.com/atlas.md — Duaer tissue atlas
- https://skills.duaer.com/geo.md — Duaer GEO
- https://skills.duaer.com/drug-gene.md — Duaer drug–gene
- https://skills.duaer.com/life-research-brief.md — Digital employee: Life research brief

常见问题

基因符号用在哪里?

把结果里的 symbol 填进 Duaer 基因和蛋白的 Gene 字段。

同组