Package for reading of .xyz files and constructing of molecular graphs from atomic coordinates.
Project description
xyz2graph
A Python package for converting XYZ molecular files into interactive 3D visualizations and NetworkX graphs.
Features
- Interactive 3D molecular visualization using Plotly
- NetworkX graph conversion for analysis
- Command-line interface
Installation
pip install xyz2graph
Requirements
- Python 3.8+
- Dependencies: NumPy, Plotly, NetworkX
Quick Start
from xyz2graph import MolGraph
# Create molecular graph and read XYZ file
mg = MolGraph()
mg.read_xyz('molecule.xyz')
# Generate interactive 3D visualization
fig = mg.to_plotly()
fig.show()
Command Line
# Save visualization as HTML
xyz2graph molecule.xyz
# Specify output file
xyz2graph molecule.xyz --output viz.html
# Open directly in browser
xyz2graph molecule.xyz --browser
Documentation
Full documentation is available at https://zotko.github.io/xyz2graph
Contributing
Contributions are welcome! Please see the CONTRIBUTING.md file for guidelines.
Citation
If you use xyz2graph in your research, please cite:
@misc{zotko2018xyz2graph,
author = {Zotko, Mykola},
title = {xyz2graph: Molecular Structure Visualization},
year = {2018},
publisher = {GitHub},
url = {https://github.com/zotko/xyz2graph}
}
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
Built Distribution
File details
Details for the file xyz2graph-3.3.1.tar.gz
.
File metadata
- Download URL: xyz2graph-3.3.1.tar.gz
- Upload date:
- Size: 1.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76311d5650063782e932df3ef5f87853d961b0cb40af318a042b93dbd0842924 |
|
MD5 | 03cb7d90fc69fdae0ee5223fe8247523 |
|
BLAKE2b-256 | e5ca019caec480b3de4b6ececa0a61b1253e92c7586183d6adf957935bdfaa25 |
Provenance
The following attestation bundles were made for xyz2graph-3.3.1.tar.gz
:
Publisher:
publish.yml
on zotko/xyz2graph
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
xyz2graph-3.3.1.tar.gz
- Subject digest:
76311d5650063782e932df3ef5f87853d961b0cb40af318a042b93dbd0842924
- Sigstore transparency entry: 151646185
- Sigstore integration time:
- Predicate type:
File details
Details for the file xyz2graph-3.3.1-py3-none-any.whl
.
File metadata
- Download URL: xyz2graph-3.3.1-py3-none-any.whl
- Upload date:
- Size: 19.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8bfeb2e5f6e2c71e8aadea1515ba7963225d8a5ac6b21a743060d38e48c6a777 |
|
MD5 | 73cd29bcaec7c518746e12adb72b26ce |
|
BLAKE2b-256 | b685cc2121df776ca7cd03206fa632e20ef5e159e3de68e9d213eacfc4ec438e |
Provenance
The following attestation bundles were made for xyz2graph-3.3.1-py3-none-any.whl
:
Publisher:
publish.yml
on zotko/xyz2graph
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
xyz2graph-3.3.1-py3-none-any.whl
- Subject digest:
8bfeb2e5f6e2c71e8aadea1515ba7963225d8a5ac6b21a743060d38e48c6a777
- Sigstore transparency entry: 151646187
- Sigstore integration time:
- Predicate type: