graphpancake
graphpancake is a Python library for generating molecular graphs of small organic molecules (elements H, B, C, N, O, F, Si, P, S, Cl, Br, I) from electronic structure theory (i.e., DFT and WFT quantum chemistry calculations).
Outputs from DFT calculations (.xyz coordinates), Natural Population Analysis (NPA) from JANPA, Natural Bond Orbital (NBO) analysis, and thermodynamic data from Shermo are parsed to extract atom (node), bond (edge), and graph-level features.
Essentially, graphpancake takes three-dimensional data and flattens it into molecular graph representations, because computers haven't taken organic chemistry class...
Installation
Setup with Conda (Recommended)
Create a complete conda environment with all dependencies:
# Clone or download the environment.yml file from the repository
curl -O https://raw.githubusercontent.com/sneha-sil/graphpancake/main/environment.yml
# Create and activate the environment
conda env create -f environment.yml
conda activate graphpancake-env
Alternative Installation Methods
Using pip
pip install graphpancake
Basic usage example
## Example: Single-molecule processing using the command line interface
graphpancake create-db database_name.db
graphpancake load-data --database database_name.db --xyz-file pentane.xyz --shermo-output pentane_shermo.txt --janpa-output pentane.JANPA --nbo-output pentane_nbo.out --mol-id pentane_QM --smiles "CCCCCC" --graph-type QM
A full list of commands and options are available using:
graphpancake --help
If the graphpancake command is not available, you can also use python -m graphpancake.cli.
Example: Batch processing of several molecules using scripts
Batch processing works best when you have a folder or gzip file of hundreds or thousands of data files, with a corresponding CSV of identification names and SMILES strings. Examples are available in the auxiliary graphpancake_data.zip folder from Releases page.
- Make a copy of config_template.yaml, rename as config.yaml
- Adjust file names and operation settings as necessary
- Run the script (
python -m graphpancake.batch_processing -config config.yaml). A database .db file will be created with all of your molecular graph data.
Documentation
Full documentation is available at:
https://graphpancake.readthedocs.io/
References
- Neese, F. et al. The ORCA quantum chemistry program package. J. Chem. Phys. 2020, 152, 224108
- Nikolaienko et al. JANPA: an open source cross-platform implementation of the Natural Population Analysis on the Java platform, Computational and Theoretical Chemistry 2014, 1050, 15-22, DOI: 10.1016/j.comptc.2014.10.002, http://janpa.sourceforge.net
- Glendening, E. D., Landis, C. R., Weinhold, F. NBO 7.0: New vistas in localized and delocalized chemical bonding theory. Journal of Computational Chemistry 2019, 40 (25), 2234-2241. https://doi.org/10.1002/jcc.25873
- Tian, L., Qinxue, C., Shermo: A general code for calculating molecular thermodynamic properties, Comput. Theor. Chem. 2021, 1200, 113249 DOI: 10.1016/j.comptc.2021.113249
Citation
If you use graphpancake in your research, please cite this repository and the relevant references above.
Sil, S., Maskeri, M. A., Scheidt, K.A. 2025. graphpancake: A Python package for representing organic molecules as molecular graphs utilizing electronic structure theory.
License
MIT License. See LICENSE for details.
Acknowledgements
Project based on the Computational Molecular Science Python Cookiecutter version 1.11. Code written with assistance from Claude Sonnet 4.
Metadata
Release files for graphpancake 1.0.1
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 |
|---|---|---|---|---|
| graphpancake-1.0.1.tar.gz | 63.2 kB | Without provenance | Details for graphpancake-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| graphpancake-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for graphpancake-1.0.1-py3-none-any.whl |
Total release size: 123.3 kB
Release files / graphpancake-1.0.1.tar.gz
| Download URL | graphpancake-1.0.1.tar.gz |
|---|---|
| Size | 63.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b9d81940627cb0d5b0a688182a9cbf12528d3b9a3e0156494855ca78458b3977
|
|
BLAKE2b-256 checksum How to use checksums |
115599bb53614aac3c9e2410a6908643160693731b2f51d66deb76d973605e76
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.0
|
Release files / graphpancake-1.0.1-py3-none-any.whl
| Download URL | graphpancake-1.0.1-py3-none-any.whl |
|---|---|
| Size | 60.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
32b5e0a5af89c79e34ea02b3a532ea0a9b1324231f479901a452690ea6dd10a3
|
|
BLAKE2b-256 checksum How to use checksums |
923d2a4857f7dfd14776198700d2528975fba8ac85b6e28ebcc5a0ebd0e1aec5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.0
|
Security for graphpancake 1.0.1
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.