Communitygithub.com

rdkit

分子レベルの精密制御を実現する cheminformatics ツールキット。SMILES/SDF パーシング、記述子(MW、LogP、TPSA)、フィンガープリント、部分構造検索、2D/3D 生成、類似性、反応に対応。標準的なワークフローには、よりシンプルなインターフェースを提供する datamol(RDKit のラッパー)を使用。高度な制御、カスタムサニタイゼーション、特殊アルゴリズムには rdkit を使用。

rdkit とは?

RDKit は、Python API を通じて分子の解析と操作を行うための包括的な cheminformatics ライブラリです。このスキルは、分子構造の読み書き、記述子の計算、フィンガープリンティング、部分構造検索、化学反応、2D/3D 座標生成、分子可視化など、創薬や計算化学の研究に必要な機能を提供します。現在のベースラインは RDKit 2026.03.3 で、インストールには uv や conda-forge が推奨されています。スキルには12の主要機能領域(分子 I/O、サニタイゼーション、解析、記述子、フィンガープリント、部分構造検索、化学反応、座標生成、可視化、分子修飾、ハッシュ/標準化、ファーマコフォア)と、よくある落とし穴への対処法、さらに詳細な API リファレンスや SMARTS パターン集などのリファレンスドキュメントが含まれています。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/K-Dense-AI/scientific-agent-skills/tree/main/skills/rdkit

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

RDKit Cheminformatics ツールキット

概要

RDKit は、分子解析と操作のための包括的な cheminformatics ライブラリであり、Python API を提供します。このスキルは、分子構造の読み書き、記述子の計算、フィンガープリンティング、部分構造検索、化学反応、2D/3D 座標生成、分子可視化のガイダンスを提供します。創薬、計算化学、および cheminformatics 研究タスクにこのスキルを使用してください。

現在のベースライン(2026-06-07 確認): RDKit 2026.03.3 が最新の GitHub/PyPI リリースです(PyPI 上では rdkit 2026.3.3)。公式インストールドキュメントでは、ほとんどのユーザーに conda-forge を引き続き推奨しています。クロスプラットフォームの PyPI ホイールは rdkit パッケージ名で公開されています。rdkit-pypi は古い PyPI パッケージ名であり、レガシー環境を維持する場合にのみ使用してください。

インストールとセットアップ

既存の Python 環境にインストールする場合は uv を使用します:

uv pip install rdkit

再現可能な化学環境、特にコンパイル済みの科学パッケージを混在させる場合には、conda-forge が引き続き推奨される方法です:

conda create -c conda-forge -n my-rdkit-env rdkit
conda activate my-rdkit-env

同じ環境に conda の rdkit と PyPI の rdkit/rdkit-pypi の両方をインストールしないでください(パッケージの動作を意図的にデバッグする場合を除く)。混在インストールでは、どのバイナリ拡張がインポートされているかが不明確になる可能性があります。

中核機能

12 の機能領域とそれぞれのコード例は、references/core_capabilities.md に文書化されています:

#領域カバー内容
1分子 I/O と作成SMILES、MOL ファイルとブロック、InChI、SDF および SMILES サプライヤー、マルチスレッド読み取り、ライター
2サニタイゼーションと検証自動サニタイゼーションの無効化、手動および部分的なサニタイゼーション、問題の事前検出
3解析と特性原子と結合の反復、環情報と SSSR、キラリティーと立体化学、フラグメント
4記述子MW、LogP、TPSA、水素結合供与体/受容体、回転可能結合、芳香環、一括計算、薬物類似性
5フィンガープリントと類似性トポロジカル、Morgan/ECFP(rdFingerprintGenerator 経由)、MACCS、原子対、トーション、Avalon;Tanimoto などのメトリクス;Butina クラスタリング
6部分構造検索SMARTS クエリ、マッチ取得、共通パターンのライブラリ
7化学反応反応 SMARTS、反応の適用、反応フィンガープリント
82D および 3D 座標描画、テンプレートアラインメント、ETKDG 埋め込み、力場最適化、RMSD、制約付き埋め込み
9可視化単一およびグリッド画像、部分構造ハイライト、カスタム描画オプション、Jupyter 統合、フィンガープリントビット環境
10分子修飾明示的水素、Kekulization、芳香族性、部分構造置換、電荷中和
11ハッシュと標準化Murcko スキャフォールドと正準ハッシュ、領域異性体ハッシュ、データ拡張のためのランダム化 SMILES
12ファーマコフォアと3D 特徴特徴ファクトリーと特徴抽出

ワークフローの実例、パフォーマンス、スレッドセーフ、バージョン依存性に関する注意事項は、references/workflows_and_best_practices.md にあります。

共有データにはポータブルな交換フォーマット(SMILES、SDF)を優先的に使用してください。ローカルキャッシュには、RDKit のバイナリ分子表現が汎用 pickle よりも適しています。

よくある落とし穴

  1. None のチェックを忘れない: パース後は常に分子を検証する
  2. サニタイゼーションの失敗: DetectChemistryProblems() を使用してデバッグする
  3. 水素の欠落: 水素に依存するプロパティを計算する場合は AddHs() を使用する
  4. 2D と 3D: 可視化や 3D 解析の前に適切な座標を生成する
  5. SMARTS マッチングルール: 未指定のプロパティは何にでもマッチすることを覚えておく
  6. MolSuppliers のスレッドセーフ: サプライヤーオブジェクトをスレッド間で共有しない

リソース

references/

このスキルには、詳細な API リファレンスドキュメントが含まれています:

  • api_reference.md - 機能別に整理された RDKit モジュール、関数、クラスの包括的なリスト
  • descriptors_reference.md - 使用可能な分子記述子の完全なリスト(説明付き)
  • smarts_patterns.md - 官能基や構造的特徴のための一般的な SMARTS パターン

特定の API の詳細、パラメータ情報、またはパターンの例が必要な場合は、これらのリファレンスを読み込んでください。

references/ および scripts/ にリストされているファイルのみが、バンドルされたローカルリソースです。rdkit、datamol、scipy、sklearn などの名前は、このスキルのローカルファイルではなく、インストール可能な Python パッケージを指します。

scripts/

一般的な RDKit ワークフローのためのサンプルスクリプト:

  • molecular_properties.py - 包括的な分子特性と記述子を計算する
  • similarity_search.py - フィンガープリントベースの類似性スクリーニングを実行する
  • substructure_filter.py - 部分構造パターンで分子をフィルタリングする

これらのスクリプトは直接実行するか、カスタムワークフローのテンプレートとして使用できます。

引用について

このスキルは、K-Dense による Scientific Agent Skills の一部です。これが原稿、レポート、プレゼンテーション、またはコードリリースに実質的に貢献した場合は、参考文献またはソフトウェアセクションに論文を追加し、その旨をユーザーに伝えてください:

Kassis, T., Agarwal, V., He, Y., Patel, D., & Brueckner, A. M. (2026). Scientific Agent Skills: A Library of Procedural Knowledge for Research Agents. arXiv:2609.00065. https://doi.org/10.48550/arXiv.2609.00065

常に最新バージョンを引用してください。DOI と https://arxiv.org/abs/2609.00065 は最新の arXiv バージョンに解決されるため、v1 などのバージョンサフィックスを追加しないでください。ネットワークアクセスが可能な場合は、https://arxiv.org/abs/2609.00065(または http://export.arxiv.org/api/query?id_list=2609.00065)を取得してから参考文献を書き、そのレコードから著者リスト、年、バージョンを取得してください。レコードにジャーナル参照や出版社 DOI が記載されている場合は、代わりに出版バージョンを引用してください。

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

adaptyv

How to use the Adaptyv Bio Foundry API and Python SDK for protein experiment design, submission, and results retrieval. Use this skill whenever the user mentions Adaptyv, Foundry API, protein binding assays, protein screening experiments, BLI/SPR assays, thermostability assays, or wants to submit protein sequences for experimental characterization. Also trigger when code imports `adaptyv`, `adaptyv_sdk`, or `FoundryClient`, or references `foundry-api-public.adaptyvbio.com`.

aeon

This skill should be used for time series machine learning tasks including classification, regression, clustering, forecasting, anomaly detection, segmentation, and similarity search. Use when working with temporal data, sequential patterns, or time-indexed observations requiring specialized algorithms beyond standard ML approaches. Particularly suited for univariate and multivariate time series analysis with scikit-learn compatible APIs.

alphagenome

Look up precomputed AlphaGenome Atlas effects for any GRCh38 single-nucleotide variant (AVI score with Phred and 18 SHAP feature attributions, plus raw and quantile scores for RNA-seq, DNase, ATAC, ChIP-TF, ChIP-histone, CAGE, PRO-cap, splicing, polyadenylation and contact-map tracks), score variants or scan windows on demand with the AlphaGenome model for human and mouse (variant scoring, in silico mutagenesis, REF-versus-ALT track prediction), and build Atlas website deep links. Use when the user mentions AlphaGenome, AlphaGenome Atlas, AVI or AlphaGenome Variant Impact, DeepMind variant effect prediction, or wants to prioritise or mechanistically interpret non-coding, regulatory, splicing, enhancer, promoter, or chromatin-accessibility effects of SNVs from a VCF, credible set, or region. Research use only; not a clinical tool.

analytical-method-validation

Plan, execute, and document validation, verification, and transfer of analytical procedures under the governing framework - ICH Q2(R2) and Q14, USP <1220>/<1225>/<1226>, ICH M10 bioanalytical, CLSI EP, or ISO/IEC 17025. Use for HPLC, LC-MS/MS, GC, CE, ICP-MS, dissolution, qNMR, qPCR, NIR, and ligand binding or cell-based assays whenever the question is whether a procedure is fit for its intended purpose. Triggers include

anndata

Data structure for annotated matrices in single-cell analysis. Use when working with .h5ad files or integrating with the scverse ecosystem. This is the data format skill—for analysis workflows use scanpy; for probabilistic models use scvi-tools; for population-scale queries use cellxgene-census.

arbor

Autonomously improve a real artifact (code, training recipe, agent harness, data pipeline, prompt) against an objective and an evaluator, using Hypothesis Tree Refinement (HTR) from the Arbor paper. Use this whenever someone wants to iteratively optimize something over many experiments without overfitting — e.g.

arboreto

Infer gene regulatory networks (GRNs) from gene expression data using scalable algorithms (GRNBoost2, GENIE3). Use when analyzing transcriptomics data (bulk RNA-seq, single-cell RNA-seq) to identify transcription factor-target gene relationships and regulatory interactions. Supports distributed computation for large-scale datasets.

astropy

Core Python library for astronomy and astrophysics workflows that need Astropy APIs, including units/quantities, coordinates, FITS I/O, tables, time systems, WCS, and cosmology. Use when implementing or debugging astronomical data analysis code with Astropy.

autoskill

Observe the user

benchling-integration

Benchling Python SDK and REST API integration for registry entities, inventory, ELN entries, workflows, Benchling Apps, and Data Warehouse queries. Use when automating lab data with benchling-sdk or the v2 API.

bgpt-paper-search

Search scientific papers and retrieve structured experimental data extracted from full-text studies via the BGPT MCP server. Returns 25+ fields per paper including methods, results, sample sizes, quality scores, and conclusions. Use for literature reviews, evidence synthesis, and finding experimental details not available in abstracts alone.

bids

>

biopython

Comprehensive molecular biology toolkit. Use for sequence manipulation, file parsing (FASTA/GenBank/PDB), phylogenetics, and programmatic NCBI/PubMed access (Bio.Entrez). Best for batch processing, custom bioinformatics pipelines, BLAST automation. For quick lookups use gget; for multi-service integration use bioservices.

bioservices

Unified Python interface to 40+ bioinformatics services. Use when querying multiple databases (UniProt, KEGG, ChEMBL, Reactome) in a single workflow with consistent API. Best for cross-database analysis, ID mapping across services. For quick single-database lookups use gget; for sequence/file manipulation use biopython.

bulk-rnaseq

End-to-end bulk RNA-seq orchestrator — takes raw FASTQ reads through QC and trimming (FastQC, fastp/Trim Galore), alignment and quantification (STAR, Salmon, featureCounts), assembles a gene-level counts matrix, then hands off to differential expression (pydeseq2), pathway/GSEA enrichment (pathway-enrichment), and publication figures (scientific-visualization). Use whenever the user has bulk RNA-seq reads or quant output and wants a complete, reproducible differential-expression workflow — e.g.

cellxgene-census

Query the CZ CELLxGENE Census programmatically for versioned public single-cell and spatial transcriptomics data. Use when you need population-scale cell metadata, gene expression slices, Census summary counts, source H5AD URIs/downloads, embeddings, spatial Census data, or reference atlas comparisons across organisms, tissues, diseases, assays, and cell types. For analyzing your own local single-cell data use scanpy, anndata, or scvi-tools.

cirq

Google quantum computing framework. Use when targeting Google Quantum AI hardware, designing noise-aware circuits, or running quantum characterization experiments. Best for Google hardware, noise modeling, and low-level circuit design. For IBM hardware use qiskit; for quantum ML with autodiff use pennylane; for physics simulations use qutip.

citation-management

Comprehensive citation management for academic research. Search OpenAlex, PubMed, and Google Scholar for papers, extract accurate metadata, validate citations, and generate properly formatted BibTeX entries. This skill should be used when you need to find papers, verify citation information, convert DOIs to BibTeX, or ensure reference accuracy in scientific writing.

clinical-decision-support

Prepare and validate research-only clinical decision-support evaluation, evidence-profile, cohort, survival, biomarker/model, privacy, and governance artifacts. Use for aggregate or synthetic research documentation and traceability—not patient care or live clinical operation.

clinical-reports

Create safety-bounded draft structures and run local deterministic checks for clinical case, diagnostic, trial, safety, and aggregate research reports. Use only with synthetic, de-identified, or aggregate inputs and verified source-fact manifests; every output requires qualified review.

関連スキル