dpdata-cli

使用 dpdata 命令行工具转换和操作原子模拟数据格式。适用于在 DFT/MD 输出格式之间转换或准备 DeePMD-kit 训练数据,支持包括 deepmd、xyz/extxyz、ABACUS、VASP、LAMMPS、CP2K 在内的 50 多种格式。

仓库最近推送
GitHub Stars
166
Forks
30
Issues / PRs
0

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "dpdata-cli":https://skillpi.com/zh/skills/deepskill-2a0e2a3da3f3c5703a05e96e46c245ecea2c1a5f94a82a3bf049d023fea5b50b。安装前核对上游来源和版本:https://github.com/jinzhezenggroup/computational-chemistry-agent-skills。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

github.com

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

使用 dpdata 命令行工具转换和操作原子模拟数据格式。适用于在 DFT/MD 输出格式之间转换或准备 DeePMD-kit 训练数据,支持包括 deepmd、xyz/extxyz、ABACUS、VASP、LAMMPS、CP2K 在内的 50 多种格式。

0 下载

介绍来源: third_party · jinzhezenggroup · 1.0 参考来源

SkillPi 解读

能完成的任务
翻译待完成,请参阅来源文档。
输入和输出
翻译待完成,请参阅来源文档。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: dpdata-cli
description: Convert and manipulate atomic simulation data formats using dpdata CLI. Use when converting between DFT/MD output formats or preparing DeePMD-kit training data. Supports 50+ formats including deepmd, xyz or extxyz, ABACUS, VASP, LAMMPS, CP2K, etc.
compatibility: Requires uvx (uv) for running dpdata
metadata:
  author: njzjz-bot
  version: '1.0'
  repository: https://github.com/deepmodeling/dpdata

dpdata CLI

dpdata is a tool for manipulating multiple atomic simulation data formats. This skill enables format conversion between various DFT/MD software outputs via command line.

Quick Start

Run dpdata via uvx:

uvx dpdata <from_file> [options]

Command Line Usage

dpdata: Manipulating multiple atomic simulation data formats
usage: dpdata [-h] [--to_file TO_FILE] [--from_format FROM_FORMAT]
              [--to_format TO_FORMAT] [--no-labeled] [--multi]
              [--type-map TYPE_MAP [TYPE_MAP ...]] [--version]
              from_file

Arguments

Argument Description
from_file Read data from a file (positional)
--to_file, -O Dump data to a file
--from_format, -i Format of from_file (default: "auto")
--to_format, -o Format of to_file
--no-labeled, -n Labels aren't provided (default: False)
--multi, -m System contains multiple directories (default: False)
--type-map, -t Type map for atom types
--version Show dpdata version and exit

Common Examples

Convert VASP OUTCAR to deepmd format

uvx dpdata OUTCAR -i vasp/outcar -O deepmd_data -o deepmd/raw

Convert LAMMPS dump to VASP POSCAR

uvx dpdata dump.lammps -i lammps/dump -O POSCAR -o vasp/poscar

Convert with type map

uvx dpdata OUTCAR -i vasp/outcar -O deepmd_data -o deepmd/raw -t C H O N

Convert multiple systems

uvx dpdata data_dir -i vasp/outcar -O output_dir -o deepmd/comp --multi

Convert to deepmd/npy (compressed format)

uvx dpdata OUTCAR -i vasp/outcar -O deepmd_npy -o deepmd/npy

Convert to deepmd/hdf5

uvx dpdata OUTCAR -i vasp/outcar -O data.h5 -o deepmd/hdf5

Supported Formats

Formats may be updated. For the complete and latest list, see:

DeePMD-kit Formats

Format Name Description
deepmd/raw DeePMD-kit raw text format
deepmd/comp / deepmd/npy DeePMD-kit compressed numpy format
deepmd/npy/mixed DeePMD-kit mixed type format
deepmd/hdf5 DeePMD-kit HDF5 format

VASP Formats

Format Name Description
vasp/poscar / vasp/contcar / poscar / contcar VASP structure files
vasp/outcar / outcar VASP OUTCAR output
vasp/xml / xml VASP XML output
vasp/string VASP string format

LAMMPS Formats

Format Name Description
lammps/lmp / lmp LAMMPS data file
lammps/dump / dump LAMMPS dump file

ABACUS Formats

Format Name Description
stru / abacus/stru ABACUS structure file
abacus/lcao/scf / abacus/pw/scf / abacus/scf ABACUS SCF output
abacus/lcao/md / abacus/pw/md / abacus/md ABACUS MD output
abacus/lcao/relax / abacus/pw/relax / abacus/relax ABACUS relax output

Quantum ESPRESSO Formats

Format Name Description
qe/cp/traj QE CP trajectory
qe/pw/scf QE PWscf output

CP2K Formats

Format Name Description
cp2k/output CP2K output
cp2k/aimd_output CP2K AIMD output

Gaussian Formats

Format Name Description
gaussian/log Gaussian log file
gaussian/fchk Gaussian formatted checkpoint
gaussian/md Gaussian MD output
gaussian/gjf Gaussian input file

Other Formats

Format Name Description
xyz XYZ format
mace/xyz / nequip/xyz / gpumd/xyz / extxyz / quip/gap/xyz Extended XYZ variants
ase/structure ASE structure format
ase/traj ASE trajectory
pymatgen/structure pymatgen structure
pymatgen/molecule pymatgen molecule
gromacs/gro / gro GROMACS gro file
siesta/output SIESTA output
siesta/aimd_output SIESTA AIMD output
pwmat/output / pwmat/mlmd / pwmat/movement PWmat output
pwmat/final.config / pwmat/atom.config PWmat config
orca/spout ORCA output
psi4/out PSI4 output
dftbplus DFTB+ output
fhi_aims/output / fhi_aims/md FHI-aims output
amber/md AMBER MD
n2p2 n2p2 format
mol_file / mol MOL file
sdf_file / sdf SDF file
openmx/md OpenMX MD
sqm/out SQM output
sqm/in SQM input
list List format
3dmol 3Dmol visualization

Extended XYZ (extxyz) Format Details

The following format names are all equivalent and invoke the same reader/writer:

  • extxyz — general-purpose extended XYZ
  • quip/gap/xyz / quip/gap/xyz_file — QUIP/GAP framework datasets
  • mace/xyz — MACE model training data
  • nequip/xyz — NequIP model training data
  • gpumd/xyz — GPUMD simulation data

Important: Plain xyz is a different, simpler format that stores atom species and coordinates but does not provide per-frame properties such as energies, forces, cell information, or periodic boundary conditions. Do not confuse xyz with extxyz.

CLI Examples for extxyz

# Multi-frame extxyz trajectory → deepmd/npy (--multi preserves all frames)
uvx dpdata data.xyz -i extxyz -O deepmd_data -o deepmd/npy --multi

# Heterogeneous extxyz (mixed compositions) → deepmd/npy/mixed
uvx dpdata data.xyz -i extxyz -O deepmd_data -o deepmd/npy/mixed --multi

# Convert extxyz to VASP POSCAR (single-frame input only)
uvx dpdata data.xyz -i extxyz -O POSCAR -o vasp/poscar

# Convert a single-frame extxyz with explicit type map
uvx dpdata data.xyz -i extxyz -O deepmd_data -o deepmd/npy -t H C N O

Tips for extxyz

  1. Use -i extxyz explicitly when working with .xyz files that contain extended XYZ data. Using -i xyz retains only atom species and coordinates, omitting per-frame properties such as energies, forces, and cell information.
  2. Use --multi for any multi-frame extxyz file. Without --multi, the CLI constructs a LabeledSystem that keeps only the first frame. This applies to all multi-frame trajectories, not just heterogeneous (mixed-composition) files. dpdata groups frames by chemical formula internally.
  3. All alias names behave identically — -i mace/xyz, -i nequip/xyz, -i gpumd/xyz, -i quip/gap/xyz, -i quip/gap/xyz_file, and -i extxyz produce the same result.

Tips

  1. Auto-detection: Use -i auto (default) to let dpdata detect format automatically
  2. Type mapping: Use -t to specify atom type order for deepmd formats
  3. Multi-system: Use --multi for directories containing multiple systems
  4. Compressed output: Use deepmd/npy or deepmd/hdf5 for smaller file sizes

References

当前收录版本

1.0

核对来源版本 ↗

安全与评测信息

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值95/100

亮点

  • 解决原子模拟领域核心痛点:跨软件数据格式转换
  • 支持50+种主流格式,涵盖DFT/MD主流软件
  • 直接服务于DeePMD-kit训练数据准备这一重要场景
触发精准90/100

亮点

  • description明确说明使用场景和适用范围
  • 触发词覆盖格式转换和训练数据准备两大核心功能
  • 边界清晰,不易与其他工具混淆
结构规范85/100

待提升项

  • 缺少When to Use章节 原报告严重程度:轻微

    文档结构完整但缺少明确的When to Use使用场景说明章节

    改进建议:建议添加When to Use章节,明确说明何时使用此Skill

亮点

  • 文档结构清晰,包含快速开始、参数说明、常见示例
  • 提供了丰富的CLI使用示例和格式支持列表
  • frontmatter完整,包含兼容性要求
执行可靠90/100

亮点

  • 工具来源明确(dpdata官方CLI)
  • 参数说明完整,覆盖所有主要选项
  • 示例覆盖常见使用场景,包括多系统处理和类型映射
  • 明确说明依赖uvx运行环境
证据可验 (前四项均值)90/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。

文档引用的域名或地址

这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。

  • docs.deepmodeling.com
  • github.com

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。