dpdata-cli
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "dpdata-cli" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-2a0e2a3da3f3c5703a05e96e46c245ecea2c1a5f94a82a3bf049d023fea5b50b. Verify the upstream source and version against https://github.com/jinzhezenggroup/computational-chemistry-agent-skills before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
github.com
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Convert and manipulate atomistic simulation data formats using the dpdata CLI. Intended for converting between DFT/MD output formats or preparing DeePMD-kit training data; supports over 50 formats including deepmd, xyz/extxyz, ABACUS, VASP, LAMMPS, and CP2K.
Introduction source: third_party · jinzhezenggroup · 1.0 Reference
SkillPi interpretation
- Tasks
- 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.
- Inputs and outputs
- uvx dpdata data.xyz -i extxyz -O POSCAR -o vasp/poscar
- Testing
- Not tested
Browse files
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/dpdatadpdata 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 XYZquip/gap/xyz/quip/gap/xyz_file— QUIP/GAP framework datasetsmace/xyz— MACE model training datanequip/xyz— NequIP model training datagpumd/xyz— GPUMD simulation data
Important: Plain
xyzis 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 confusexyzwithextxyz.
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
- Use
-i extxyzexplicitly when working with.xyzfiles that contain extended XYZ data. Using-i xyzretains only atom species and coordinates, omitting per-frame properties such as energies, forces, and cell information. - Use
--multifor any multi-frame extxyz file. Without--multi, the CLI constructs aLabeledSystemthat 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. - 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 extxyzproduce the same result.
Tips
- Auto-detection: Use
-i auto(default) to let dpdata detect format automatically - Type mapping: Use
-tto specify atom type order for deepmd formats - Multi-system: Use
--multifor directories containing multiple systems - Compressed output: Use
deepmd/npyordeepmd/hdf5for smaller file sizes
References
Current listing version
1.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 解决原子模拟领域核心痛点:跨软件数据格式转换
- 支持50+种主流格式,涵盖DFT/MD主流软件
- 直接服务于DeePMD-kit训练数据准备这一重要场景
Highlights
- description明确说明使用场景和适用范围
- 触发词覆盖格式转换和训练数据准备两大核心功能
- 边界清晰,不易与其他工具混淆
Areas to improve
-
缺少When to Use章节 Reported severity: Minor
文档结构完整但缺少明确的When to Use使用场景说明章节
Recommendation: 建议添加When to Use章节,明确说明何时使用此Skill
Highlights
- 文档结构清晰,包含快速开始、参数说明、常见示例
- 提供了丰富的CLI使用示例和格式支持列表
- frontmatter完整,包含兼容性要求
Highlights
- 工具来源明确(dpdata官方CLI)
- 参数说明完整,覆盖所有主要选项
- 示例覆盖常见使用场景,包括多系统处理和类型映射
- 明确说明依赖uvx运行环境
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Domains or addresses referenced in the document
These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.
- docs.deepmodeling.com
- github.com
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.