Dscribe
DScribe is a python package for creating machine learning descriptors for atomistic systems.
Install / Use
/learn @SINGROUP/DscribeREADME
DScribe is a Python package for transforming atomic structures into fixed-size numerical fingerprints. These fingerprints are often called "descriptors" and they can be used in various tasks, including machine learning, visualization, similarity analysis, etc.
Documentation
For more details and tutorials, visit our documentation at: https://singroup.github.io/dscribe/
You can find even more details in the following articles:
- DScribe: Library of descriptors for machine learning in materials science
- Updates to the DScribe library: New descriptors and derivatives
Quick Example
import numpy as np
from ase.build import molecule
from dscribe.descriptors import SOAP
from dscribe.descriptors import CoulombMatrix
# Define atomic structures
samples = [molecule("H2O"), molecule("NO2"), molecule("CO2")]
# Setup descriptors
cm_desc = CoulombMatrix(n_atoms_max=3, permutation="sorted_l2")
soap_desc = SOAP(species=["C", "H", "O", "N"], r_cut=5, n_max=8, l_max=6, crossover=True)
# Create descriptors as numpy arrays or sparse arrays
water = samples[0]
coulomb_matrix = cm_desc.create(water)
soap = soap_desc.create(water, centers=[0])
# Easy to use also on multiple systems, can be parallelized across processes
coulomb_matrices = cm_desc.create(samples)
coulomb_matrices = cm_desc.create(samples, n_jobs=3)
oxygen_indices = [np.where(x.get_atomic_numbers() == 8)[0] for x in samples]
oxygen_soap = soap_desc.create(samples, oxygen_indices, n_jobs=3)
# Descriptors also allow calculating derivatives with respect to atomic
# positions
der, des = soap_desc.derivatives(samples, return_descriptor=True)
Currently implemented descriptors
| Descriptor | Spectrum | Derivatives | |-----------------------------------------------|-----|-------| | Coulomb matrix | :heavy_check_mark: | :heavy_check_mark: | | Sine matrix | :heavy_check_mark: | :heavy_check_mark: | | Ewald matrix | :heavy_check_mark: | :heavy_check_mark: | | Atom-centered Symmetry Functions (ACSF) | :heavy_check_mark: | :heavy_check_mark: | | Smooth Overlap of Atomic Positions (SOAP) | :heavy_check_mark: | :heavy_check_mark: | | Many-body Tensor Representation (MBTR) | :heavy_check_mark: | :heavy_check_mark: | | Local Many-body Tensor Representation (LMBTR) | :heavy_check_mark: | :heavy_check_mark: | | Valle-Oganov descriptor | :heavy_check_mark: | :heavy_check_mark: |
Installation
In-depth installation instructions can be found in the documentation, but in short:
pip
pip install dscribe
conda
conda install -c conda-forge dscribe
From source
git clone https://github.com/SINGROUP/dscribe.git
cd dscribe
git submodule update --init
pip install .
Related Skills
claude-opus-4-5-migration
104.6kMigrate prompts and code from Claude Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5
model-usage
345.4kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
TrendRadar
50.6k⭐AI-driven public opinion & trend monitor with multi-platform aggregation, RSS, and smart alerts.🎯 告别信息过载,你的 AI 舆情监控助手与热点筛选工具!聚合多平台热点 + RSS 订阅,支持关键词精准筛选。AI 智能筛选新闻 + AI 翻译 + AI 分析简报直推手机,也支持接入 MCP 架构,赋能 AI 自然语言对话分析、情感洞察与趋势预测等。支持 Docker ,数据本地/云端自持。集成微信/飞书/钉钉/Telegram/邮件/ntfy/bark/slack 等渠道智能推送。
mcp-for-beginners
15.8kThis open-source curriculum introduces the fundamentals of Model Context Protocol (MCP) through real-world, cross-language examples in .NET, Java, TypeScript, JavaScript, Rust and Python. Designed for developers, it focuses on practical techniques for building modular, scalable, and secure AI workflows from session setup to service orchestration.
