xdatbus 🚌
Xdatbus is a Python package designed specifically for Vienna Ab-initio Simulation Package (VASP) users conducting ab-initio molecular dynamics (AIMD) simulations, as well as biased MD simulations. The name of the package is derived from the MD trajectory file (XDATCAR) generated by VASP. The documentation for the package can be accessed here, and a collection of Jupyter Notebook tutorial is also available.
Installation
Make sure you have a Python interpreter, preferably version 3.10 or higher. Then, you can simply install xdatbus from
PyPI using pip:
pip install xdatbus
If you'd like to use the latest unreleased version on the main branch, you can install it directly from GitHub:
pip install git+https://github.com/jcwang587/xdatbus
The package is also available from conda-based installation. It is generally recommended you first create a separate environment, then you can install via the xdatbus channel on Anaconda cloud:
conda install --channel xdatbus xdatbus
If you plan to use PLUMED to analyze enhanced sampling AIMD results, you can also install the conda version of PLUMED together:
conda install -c xdatbus -c conda-forge xdatbus plumed
Get Started
This is a brief example demonstrating how to use the basic function of xdatbus to aggregate multiple xdatcar files into
a single file and unwrap the coordinates into an .xyz file.
As is often the case when you have submitted a continuous AIMD job, it is likely that you would have subfolders for each
submission. XDATCAR files can be first gathered in a separate directory by:
$ mkdir xdc_files && for i in {01..10}; do cp RUN$i/XDATCAR xdc_files/XDATCAR_$i; done
Then, try aggregating and unwrapping the coordinate data from the XDATCAR files:
import os
from xdatbus import xdc_aggregate, xdc_unwrap
xdc_dir = "./xdc_files"
xdb_dir = os.path.dirname(xdc_dir)
xdb_path = os.path.join(xdb_dir, "XDATBUS")
xyz_path = os.path.join(xdb_dir, "XDATBUS_unwrap.xyz")
xdc_aggregate(xdc_dir=xdc_dir, output_dir=xdb_dir)
xdc_unwrap(xdc_path=xdb_path, output_path=xyz_path)
There are also entry points included with the installation for the Command Line Interface (CLI) to perform similar tasks:
$ xdc_aggregate --xdc_dir ./xdc_files --output_dir ./
$ xdc_unwrap --xdc_path ./XDATBUS --output_path ./XDATBUS_unwrap.xyz
Visualization
This is testing functionality for visualizing the molecular dynamics trajectory with Blender. There is a strict Python version required for compatibility with Blender. Please check the compatible version of Python for bpy to ensure there are no conflicts in your environment.
pip install molecularnodes bpy
Major Changelog
0.3.8 Added functions for locating minima and running NEB in a 2D FES.
0.2.5 Enabled a command-line interface that runs through the rich package.
0.2.0 Added a function to generate extxyz data for training machine learning interatomic potentials.
Metadata
Release files for xdatbus 0.3.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| xdatbus-0.3.8.tar.gz | 28.2 kB | With provenance | Details for xdatbus-0.3.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| xdatbus-0.3.8-py3-none-any.whl | Python 3 | none | any | Details for xdatbus-0.3.8-py3-none-any.whl |
Total release size: 60.6 kB
Release files / xdatbus-0.3.8.tar.gz
| Download URL | xdatbus-0.3.8.tar.gz |
|---|---|
| Size | 28.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
66cad0fe49f518091e4331d8d5a633615c6329d38fcebb559e85dd99fced22f8
|
|
BLAKE2b-256 checksum How to use checksums |
0cb4e6ce1cd6896459a2afac606d8c2318662a44df3c7af49397c629675b6209
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 19, 2025.
Transparency logRelease files / xdatbus-0.3.8-py3-none-any.whl
| Download URL | xdatbus-0.3.8-py3-none-any.whl |
|---|---|
| Size | 32.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cc69fc0fab66ac76e72bc03405ccb51b031d88eaea86a2609e0ec09812480aa6
|
|
BLAKE2b-256 checksum How to use checksums |
80b1b1ae18dbd172ef9de1ddc328c7ba3c80f6a5d61edc1871feb6f5636d29df
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 19, 2025.
Transparency logSecurity for xdatbus 0.3.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for xdatbus-0.3.8.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 19, 2025.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.