Chuyển đến nội dung
Skillpedia
Học máy51k · #3553

rdkit

Skill này làm gì

RDKit là công cụ dành cho các nhà khoa học làm việc với phân tử. Nó giúp phân tích và thao tác cấu trúc hóa học, tính toán thuộc tính và hiểu mối liên hệ giữa chúng.

Khi nào nên dùng

  • ✓Khi nghiên cứu thuốc mới.
  • ✓Khi tìm hiểu cách các phân tử tương tác với nhau.
  • ✓Khi xây dựng mô hình cho các hợp chất hóa học.

Liên kết skill

https://github.com/K-Dense-AI/scientific-agent-skills/blob/main/skills/rdkit/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/K-Dense-AI/scientific-agent-skills/blob/main/skills/rdkit/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Tính khối lượng phân tử và LogP của phân tử có SMILES “CCO”.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Bạn cung cấp thông tin về phân tử (như công thức hoặc tên), và RDKit dùng các thuật toán để tính thuộc tính hoặc thực hiện tìm kiếm. Nó có thể tạo biểu diễn trực quan hoặc dữ liệu số về phân tử.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

RDKit Cheminformatics Toolkit

Overview

RDKit is a comprehensive cheminformatics library providing Python APIs for molecular analysis and manipulation. This skill provides guidance for reading/writing molecular structures, calculating descriptors, fingerprinting, substructure searching, chemical reactions, 2D/3D coordinate generation, and molecular visualization. Use this skill for drug discovery, computational chemistry, and cheminformatics research tasks.

Tested stable baseline (reviewed 2026-10-01): RDKit 2026.03.6, distributed as rdkit==2026.3.6 on PyPI; this is the current stable GitHub/PyPI release. Official installation docs continue to recommend conda-forge for most users, while cross-platform PyPI wheels are published under the rdkit package name. rdkit-pypi is the old PyPI package name and should only appear when maintaining legacy environments.

Installation and Setup

Use uv when installing into an existing Python environment:

uv pip install "rdkit==2026.3.6"

For reproducible chemistry environments, especially when mixing compiled scientific packages, conda-forge remains the upstream recommendation:

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

Avoid installing both conda rdkit and PyPI rdkit/rdkit-pypi into the same environment unless you are deliberately debugging packaging behavior. Mixed installs can make it unclear which binary extension is being imported.

Core Capabilities

Twelve capability areas, each with worked code, are documented in references/core_capabilities.md:

# Area Covers
1 Molecular I/O and creation SMILES, MOL files and blocks, InChI, SDF and SMILES suppliers, multithreaded reading, writers
2 Sanitization and validation disabling automatic sanitization, manual and partial sanitization, detecting problems first
3 Analysis and properties atom and bond iteration, ring information and SSSR, chirality and stereochemistry, fragments
4 Descriptors MW, LogP, TPSA, H-bond donors/acceptors, rotatable bonds, aromatic rings, bulk calculation, drug-likeness
5 Fingerprints and similarity topological, Morgan/ECFP via rdFingerprintGenerator, MACCS, atom pair, torsion, Avalon; Tanimoto and other metrics; Butina clustering
6 Substructure searching SMARTS queries, match retrieval, and a library of common patterns
7 Chemical reactions reaction SMARTS, applying reactions, reaction fingerprints
8 2D and 3D coordinates depiction, template alignment, ETKDG embedding, force-field optimization, RMSD, constrained embedding
9 Visualization single and grid images, substructure highlighting, custom drawer options, Jupyter integration, fingerprint bit environments
10 Molecular modification explicit hydrogens, Kekulization, aromaticity, substructure replacement, charge neutralization
11 Hashes and standardization Murcko scaffold and canonical hashes, regioisomer hashes, randomized SMILES for augmentation
12 Pharmacophore and 3D features feature factories and feature extraction

Worked workflows and the performance, thread-safety, and version-sensitivity notes are in references/workflows_and_best_practices.md.

Prefer portable exchange formats (SMILES, SDF) for shared data; for local caches RDKit's binary molecule representation avoids generic pickle.

Preserve chemical meaning

Canonical isomeric SMILES records one molecular graph under a particular RDKit version. It does not merge tautomers, choose a pH-dependent protonation state, remove salts, or resolve unspecified stereo. Preserve the original structure and source ID before any explicit standardization policy. Similarity 1.0 is not an identity test: fingerprints collide and the bundled search ignores chirality unless --chirality is selected. See the tested identity/standardization example in references/workflows_and_best_practices.md.

The helpers retain one-based source IDs through invalid-record filtering, reject empty molecules, and perform no implicit salt stripping or neutralization. SMILES files have no header; RDKit parses a SMILES/CXSMILES structure followed by an optional name. Text outputs retain enhanced stereo groups as CXSMILES;

…

Câu hỏi thường gặp

SMILES là gì?

SMILES là cách biểu diễn cấu trúc hóa học bằng một chuỗi văn bản đơn giản.

Các mô tả phân tử như MW và LogP là gì?

MW (Molecular Weight) là khối lượng tổng của phân tử. LogP là thước đo mức độ hòa tan của phân tử trong chất béo so với nước.

“Tìm kiếm cấu trúc con” (substructure search) là gì?

Đó giống như tìm một phần cụ thể (cấu trúc con) bên trong một phân tử lớn hơn.

Chi tiết

Mô tả gốc của tác giả

Cheminformatics toolkit for fine-grained molecular control. SMILES/SDF parsing, descriptors (MW, LogP, TPSA), fingerprints, substructure search, 2D/3D generation, similarity, reactions. For standard workflows with simpler interface, use datamol (wrapper around RDKit). Use rdkit for advanced control, custom sanitization, specialized algorithms.

repo: K-Dense-AI/scientific-agent-skills

Độ phổ biến

Sao GitHub
51k
Vị trí xếp hạng
#3553
Giấy phép
MIT
Cập nhật
15/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự