本文へスキップ
Skillpedia
分析とスプレッドシート15k · #11046

chemistry-rdkit

できること

このスキルは、Pythonで化学構造を扱うための規則を示します。分子解析や創薬の研究を行う化学者や研究者向けです。

使う場面

  • ✓SMILES文字列で表された分子を扱うとき。
  • ✓分子量や親油性などの分子の性質を計算したいとき。
  • ✓分子同士を比較したり、化学的な部分構造を検索したりする必要があるとき。

スキルのリンク

https://github.com/aiming-lab/AutoResearchClaw/blob/main/.claude/skills/chemistry-rdkit/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/aiming-lab/AutoResearchClaw/blob/main/.claude/skills/chemistry-rdkit/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“これら10個のSMILES文字列をLipinskiのルール・オブ・ファイブで確認し、通過したものを一覧にしてください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

エージェントはRDKitライブラリを使い、分子を読み込み、記述子とフィンガープリントを計算し、類似度で分子を比較し、構造のパターンを検索します。無効なSMILES文字列は分子を返さないので、最初に各入力を確認します。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

RDKit Cheminformatics Best Practice

Molecular I/O

  1. Create molecules from SMILES: mol = Chem.MolFromSmiles('CCO')
  2. Always check for None: MolFromSmiles returns None on invalid input
  3. Convert to canonical SMILES: Chem.MolToSmiles(mol)
  4. Read SDF files: suppl = Chem.SDMolSupplier('file.sdf')
  5. Read SMILES files: suppl = Chem.SmilesMolSupplier('file.smi')
  6. Write molecules: writer = Chem.SDWriter('output.sdf')

Molecular Descriptors

  1. Molecular weight: Descriptors.MolWt(mol)
  2. LogP (lipophilicity): Descriptors.MolLogP(mol)
  3. TPSA (polar surface area): Descriptors.TPSA(mol)
  4. H-bond donors/acceptors: Descriptors.NumHDonors(mol), Descriptors.NumHAcceptors(mol)
  5. Rotatable bonds: Descriptors.NumRotatableBonds(mol)
  6. Lipinski Rule of 5: MW <= 500, LogP <= 5, HBD <= 5, HBA <= 10

Fingerprints and Similarity

  1. Morgan (circular) fingerprints: AllChem.GetMorganFingerprintAsBitVect(mol, radius=2, nBits=2048)
  2. RDKit fingerprints: Chem.RDKFingerprint(mol)
  3. MACCS keys: MACCSkeys.GenMACCSKeys(mol)
  4. Tanimoto similarity: DataStructs.TanimotoSimilarity(fp1, fp2)
  5. Use radius=2 (ECFP4 equivalent) as default for most applications
  6. For virtual screening, Tanimoto > 0.7 suggests structural similarity

Substructure Search

  1. SMARTS patterns: pattern = Chem.MolFromSmarts('[OH]')
  2. Check match: mol.HasSubstructMatch(pattern)
  3. Get all matches: mol.GetSubstructMatches(pattern)
  4. Common SMARTS: [#6](=O)[OH] (carboxylic acid), [NH2] (primary amine)
  5. Filter compound libraries by functional group presence

Property Calculation Patterns

  1. Batch processing: iterate over SDMolSupplier, skip None entries
  2. Use Chem.Descriptors.descList for all available descriptors
  3. For ADMET filtering, calculate Lipinski, Veber, and PAINS filters
  4. Generate 3D coordinates: AllChem.EmbedMolecule(mol, AllChem.ETKDG())
  5. Minimize energy: AllChem.MMFFOptimizeMolecule(mol)

Common Pitfalls

  1. Always sanitize molecules (default behavior) — disable only when needed
  2. Add hydrogens explicitly for 3D work: Chem.AddHs(mol)
  3. Handle stereochemistry: use Chem.AssignStereochemistry(mol)
  4. Large SDF files: use ForwardSDMolSupplier for memory efficiency
  5. Kekulization errors usually indicate invalid SMILES input
よくある質問

ルール・オブ・ファイブとは何ですか?

分子量、親油性、水素結合に関する簡単な上限のことで、このスキルは薬になりやすい分子かを判断するために使います。

類似度スコアは何を意味しますか?

Tanimotoスコアが0.7を超えると、分子は構造的に似ていると示唆されます。

無効な分子の場合はどうなりますか?

このスキルがそれを確認します。無効な入力はエラーではなく、分子を返さないためです。

詳細

作者による元の説明

Computational chemistry with RDKit for molecular analysis, descriptors, fingerprints, and substructure search. Use when working with SMILES, drug discovery, or cheminformatics tasks.

repo: aiming-lab/AutoResearchClaw

人気

GitHubのスター
15k
ランキング
#11046
ライセンス
MIT
更新日
2026/8/19

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル