Hetnets in Python
Project description
Hetnets in Python
Background
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.
Impetus: Development originated with a study to predict disease-associated genes and continues with a successive study to repurpose drugs.
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.
Installation
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/hetio/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.
Design
A Graph object stores a heterogeneous network and relies on the following classes:
- Graph
- MetaGraph
- Edge
- MetaEdge
Release instructions
This section is only relevant for project maintainers. Travis CI deployments are used to upload releases to PyPI and GitHub releases. To create a new release, do the following:
-
Bump the version in
__init__.py
. -
Add a release notes file in
release-notes
. Format as a commit message that will be used as the GitHub release description. -
Run the following commands:
TAG=v`python setup.py --version`
git add hetio/__init__.py release-notes/$TAG.*
git commit --message "Prepare $TAG release"
git push
git tag --annotate $TAG --file release-notes/$TAG.*
git push upstream $TAG
- Recommended: Edit the GitHub release to improve formatting and add a Zenodo badge.
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 hetio-0.2.10.tar.gz
.
File metadata
- Download URL: hetio-0.2.10.tar.gz
- Upload date:
- Size: 25.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34fcd471670d75ff74861bcf3070703dbe799e1cbf82ccefb93fe41ce91a5046 |
|
MD5 | a9c79beac8cef0b7b91bb26e1ce8b23e |
|
BLAKE2b-256 | d227cee274b7c1b399102f648adb506289294f5c7b11658aa65ae0ce0e08b63b |
File details
Details for the file hetio-0.2.10-py3-none-any.whl
.
File metadata
- Download URL: hetio-0.2.10-py3-none-any.whl
- Upload date:
- Size: 29.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dcfa41c721330bde8547770cf082526fdd732d5abcfed9111aced8b3069d2ca8 |
|
MD5 | fa2d4051892fd7a796d7c9c23545973a |
|
BLAKE2b-256 | 201b4a57064d9abfe22945baba2b61422f3f6d7c22da4ef2d934cfa53f40e879 |