Git Product home page Git Product logo

ComPath Build Status Coverage Status Documentation Status zenodo

An integrative and extensible web application for exploring, analyzing, and curating pathway databases. ComPath is publicly available at https://compath.scai.fraunhofer.de/.

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:

New pathway/gene signatures resources can be added by forking the ComPath Template Repository.

Citation

If you use ComPath in your work, please consider citing:

Installation Current version on PyPI Stable Supported Python Versions MIT License

compath can be installed easily from PyPI with the following code in your favorite terminal:

python3 -m pip install compath

or from the latest code on GitHub with:

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

Setup

Easiest

After installing compath, run from the command line:

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 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 (see 'Mapping across gene/protein identifiers' section). Next, load all individual pathway database packages KEGG, Reactome, WikiPathways, and MSigDB with 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 python3 -m compath ls in your terminal. Alternatively, you can populate each package independently by running: python3 -m bio2bel_kegg populate, python3 -m bio2bel_reactome populate, python3 -m bio2bel_wikipathways populate, or python3 -m bio2bel_msig populate.

Mapping across gene/protein identifiers

In order to load the gene sets from default packages, ComPath assumes that 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. python3 -m pip install bio2bel_hgnc
  2. python3 -m bio2bel_hgnc populate

Running the Web Application

The application can be run simply with

python3 -m compath web

This command the Flask development server locally, by default on port 5000 (http://localhost:5000).

Curation Interface

Load mappings between pathways directly from the ComPath Curation package.

python3 -m compath load_mappings --connection="sqlite:////data/bio2bel.db"

Load hierarchical mappings from a pathway database already containing that information (e.g., Reactome).

python3 -m compath load_hierarchies --connection="sqlite:////data/bio2bel.db"

Create a user.

python3 -m compath manage --connection="sqlite:////data/bio2bel.db" users make_user  'email' 'password'

Make user admin.

python3 -m compath manage --connection="sqlite:////data/bio2bel.db" users make_admin 'email'

Docker Instructions

Deployment of ComPath with Docker

  1. Build the container with compath as a name.
docker build -t compath:0.0.1 .
  1. Create the data container in which the data will be located.
docker create -v /data --name compath-data compath:0.0.1
  1. Run docker container and connect it with the data container
docker run --name=compath --volumes-from compath-data --restart=always -d compath:0.0.1

For admin purposes and deploying ComPath inside Fraunhofer you can also run the following command

sh create_and_build_container.sh

Load Data

Loads the KEGG, Reactome, and WikiPathways modules into ComPath.

docker exec -t -it compath /opt/compath/src/bin/load_data.sh

Restart Container

Restarts the compath container

docker restart compath

Disclaimer

ComPath is a scientific software that has been developed in an academic capacity, and thus comes with no warranty or guarantee of maintenance, support, or back-up of data.

ComPath's Projects

compath icon compath

A web application for exploring, analyzing, and curating pathway databases

compath-resources icon compath-resources

This repository contains the different resources derived or generated using ComPath

compath-utils icon compath-utils

A repository containing abstract classes that Bio2BEL repos should extend to be adapted to the Compath environment

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.