Skillpedia
تعلّم الآلة51k · #3447

datamol

ما الذي تفعله

Datamol مكتبة تساعدك على العمل مع معلومات الجزيئات الكيميائية. تبسّط مهامًا شائعة مثل تحويل صيغ الجزيئات، وحساب خصائصها، وعرض هياكلها.

متى تستخدمها

  • ✓عندما تحتاج إلى تحويل قائمة أسماء جزيئات إلى صيغة يفهمها الحاسوب.
  • ✓عندما تريد حساب خصائص محددة لعدد كبير من الجزيئات دفعة واحدة.
  • ✓عندما تريد تنظيم مجموعات الجزيئات وتحليلها.

رابط المهارة

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

انسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.

طريقة الاستخدام

أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.

رسالة جاهزة للصق

استخدم هذه المهارة لمساعدتي: https://github.com/K-Dense-AI/scientific-agent-skills/blob/main/skills/datamol/SKILL.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

مثال على ما تطلبه من الذكاء الاصطناعي

“حوّل قائمة أسماء الجزيئات هذه إلى صيغة SMILES، وأخبرني أي الجزيئات الأكثر تشابهًا مع بعضها.”

5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.

كيف تعمل

تستخدم Datamol مكتبة RDKit في الخلفية، لكنها توفر أوامر أبسط وأكثر مباشرة. تتيح تنفيذ كثير من المهام على عدة جزيئات في الوقت نفسه، مما يجعل العملية أسرع.

المحتوى التقني (ملف SKILL.md الأصلي)

النص الأصلي من المؤلف، مباشرة من GitHub.

Datamol Cheminformatics Skill

Overview

Datamol is a Python library that provides a lightweight, Pythonic abstraction layer over RDKit for molecular cheminformatics. Simplify complex molecular operations with sensible defaults, efficient parallelization, and modern I/O capabilities. All molecular objects are native rdkit.Chem.Mol instances, ensuring full compatibility with the RDKit ecosystem.

Verified target: datamol 0.13.0, released September 9, 2026. Local checks used Python 3.13 and RDKit 2026.03.6. Python 3.11+ and RDKit 2024.09+ are required. The 0.13 distribution includes SELFIES, visualization, cloud, Excel and Parquet runtime dependencies. Current API examples and verification limits are recorded in references/review.md. Pin the environment: RDKit upgrades can change canonical representations and retained conformers. Compare chemical invariants, not a fixed conformer count or an exact version-dependent canonical string.

Key capabilities:

  • Molecular format conversion (SMILES, SELFIES, InChI)
  • Structure standardization and sanitization
  • Molecular descriptors and fingerprints
  • 3D conformer generation and analysis
  • Clustering and diversity selection
  • Scaffold and fragment analysis
  • Chemical reaction application
  • Visualization and alignment
  • Batch processing with parallelization
  • Cloud storage support via fsspec

Installation and Setup

Guide users to install datamol:

uv pip install "datamol==0.13.0"

RDKit and the S3/GCS, Excel/Parquet, visualization and SELFIES dependencies are installed by the current distribution; separate feature extras are not required. Use an isolated environment to avoid conflicting scientific-package requirements.

Import convention:

import datamol as dm

Core Workflows

Ten workflow areas, each with worked code, are documented in references/core_workflows.md:

# Area Covers
1 Basic molecule handling to_mol, batch conversion, error handling, canonical and isomeric SMILES, sanitization and full standardization
2 Reading and writing files SDF, SMILES, CSV, Excel with rendered structures, the universal reader/writer, and cloud or HTTPS paths
3 Descriptors and properties the standard descriptor set, parallel computation, aromaticity, stereochemistry, flexibility, and filtering
4 Fingerprints and similarity ECFP4 and other types, pairwise and cross-set distances, nearest-neighbour lookup (Tanimoto distance = 1 − similarity)
5 Clustering and diversity similarity clustering, diverse subset picking, and cluster centroids
6 Scaffold analysis Bemis-Murcko scaffolds, grouping and counting, and scaffold-disjoint train/test splits
7 Fragmentation fragmenting molecules, finding common fragments across a library, and fragment-based scoring
8 3D conformers generation, access, RMSD clustering, representative selection, and SASA
9 Visualization grids, files, publication SVG, substructure alignment, atom and bond highlighting, conformer display
10 Chemical reactions reaction SMARTS, applying to a molecule or a whole library

Three end-to-end pipelines — load/filter/analyze, SAR by scaffold series, and virtual screening — are in references/workflow_patterns.md.

Parallelization

Datamol includes built-in parallelization for many operations. Use n_jobs parameter:

  • n_jobs=1: Sequential (no parallelization)
  • n_jobs=-1: Use all available CPU cores
  • n_jobs=4: Use 4 cores

Functions supporting parallelization:

  • dm.read_sdf(..., n_jobs=-1)
  • dm.descriptors.batch_compute_many_descriptors(..., n_jobs=-1, batch_size=128)
  • dm.cluster_mols(..., n_jobs=-1)
  • dm.pdist(..., n_jobs=-1)
  • dm.conformers.sasa(..., n_jobs=-1)

Progress bars: Many batch operations support progress=True parameter. For parallel descriptor batches, supply a positive batch_size (for example 128). In the tested 0.13.0 stack the default None reaches joblib and raises when parallelism is enabled.

Reference Documentation

For detailed API documentation, consult these reference files:

  • references/core_api.md: Core namespace functions (conversions, standardization, fingerprints, clustering)
  • references/io_module.md: File I/O operations (read/write SDF, CSV, Excel, remote files)

…

الأسئلة الشائعة

ما هي SMILES؟

SMILES طريقة لتمثيل بنية الجزيء باستخدام رموز نصية فقط.

ما هي «الواصفات» و«البصمات»؟

هي ما يشبه «البصمات» أو ملخصات لخصائص الجزيء، وتُستخدم للمقارنة أو التحليل.

هل أستطيع استخدامها لإنشاء جزيئات جديدة؟

تركز Datamol على تحليل الجزيئات الموجودة ومعالجتها. أما إنشاء جزيئات جديدة فقد تحتاج فيه إلى أدوات أو طرق أخرى.

التفاصيل

الوصف الأصلي من المؤلف

Pythonic wrapper around RDKit with simplified interface and sensible defaults. Preferred for standard drug discovery including SMILES parsing, standardization, descriptors, fingerprints, clustering, 3D conformers, parallel processing. Returns native rdkit.Chem.Mol objects. For advanced control or custom parameters, use rdkit directly.

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

الشعبية

نجوم GitHub
51k
الترتيب
#3447
الترخيص
MIT
آخر تحديث
15‏/10‏/2026

هل هذه المهارة مفيدة؟

0

سجّل الدخول للتصويت.

التعليقات

  • …

المزيد من المهارات من هذا المستودع

مهارات مشابهة