界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
数据与研究 · SKILL.md

molecule-io-prep

molecule-io-prep

【数据与研究】Guides agents using datamol to construct, standardize, convert, validate, read, write, and tabularize molecules from SMILES, InChI, SMARTS, SELFIES, SDF, CSV, Excel, and dataframe inputs.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: molecule-io-prep description: "Guides agents using datamol to construct, standardize, convert, validate, read, write, and tabularize molecules from SMILES, InChI, SMARTS, SELFIES, SDF, CSV, Excel, and dataframe inputs." disable-model-invocation: true metadata: disco-role: operating license: Apache 2.0

Molecule IO and Preparation

Use this sub-skill when a task asks for datamol molecule loading, conversion, cleanup, tabular IO, bundled toy datasets, molecule properties, salts/solvents, neutralization, or molar unit conversion.

Route By Task

  • Build molecules from strings or RDKit Mol objects with dm.to_mol, dm.from_inchi, dm.from_selfies, and dm.from_smarts; use dm.to_mol for SMILES because no public dm.from_smiles API is exported.
  • Convert molecules with dm.to_smiles, dm.to_inchi, dm.to_selfies, dm.to_molblock, dm.to_pdbblock, dm.to_df, and dm.from_df.
  • Read or write molecule tables and files with dm.read_csv, dm.read_excel, dm.read_sdf, dm.to_sdf, dm.read_smi, dm.read_molblock, dm.read_mol2file, dm.open_df, and dm.save_df.
  • Clean molecules with dm.sanitize_mol, dm.standardize_mol, dm.fix_mol, dm.remove_salts_solvents, dm.keep_largest_fragment, and dm.to_neutral.
  • Manage molecule properties with dm.set_mol_props, dm.copy_mol_props, dm.clear_mol_props, and Mol.GetPropsAsDict().
  • Load small bundled datasets with dm.data.freesolv, dm.data.cdk2, dm.data.solubility, dm.data.chembl_drugs, and dm.data.chembl_samples.
  • Convert concentration units with dm.molar.molar_to_log and dm.molar.log_to_molar.

Local References

Boundaries

  • Stay in this sub-skill for molecule construction, format conversion, file IO, molecule cleanup, properties, bundled data, and molar helper functions.
  • Route fingerprints, arrays, distance matrices, clustering, and diversity picking to the fingerprints-similarity sub-skill after this sub-skill returns clean Mol objects or canonical SMILES.
  • Route conformers, alignment, scaffolds, fragments, reactions, and isomers to the structure-generation sub-skill after this sub-skill handles parsing and standardization.
  • Route rendering, molecule images, and highlight images to the visualization-utilities sub-skill.
我的收藏