Package for reading of .xyz files and constructing of molecular graphs from atomic coordinates.
Project description
xyz2graph
A Python package to convert XYZ molecular files into NetworkX graphs with interactive 3D visualization using Plotly.
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')
# Convert to NetworkX graph
G = mg.to_networkx()
# 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
Read the documentation for guides, API reference, and examples.
Help & Discussion
🪲 Report a bug
✨ Request a feature
Contributing
Contributions are welcome! Please see the Contributing Guide 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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file xyz2graph-3.4.1.tar.gz.
File metadata
- Download URL: xyz2graph-3.4.1.tar.gz
- Upload date:
- Size: 1.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8b563f5dbeb3f7aedbe11f4befadee68f8de6aeb681ea73d3bb9d74c5bdd2dbd
|
|
| MD5 |
778f7c7a93de93f6b4291b558d063aff
|
|
| BLAKE2b-256 |
d69971f8cf9a87f915ea7df77c94cc0995a6e319dfa2223f1678b3c6d506dee2
|
Provenance
The following attestation bundles were made for xyz2graph-3.4.1.tar.gz:
Publisher:
publish.yml on zotko/xyz2graph
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
xyz2graph-3.4.1.tar.gz -
Subject digest:
8b563f5dbeb3f7aedbe11f4befadee68f8de6aeb681ea73d3bb9d74c5bdd2dbd - Sigstore transparency entry: 161959154
- Sigstore integration time:
-
Permalink:
zotko/xyz2graph@2ef3806fcc892f01ce2d084dd0cfcdc88774b598 -
Branch / Tag:
refs/tags/v3.4.1 - Owner: https://github.com/zotko
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@2ef3806fcc892f01ce2d084dd0cfcdc88774b598 -
Trigger Event:
push
-
Statement type:
File details
Details for the file xyz2graph-3.4.1-py3-none-any.whl.
File metadata
- Download URL: xyz2graph-3.4.1-py3-none-any.whl
- Upload date:
- Size: 21.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
20fc902541dee916b2ea248b7a6021456b2f489f3735c749858b9c9f81dd99f7
|
|
| MD5 |
b9cd04bf1d9c400a80072a3eede75a5b
|
|
| BLAKE2b-256 |
c3eef6665c5eb6e71d7a651640e0925e036358e9483e9f4bc5256870e1ed1a6e
|
Provenance
The following attestation bundles were made for xyz2graph-3.4.1-py3-none-any.whl:
Publisher:
publish.yml on zotko/xyz2graph
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
xyz2graph-3.4.1-py3-none-any.whl -
Subject digest:
20fc902541dee916b2ea248b7a6021456b2f489f3735c749858b9c9f81dd99f7 - Sigstore transparency entry: 161959155
- Sigstore integration time:
-
Permalink:
zotko/xyz2graph@2ef3806fcc892f01ce2d084dd0cfcdc88774b598 -
Branch / Tag:
refs/tags/v3.4.1 - Owner: https://github.com/zotko
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@2ef3806fcc892f01ce2d084dd0cfcdc88774b598 -
Trigger Event:
push
-
Statement type: