get_data
Get gene, protein, and region data by querying gene IDs, proteins, genomic coordinates, or keywords. Supports batch queries and species filtering.
Instructions
智能数据获取接口 - 统一处理所有查询类型
自动识别查询类型:
"TP53" → 基因信息查询
"P04637" → 蛋白质详细信息查询
"cancer" → 基因搜索
"protein kinase" → 蛋白质功能搜索
"chr17:7565097-7590856" → 区域搜索
"TP53, BRCA1" → 批量基因信息
"breast cancer genes" → 智能搜索
"TP53 homologs" → 同源基因查询
"evolutionary conservation" → 进化分析查询
Args: query: 查询内容(可以是基因ID、蛋白质ID、搜索词、区域、ID列表、进化相关查询) query_type: 查询类型(auto/info/search/region/protein/gene_protein/ortholog/evolution) data_type: 数据类型(gene/protein/gene_protein/ortholog/evolution) format: 返回格式(simple/detailed/raw) species: 物种(默认:human,支持9606/human/mouse/rat等) max_results: 最大结果数(默认:20)
Returns: 查询结果字典,包含基因和/或蛋白质信息
Examples: # 基因信息查询 get_data("TP53") get_data("TP53", format="detailed")
# 批量查询
get_data(["TP53", "BRCA1", "BRCA2"])
# 区域搜索
get_data("chr17:7565097-7590856")
# 蛋白质查询
get_data("P04637", data_type="protein")
# 基因-蛋白质整合查询
get_data("TP53", data_type="gene_protein")
# 蛋白质功能搜索
get_data("tumor suppressor", data_type="protein")Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| query_type | No | auto | |
| data_type | No | gene | |
| format | No | simple | |
| species | No | human | |
| max_results | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| success | Yes | ||
| data | Yes | ||
| error | Yes | ||
| metadata | Yes |