Skip to main content

A web application for exploring and comparing the overlaps across pathway resources

Project description

ComPath |build| |coverage| |docs|
=================================
An interactive and extensible web application for comparative analysis of pathway databases

This package exposes the Bio2BEL pathway packages into a web application containing multiple built-in visualization and
analytics tools allowing for their analysis and comparison. By default, this packages wraps the following default
packages:

- `Bio2BEL KEGG <https://github.com/bio2bel/kegg>`_
- `Bio2BEL Reactome <https://github.com/bio2bel/reactome>`_
- `Bio2BEL WikiPathways <https://github.com/bio2bel/wikipathways>`_
- `Bio2BEL MSig <https://github.com/bio2bel/msig>`_

New pathway/gene signatures resources can be added by forking the `ComPath Template Repository <https://github.com/compath/compath_template>`_.

Installation |pypi_version| |python_versions| |pypi_license|
------------------------------------------------------------
``compath`` can be installed easily from `PyPI <https://pypi.python.org/pypi/compath>`_ with the
following code in your favorite terminal:

.. code-block:: sh

$ python3 -m pip install compath

or from the latest code on `GitHub <https://github.com/compath/compath>`_ with:

.. code-block:: sh

$ python3 -m pip install git+https://github.com/bio2bel/compath.git@master

Setup
-----
Easiest
~~~~~~~
After installing ``compath``, run from the command line:

.. code-block:: sh

$ python3 -m compath populate

This command populates all of the relevant Bio2BEL repositories for the default list, and if any optional ComPath
repositories have been registered with entry points, will also populated.

For Developers
~~~~~~~~~~~~~~
If you just cloned the repo and installed it from the source code, you can run the sh script ``load_compath.sh`` by
typing :code:`sh load_compath.sh` in your terminal. This script will first install all packages and later populate the
database.

If you have already installed the packages, but not loaded the data. First, load
`Bio2BEL HGNC <https://github.com/bio2bel/hgnc>`_ (see next section). Next, load all individual pathway database
packages KEGG, Reactome, WikiPathways, and MSigDB with :code:`python3 -m compath populate`. This command assumes that
these packages are already installed in your Python environment. You can check the packages installed by running
:code:`python3 -m compath ls` in your terminal. Alternatively, you can populate each package independently by running:
:code:`python3 -m bio2bel_kegg populate`, :code:`python3 -m bio2bel_reactome populate`,
:code:`python3 -m bio2bel_wikipathways populate`, or :code:`python3 -m bio2bel_msig populate`.

Curation Interface
------------------
- Load hierarchical mappings from a pathway database already containg that information (e.g., Reactome):

:code:`python3 -m compath load_hierarchies`

- Load mappings from template:

:code:`python3 -m compath add_mappings 'path/to/file/' 'pathway_database_1', pathway_database_2' 'curator_email'`

- Create a user:

:code:`python3 -m compath make_user 'email' 'password'`

- Make user admin:
:code:`python3 -m compath make_admin 'email'`


The web application runs locally by default on port 5000 -> http://localhost:5000).

Mapping across gene/protein identifiers
---------------------------------------

In order to load the gene sets from default packages, ComPath assumes that `Bio2BEL HGNC <https://github.com/bio2bel/hgnc>`_
has been already installed and populated. This package is required to perform the mapping from multiple Protein/Gene identifiers to HGNC symbols. The following steps are needed to install Bio2BEL HGNC:

1. :code:`python3 -m pip install bio2bel_hgnc`
2. :code:`python3 -m bio2bel_hgnc populate`

Running the Web Application
---------------------------
The application can be run simply with

.. code-block:: bash

python3 -m compath web

This runs the Flask development server locally, by default on port 5000. See http://localhost:5000.

.. |build| image:: https://travis-ci.org/ComPath/ComPath.svg?branch=master
:target: https://travis-ci.org/ComPath/ComPath
:alt: Build Status

.. |coverage| image:: https://codecov.io/gh/ComPath/ComPath/coverage.svg?branch=master
:target: https://codecov.io/gh/ComPath/ComPath?branch=master
:alt: Coverage Status

.. |docs| image:: http://readthedocs.org/projects/compath/badge/?version=latest
:target: https://compath.readthedocs.io/en/latest/
:alt: Documentation Status

.. |climate| image:: https://codeclimate.com/github/compath/compath/badges/gpa.svg
:target: https://codeclimate.com/github/compath/compath
:alt: Code Climate

.. |python_versions| image:: https://img.shields.io/pypi/pyversions/compath.svg
:alt: Stable Supported Python Versions

.. |pypi_version| image:: https://img.shields.io/pypi/v/compath.svg
:alt: Current version on PyPI

.. |pypi_license| image:: https://img.shields.io/pypi/l/compath.svg
:alt: MIT License


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

compath-0.0.1.tar.gz (7.5 MB view details)

Uploaded Source

Built Distribution

compath-0.0.1-py3-none-any.whl (35.6 kB view details)

Uploaded Python 3

File details

Details for the file compath-0.0.1.tar.gz.

File metadata

  • Download URL: compath-0.0.1.tar.gz
  • Upload date:
  • Size: 7.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for compath-0.0.1.tar.gz
Algorithm Hash digest
SHA256 d7d76ddc1c71227ef54d0758eedc82b809746bd2321f4d8e89fc145e8165c751
MD5 a1122886510404bf8a4c6d0ce686b5f2
BLAKE2b-256 d25dfdf998b086dcd18b313d565950cf1c2b876d64a20737773eeb2db6c49d8a

See more details on using hashes here.

File details

Details for the file compath-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for compath-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1ac4c95c4a7115fa8fa4f750b19b591f15639793ef27444e02131d68cd03d494
MD5 2ca67cfc3027bc279b98fa29c8f82fd9
BLAKE2b-256 8a5181c9c35687315899a837503e74ec64d18af3077717e3cf957f0529caebae

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