Skip to main content

Hetnets in Python

Project description

Latest DOI GitHub issues Build Status

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 lacking, testing coverage is poor, and the API is unstable. Contributions are welcome. Please use GitHub Issues for feedback, questions, or troubleshooting.

Installation

PyPI

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 -e . from the repository’s root directory. The -e 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:

  1. Graph

  2. MetaGraph

  3. Edge

  4. 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:

  1. Bump the version in `__init__.py <hetio/__init__.py>`__.

  2. Add a release notes file in `release-notes <release-notes>`__. Format as a commit message that will be used as the GitHub release description.

  3. 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

  1. Recommended: Edit the GitHub release to improve formating and add a Zenodo badge.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hetio-0.2.6.tar.gz (18.3 kB view details)

Uploaded Source

Built Distributions

hetio-0.2.6-py3.6.egg (48.2 kB view details)

Uploaded Source

hetio-0.2.6-py3-none-any.whl (23.0 kB view details)

Uploaded Python 3

File details

Details for the file hetio-0.2.6.tar.gz.

File metadata

  • Download URL: hetio-0.2.6.tar.gz
  • Upload date:
  • Size: 18.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for hetio-0.2.6.tar.gz
Algorithm Hash digest
SHA256 54a0b6a84140cfe5b65784778e7fae38f1604fe5e69d79ed62057e2b8e19c84a
MD5 109e920393ffbee5104f0f244dec4dd7
BLAKE2b-256 37a49b395e6fc33ae104532a20d0e64e2d9da620b0e8a47900c91c75a9158ab8

See more details on using hashes here.

File details

Details for the file hetio-0.2.6-py3.6.egg.

File metadata

  • Download URL: hetio-0.2.6-py3.6.egg
  • Upload date:
  • Size: 48.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for hetio-0.2.6-py3.6.egg
Algorithm Hash digest
SHA256 ed0ac202448caaa01d40be6347d6f6b3e8c5cccab75ac9ea45e6cf1e1186fba0
MD5 ab3c9e1920b1ef2568e04302ac95bf51
BLAKE2b-256 62eedcab7fb5d2781d3bf5455f8071989f45625881e6e92021fd090ff3bf3108

See more details on using hashes here.

File details

Details for the file hetio-0.2.6-py3-none-any.whl.

File metadata

File hashes

Hashes for hetio-0.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 3cdbdc688cbfa6e146afc918c7f9fd5426c3e5f25e29e2026fb6be112fb6d686
MD5 26066e9d67ba360328ef367fe3f30ea5
BLAKE2b-256 3dbcc37c1cd17c6f0621151c2fc76fcad53c9f2fcd312d6181eef01aad148cfc

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page