Skip to content
cccskills
FreePublished on GitHub

standardize-chemical-structures

离线批量解析、标准化、去盐、提取 parent、检查异常并按原始/标准化/parent 结构分组。用于清洗 SMILES、CSV、SDF、MolBlock,检查价态/立体化学/混合物,或为描述符、相似性检索和建模准备结构数据。

The English summary is being prepared. Showing the original description.

See how to install

Files included (7)

  • SKILL.md3.3 KB
  • agents/openai.yaml328 B
  • references/输入输出与标准化边界.md8.4 KB
  • scripts/requirements.txt49 B
  • scripts/standardization_output_contract.py13.1 KB
  • scripts/standardize_structures.py30.9 KB
  • scripts/validate_output.py1.6 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

化学结构标准化与质量检查

把本地结构数据转换为可审计的标准化结果。始终保留原始结构,显式展示失败、派生 parent、重复关系和人工复核点。

执行流程

  1. 确认用户目标、输入文件/结构和期望 profile。未指定时使用 chembl-pipeline。
  2. 检查本地依赖:
python -c "import rdkit, chembl_structure_pipeline; print(rdkit.__version__, chembl_structure_pipeline.__version__)"
  1. 运行确定性脚本。文件输入示例:
python scripts/standardize_structures.py \
  --input compounds.csv \
  --input-format csv \
  --structure-column structure \
  --id-column id \
  --profile chembl-pipeline \
  --output structures-qc.json \
  --csv-summary structures-qc.csv

直接输入示例:

python scripts/standardize_structures.py \
  --smiles 'CCO' --record-id ethanol \
  --smiles 'CO(C)C' --record-id invalid \
  --profile rdkit-basic \
  --output structures-qc.json
  1. 校验 JSON:
python scripts/validate_output.py structures-qc.json
  1. 读取输入输出与标准化边界,解释 disposition、QC、重复分组和 parent 边界。
  2. 向用户总结总数、ready/review/rejected、关键失败、重复组和人工确认项,并提供输出路径。

Profile 选择

  • rdkit-basic:处理步骤仅使用 RDKit Cleanup 与 ChargeParent,适合轻量本地清洗;当前发布环境仍按 requirements.txt 同时安装两个固定依赖,以便显式切换 profile。
  • chembl-pipeline:使用 ChEMBL Checker、Standardizer、GetParent;该 Pipeline 本身基于 RDKit,不得称为独立引擎交叉验证。
  • 一次运行只选择一个 profile。不得无条件串联并覆盖结果。

强制规则

  • 原始 id、来源和 original_structure 必须逐条保留。
  • 空文件或零条记录必须失败关闭;不得生成“0 条成功”的结果。
  • 无法解析的记录必须输出并标为 rejected;不得生成伪 canonical SMILES。
  • 对混合物/复杂多组分和聚合物不生成单一 parent。
  • parent 是派生表示;同一 parent 不代表盐型、游离形式或实物样品相同。
  • 未知立体化学、金属、同位素、混合物、聚合物/V3000 必须显式进入人工复核。
  • ChEMBL GetParent 返回排除标记时必须进入人工复核,不得标为 ready_for_downstream。
  • ready_for_downstream 只表示通过当前数据规则,不表示身份、活性、安全性或科学结论已确认。
  • 不查询公共数据库,不抓取 ChEMBL 活性;需要身份补充时单独使用 resolve-chemical-identities。
  • 不输出 API Key、Authorization、Cookie、Token 或其他凭证。
  • 不自动判断药效、毒性、活性、可合成性、实验安全或结构确证。

退出码

  • 0:完成且没有 rejected 记录;
  • 2:已写出完整结果,但至少一条记录 rejected;
  • 3:依赖或输入加载失败。

退出码不是科学结论;始终查看 JSON 记录和人工复核项。

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

中文购车决策助手初始化与验收 Skill。用于安装、配置、启动、恢复或诊断仓库内完整前后端,引导用户选择自己的 AI Native 应用开发底座 Workspace,私密配置 Agent Plan Key,真实调用专业数据集核验 1–3 款候选车型、配置与城市车系月度数据,并完成应用开发底座和浏览器验收。用户提出“初始化购车决策助手”“安装选车网站”“配置汽车专业数据”“启动购车助手”或排查该应用时使用。

The English summary is being prepared. Showing the original description.

volcengine/ai-app-lab2.5KUpdated Sep 7, 2026

理解化学科研自然语言需求,生成带来源绑定的 ResearchIntent,并通过本地确定性校验路由到七个化学 Skill、受控 Skill 链或 Workflow A/B。用于复杂、多步、模糊、需要自动编排,或可能联网、产生费用和发送数据的化学身份、结构、特征、分子库、反应和已有路线任务;毒性预测、路线生成、实验安全和放大审批不支持。

The English summary is being prepared. Showing the original description.

volcengine/ai-app-lab2.5KUpdated Sep 7, 2026

对已标准化化合物确定性计算受控二维描述符、Morgan/RDKit/MACCS 指纹和数据集质量画像。用于准备分子特征、生成指纹,或检查特征缺失、常数、异常和分布。

The English summary is being prepared. Showing the original description.

volcengine/ai-app-lab2.5KUpdated Sep 7, 2026

整理和审查结构化化学反应,保留原始记录并检查参与物、角色、产率、重复、守恒和 ORD 合同。用于清洗 reaction SMILES、ORD 或反应表格。

The English summary is being prepared. Showing the original description.

volcengine/ai-app-lab2.5KUpdated Sep 7, 2026

中文个人投资助手初始化 Skill。引导用户确认真实股票、市场、关注偏好和盘后监控安排,检查 Agent Plan Harness,安装并启动仓库内完整前后端,导入个性化配置,真实调用 DataPro、豆包搜索和 Agent Plan 模型生成首批个股简评与盘后风险摘要,并完成可用性验收。用户提出“帮我初始化个人投资助手”“安装投资助手”“配置我的关注股票”“让我打开网站就有内容”或需要恢复、诊断该应用时使用。

The English summary is being prepared. Showing the original description.

volcengine/ai-app-lab2.5KUpdated Sep 7, 2026

保守解析化学名称、SMILES、InChI、InChIKey、PubChem CID、ChEMBL ID 或 CAS RN,保留多源证据、相关形式、歧义和冲突。用于确认化学记录是谁、对齐开放数据库,或在结构标准化前选择候选。

The English summary is being prepared. Showing the original description.

volcengine/ai-app-lab2.5KUpdated Sep 7, 2026

See all skills by volcengine

Report a problem with this skill