A package for reading GROMACS .trr files
Project description
pytrr
pytrr is a Python package for reading .trr [1] files from GROMACS [2].
pytrr is intended as a lightweight, pure Python, library for reading .trr trajectories and it gives access to positions, velocities, etc. as numpy arrays.
Example
from pytrr import GroTrrReader
with GroTrrReader('traj.trr') as trrfile:
for frame in trrfile:
print(frame['step'])
frame_data = trrfile.get_data()
print(frame_data['x'][0])
Installation
pytrr can be installed via pip:
pip install pytrr
References
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pytrr-0.5.0.tar.gz
(18.3 kB
view details)
File details
Details for the file pytrr-0.5.0.tar.gz
.
File metadata
- Download URL: pytrr-0.5.0.tar.gz
- Upload date:
- Size: 18.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4824f21ea779342553a1bd9b0e8e8c7c1af971f937cfb02776ea675968057296 |
|
MD5 | e2771bb3f85839d2ba0fa33160fc812f |
|
BLAKE2b-256 | 817e440748492a4f68f3a9780056d5eb9458c5ef1e76befd94550c7ad22626cf |