metabolomics-workbench-database by davila7/claude-code-templates
npx skills add https://github.com/davila7/claude-code-templates --skill metabolomics-workbench-database代谢组学工作台是由美国国立卫生研究院共同基金资助、加州大学圣地亚哥分校托管的综合性平台,作为代谢组学研究数据的主要存储库。它提供对超过 4,200 项已处理研究(其中 3,790 多项公开可用)的程序化访问,通过 RefMet 提供标准化的代谢物命名法,并具备跨多种分析平台(GC-MS、LC-MS、NMR)的强大搜索功能。
当需要通过代谢组学工作台 REST API 查询代谢物结构、访问研究数据、标准化命名法、执行质谱搜索或检索基因/蛋白质-代谢物关联时,应使用此技能。
访问全面的代谢物信息,包括结构、标识符以及对外部数据库的交叉引用。
关键操作:
查询示例:
import requests
# 通过 PubChem CID 获取化合物信息
response = requests.get('https://www.metabolomicsworkbench.org/rest/compound/pubchem_cid/5281365/all/json')
# 以 PNG 格式下载分子结构
response = requests.get('https://www.metabolomicsworkbench.org/rest/compound/regno/11/png')
# 通过注册号获取化合物名称
response = requests.get('https://www.metabolomicsworkbench.org/rest/compound/regno/11/name/json')
按各种条件查询代谢组学研究并检索完整的实验数据集。
关键操作:
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
查询示例:
# 列出所有可用的公开研究
response = requests.get('https://www.metabolomicsworkbench.org/rest/study/study_id/ST/available/json')
# 获取研究摘要
response = requests.get('https://www.metabolomicsworkbench.org/rest/study/study_id/ST000001/summary/json')
# 检索实验数据
response = requests.get('https://www.metabolomicsworkbench.org/rest/study/study_id/ST000001/data/json')
# 查找包含特定代谢物的研究
response = requests.get('https://www.metabolomicsworkbench.org/rest/study/refmet_name/Tyrosine/summary/json')
使用 RefMet 数据库标准化代谢物名称,并访问跨越四个结构分辨率级别的系统分类。
关键操作:
查询示例:
# 标准化代谢物名称
response = requests.get('https://www.metabolomicsworkbench.org/rest/refmet/match/citrate/name/json')
# 按分子式查询
response = requests.get('https://www.metabolomicsworkbench.org/rest/refmet/formula/C12H24O2/all/json')
# 获取特定类别中的所有代谢物
response = requests.get('https://www.metabolomicsworkbench.org/rest/refmet/main_class/Fatty%20Acids/all/json')
# 检索完整的 RefMet 数据库
response = requests.get('https://www.metabolomicsworkbench.org/rest/refmet/all/json')
按质荷比(m/z)搜索化合物,可指定离子加合物和容差水平。
关键操作:
查询示例:
# 使用 M+H 加合物按 m/z 值搜索
response = requests.get('https://www.metabolomicsworkbench.org/rest/moverz/MB/635.52/M+H/0.5/json')
# 计算具有特定加合物的代谢物的精确质量
response = requests.get('https://www.metabolomicsworkbench.org/rest/moverz/exactmass/PC(34:1)/M+H/json')
# 跨 RefMet 数据库搜索
response = requests.get('https://www.metabolomicsworkbench.org/rest/moverz/REFMET/200.15/M-H/0.3/json')
使用 MetStat 上下文查找匹配特定实验条件的研究。
关键操作:
查询示例:
# 查找使用 LC-MS 的关于糖尿病的人类血液研究
response = requests.get('https://www.metabolomicsworkbench.org/rest/metstat/LCMS;POSITIVE;HILIC;Human;Blood;Diabetes/json')
# 查找所有包含酪氨酸的人类血液研究
response = requests.get('https://www.metabolomicsworkbench.org/rest/metstat/;;;Human;Blood;;;Tyrosine/json')
# 仅按分析方法筛选
response = requests.get('https://www.metabolomicsworkbench.org/rest/metstat/GCMS;;;;;;/json')
检索与代谢途径和代谢物代谢相关的基因和蛋白质数据。
关键操作:
查询示例:
# 按符号获取基因信息
response = requests.get('https://www.metabolomicsworkbench.org/rest/gene/gene_symbol/ACACA/all/json')
# 按 UniProt ID 检索蛋白质数据
response = requests.get('https://www.metabolomicsworkbench.org/rest/protein/uniprot_id/Q13085/all/json')
查找包含特定代谢物测量的所有研究:
首先使用 RefMet 标准化代谢物名称:
response = requests.get('https://www.metabolomicsworkbench.org/rest/refmet/match/glucose/name/json')
使用标准化名称搜索研究:
response = requests.get('https://www.metabolomicsworkbench.org/rest/study/refmet_name/Glucose/summary/json')
从特定研究检索实验数据:
response = requests.get('https://www.metabolomicsworkbench.org/rest/study/study_id/ST000001/data/json')
从质谱 m/z 值中识别潜在化合物:
使用适当的加合物和容差执行 m/z 搜索:
response = requests.get('https://www.metabolomicsworkbench.org/rest/moverz/MB/180.06/M+H/0.5/json')
从结果中审查候选化合物
检索候选化合物的详细信息:
response = requests.get('https://www.metabolomicsworkbench.org/rest/compound/regno/{regno}/all/json')
下载结构以进行确认:
response = requests.get('https://www.metabolomicsworkbench.org/rest/compound/regno/{regno}/png')
查找针对特定疾病和分析平台的代谢组学研究:
使用 MetStat 筛选研究:
response = requests.get('https://www.metabolomicsworkbench.org/rest/metstat/LCMS;POSITIVE;;Human;;Cancer/json')
从结果中审查研究 ID
访问详细的研究信息:
response = requests.get('https://www.metabolomicsworkbench.org/rest/study/study_id/ST{ID}/summary/json')
检索完整的实验数据:
response = requests.get('https://www.metabolomicsworkbench.org/rest/study/study_id/ST{ID}/data/json')
API 支持两种主要输出格式:
通过在 API URL 后附加 /json 或 /txt 来指定格式。当省略格式时,默认返回 JSON。
使用 RefMet 进行标准化:在搜索研究之前,始终通过 RefMet 标准化代谢物名称,以确保命名法的一致性
指定适当的加合物:执行 m/z 搜索时,请为您的分析方法使用正确的离子加合物类型(例如,正模式 ESI 使用 M+H)
设置合理的容差:使用适当的质量容差值(通常低分辨率质谱为 0.5 Da,高分辨率质谱为 0.01 Da)
缓存参考数据:考虑缓存常用的参考数据(RefMet 数据库、化合物信息)以最小化 API 调用
处理分页:对于大型结果集,请准备好处理响应中的多个数据结构
验证标识符:尽可能在多个数据库之间交叉引用代谢物标识符,以确保正确的化合物鉴定
详细的 API 参考文档可在 references/api_reference.md 中找到,包括:
当需要详细的 API 规范或使用不太常见的端点时,请加载此参考文件。
每周安装次数
144
代码仓库
GitHub 星标数
23.4K
首次出现
2026 年 1 月 21 日
安全审计
安装于
claude-code124
opencode117
cursor113
gemini-cli112
antigravity106
codex103
The Metabolomics Workbench is a comprehensive NIH Common Fund-sponsored platform hosted at UCSD that serves as the primary repository for metabolomics research data. It provides programmatic access to over 4,200 processed studies (3,790+ publicly available), standardized metabolite nomenclature through RefMet, and powerful search capabilities across multiple analytical platforms (GC-MS, LC-MS, NMR).
This skill should be used when querying metabolite structures, accessing study data, standardizing nomenclature, performing mass spectrometry searches, or retrieving gene/protein-metabolite associations through the Metabolomics Workbench REST API.
Access comprehensive metabolite information including structures, identifiers, and cross-references to external databases.
Key operations:
Example queries:
import requests
# Get compound information by PubChem CID
response = requests.get('https://www.metabolomicsworkbench.org/rest/compound/pubchem_cid/5281365/all/json')
# Download molecular structure as PNG
response = requests.get('https://www.metabolomicsworkbench.org/rest/compound/regno/11/png')
# Get compound name by registry number
response = requests.get('https://www.metabolomicsworkbench.org/rest/compound/regno/11/name/json')
Query metabolomics studies by various criteria and retrieve complete experimental datasets.
Key operations:
Example queries:
# List all available public studies
response = requests.get('https://www.metabolomicsworkbench.org/rest/study/study_id/ST/available/json')
# Get study summary
response = requests.get('https://www.metabolomicsworkbench.org/rest/study/study_id/ST000001/summary/json')
# Retrieve experimental data
response = requests.get('https://www.metabolomicsworkbench.org/rest/study/study_id/ST000001/data/json')
# Find studies containing a specific metabolite
response = requests.get('https://www.metabolomicsworkbench.org/rest/study/refmet_name/Tyrosine/summary/json')
Use the RefMet database to standardize metabolite names and access systematic classification across four structural resolution levels.
Key operations:
Example queries:
# Standardize a metabolite name
response = requests.get('https://www.metabolomicsworkbench.org/rest/refmet/match/citrate/name/json')
# Query by molecular formula
response = requests.get('https://www.metabolomicsworkbench.org/rest/refmet/formula/C12H24O2/all/json')
# Get all metabolites in a specific class
response = requests.get('https://www.metabolomicsworkbench.org/rest/refmet/main_class/Fatty%20Acids/all/json')
# Retrieve complete RefMet database
response = requests.get('https://www.metabolomicsworkbench.org/rest/refmet/all/json')
Search for compounds by mass-to-charge ratio (m/z) with specified ion adducts and tolerance levels.
Key operations:
Example queries:
# Search by m/z value with M+H adduct
response = requests.get('https://www.metabolomicsworkbench.org/rest/moverz/MB/635.52/M+H/0.5/json')
# Calculate exact mass for a metabolite with specific adduct
response = requests.get('https://www.metabolomicsworkbench.org/rest/moverz/exactmass/PC(34:1)/M+H/json')
# Search across RefMet database
response = requests.get('https://www.metabolomicsworkbench.org/rest/moverz/REFMET/200.15/M-H/0.3/json')
Use the MetStat context to find studies matching specific experimental conditions.
Key operations:
Example queries:
# Find human blood studies on diabetes using LC-MS
response = requests.get('https://www.metabolomicsworkbench.org/rest/metstat/LCMS;POSITIVE;HILIC;Human;Blood;Diabetes/json')
# Find all human blood studies containing tyrosine
response = requests.get('https://www.metabolomicsworkbench.org/rest/metstat/;;;Human;Blood;;;Tyrosine/json')
# Filter by analytical method only
response = requests.get('https://www.metabolomicsworkbench.org/rest/metstat/GCMS;;;;;;/json')
Retrieve gene and protein data associated with metabolic pathways and metabolite metabolism.
Key operations:
Example queries:
# Get gene information by symbol
response = requests.get('https://www.metabolomicsworkbench.org/rest/gene/gene_symbol/ACACA/all/json')
# Retrieve protein data by UniProt ID
response = requests.get('https://www.metabolomicsworkbench.org/rest/protein/uniprot_id/Q13085/all/json')
To find all studies containing measurements of a specific metabolite:
First standardize the metabolite name using RefMet:
response = requests.get('https://www.metabolomicsworkbench.org/rest/refmet/match/glucose/name/json')
Use the standardized name to search for studies:
response = requests.get('https://www.metabolomicsworkbench.org/rest/study/refmet_name/Glucose/summary/json')
Retrieve experimental data from specific studies:
response = requests.get('https://www.metabolomicsworkbench.org/rest/study/study_id/ST000001/data/json')
To identify potential compounds from mass spectrometry m/z values:
Perform m/z search with appropriate adduct and tolerance:
response = requests.get('https://www.metabolomicsworkbench.org/rest/moverz/MB/180.06/M+H/0.5/json')
Review candidate compounds from results
Retrieve detailed information for candidate compounds:
response = requests.get('https://www.metabolomicsworkbench.org/rest/compound/regno/{regno}/all/json')
Download structures for confirmation:
response = requests.get('https://www.metabolomicsworkbench.org/rest/compound/regno/{regno}/png')
To find metabolomics studies for a specific disease and analytical platform:
Use MetStat to filter studies:
response = requests.get('https://www.metabolomicsworkbench.org/rest/metstat/LCMS;POSITIVE;;Human;;Cancer/json')
Review study IDs from results
Access detailed study information:
response = requests.get('https://www.metabolomicsworkbench.org/rest/study/study_id/ST{ID}/summary/json')
Retrieve complete experimental data:
response = requests.get('https://www.metabolomicsworkbench.org/rest/study/study_id/ST{ID}/data/json')
The API supports two primary output formats:
Specify format by appending /json or /txt to API URLs. When format is omitted, JSON is returned by default.
Use RefMet for standardization : Always standardize metabolite names through RefMet before searching studies to ensure consistent nomenclature
Specify appropriate adducts : When performing m/z searches, use the correct ion adduct type for your analytical method (e.g., M+H for positive mode ESI)
Set reasonable tolerances : Use appropriate mass tolerance values (typically 0.5 Da for low-resolution, 0.01 Da for high-resolution MS)
Cache reference data : Consider caching frequently used reference data (RefMet database, compound information) to minimize API calls
Handle pagination : For large result sets, be prepared to handle multiple data structures in responses
Validate identifiers : Cross-reference metabolite identifiers across multiple databases when possible to ensure correct compound identification
Detailed API reference documentation is available in references/api_reference.md, including:
Load this reference file when detailed API specifications are needed or when working with less common endpoints.
Weekly Installs
144
Repository
GitHub Stars
23.4K
First Seen
Jan 21, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykWarn
Installed on
claude-code124
opencode117
cursor113
gemini-cli112
antigravity106
codex103
lark-cli 共享规则:飞书资源操作指南与权限配置详解
39,000 周安装