Hetnets in Python
Hetnets: Hetnets, also called heterogeneous information networks, are graphs with multiple node and edge types. Hetnets are both multipartite and multirelational. They provide a scalable, intuitive, and frictionless structure for data integration.
Purpose: This package provides data structures for hetnets and algorithms for edge prediction. It only supports hetnets, which is its primary advantage compared to other network software. Node/edge attributes and edge directionality are supported.
Caution: Documentation is currently spotty, testing coverage is moderate, and the API is not fully stable. Contributions are welcome. Please use GitHub Issues for feedback, questions, or troubleshooting.
Please use Python 3.4 or higher. To install the current PyPI version (recommended), run:
pip install hetio
For the latest GitHub version, run:
pip install git+https://github.com/dhimmel/hetio.git#egg=hetio
For development, clone or download-and-extract the repository. Then run pip install --editable . from the repository’s root directory. The --editable flag specifies editable mode, so updating the source updates your installation.
Once installed, tests can be executed by running py.test test/ from the repository’s root directory.
A Graph object stores a heterogeneous network and relies on the following classes:
- Bump the version in `__init__.py <hetio/__init__.py>`__.
- Add a release notes file in `release-notes <release-notes>`__. Format as a commit message that will be used as the GitHub release description.
- Run the following commands:
sh TAG=v`python setup.py --version` git add hetio/__init__.py release-notes/$TAG.* git commit --message "Upgrade to $TAG" git push git tag --annotate $TAG --file release-notes/$TAG.* git push --tags
- Recommended: Edit the GitHub release to improve formating and add a Zenodo badge.