Skip to main content

A tool to plot GROMACS .xvg files.

Project description

PyPI Downloads

🧬 GMXvg: GROMACS .xvg File Plotting Tool

Transform your GROMACS simulation data into publication-ready plots

GMXvg is a command-line utility designed for converting and plotting GROMACS XVG files. It simplifies the process of handling XVG files by automatically discovering all XVG files in the current or subdirectories and converting them to specified file formats, with JPG as the default format. Additionally, GMXvg logs the summary of plots in a CSV file, providing quick access to plot values along with their standard deviation.

🌟 Features

  • Automatic discovery - Finds all .xvg files in directories
  • Multiple formats - Export to JPG, PNG, PDF, SVG, and more
  • Batch processing - Analyze hundreds of files at once
  • Statistical summaries - Automatic calculation of means and standard deviations
  • Customizable - Full control over plot appearance and output quality
  • Cross-platform - Can be installed and used on Windows, MacOS, and Linux

🚀 Quick Start (3 Easy Steps!)

Step 1: Install

pip install gmxvg

Step 2: Check it works

gmxvg --version

Step 3: Create your first plot

# If you have .xvg files in your current folder:
gmxvg

# Or specify a folder:
gmxvg -b /path/to/your/xvg/files

That's it! 🎉 Your plots will be created automatically.

📊 What Can You Analyze?

GMXvg works with all standard GROMACS output files including:

File Type Description
RMSD Root Mean Square Deviation - structural stability
RMSF Root Mean Square Fluctuation - flexibility analysis
Energy Potential, kinetic, and total energy plots
Temperature System temperature monitoring
Pressure System pressure analysis
Hydrogen Bonds Molecular interaction analysis

💡 Examples

Basic Usage

# Plot all .xvg files in current directory
gmxvg

# Plot files in a specific directory
gmxvg -b /path/to/simulation/results

# Create high-resolution plots for publication
gmxvg -d 600 -e png pdf

# Plot multiple directories at once
gmxvg -md /path/to/folder1 /path/to/folder2 /path/to/folder3

📚 Learning Resources

🏥 Troubleshooting

Common Issues

"No .xvg files found"

  • Make sure you're in the right directory
  • Check if files have the .xvg extension
  • Use -b to specify the correct path or start terminal from the directory containing your graphs

"Import error"

  • Try: pip install --upgrade gmxvg
  • Make sure you have Python 3.6+

"Plots look strange"

  • Check if your .xvg files are properly formatted

Getting Help

🤝 Contributing

We love contributions! Here's how you can help:

  1. Report bugs - Found something broken? Let us know!
  2. Suggest features - What would make GMXvg better for you?
  3. Share examples - Help others by sharing your use cases
  4. Improve documentation - Help make GMXvg even more user-friendly

🙏 Acknowledgments

  • Built for the molecular dynamics community
  • Powered by python, matplotlib and pandas
  • Inspired by the need to make scientific data analysis accessible to everyone

💡 Inspiration

This project is our small contribution to the molecular dynamics community. We believe that powerful data analysis tools should be accessible to everyone - from students learning computational biology to experienced researchers publishing groundbreaking papers. By simplifying the process of creating publication-ready plots from GROMACS data, we hope to save valuable time that can be better spent on scientific discovery.


Ready to start analyzing your molecular dynamics data? Install GMXvg now and create your first plot in under 2 minutes! 🚀

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gmxvg-1.0.1.tar.gz (23.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gmxvg-1.0.1-py3-none-any.whl (21.3 kB view details)

Uploaded Python 3

File details

Details for the file gmxvg-1.0.1.tar.gz.

File metadata

  • Download URL: gmxvg-1.0.1.tar.gz
  • Upload date:
  • Size: 23.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for gmxvg-1.0.1.tar.gz
Algorithm Hash digest
SHA256 c61e805993e99523ebd2f57afdc4a75e7e286b676bcc685d331d7b031e3b85e1
MD5 a51563b8aef55daa906217c07beba66a
BLAKE2b-256 9103aa193df596a225b04f0452f0f70864e4285cdb7c4b4ed4480ab2c428a620

See more details on using hashes here.

File details

Details for the file gmxvg-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: gmxvg-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 21.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for gmxvg-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 61e8c02983a06bb5a1bba05d8f9c71951db82c04e4f6f25b0206ea5f5b0d9e96
MD5 6d300018a47dd065ed6a573de970568e
BLAKE2b-256 18f4d79a9b941c0267fc61daf96601f577e08ef7536e7bb02e1e7a77efdd2bff

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page