Skip to main content

PathMe is a Python package aimed to convert KEGG [2] [3] [4], Reactome [5] [6], and WikiPathways [7] [8] [9] to Biological Expression Language (BEL).

This project is the continuation of the ComPath web application aimed at exploring, analyzing, and curating pathway knowledge in a gene-centric view. This different approach involves converting all the pathways in these resources into BEL as a pivotal integration schema to harmonize entities and relationships in order across these multiple resources; thus, enabling a more comprehensive evaluation of pathway cross-talks, consensus, and boundaries. Additionally, PathMe is complemented with the PathMe-Viewer, a web application that enables querying, browsing, and navigating pathway knowledge assisted by a user-friendly visualization.

Database Versions

PathMe currently uses the following versions of the databases:

  • KEGG: Up-to-date (KEGG does not have tag its releases)

  • Reactome: 67 Release

  • WikiPathways: March 2020 Release

Citation

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

Installation Current version on PyPI Stable Supported Python Versions Apache-2.0

pathme can be directly installed from PyPi with pip:

$ python3 -m pip install pathme

To use the latest version install directly from GitHub:

$ python3 -m pip install git+https://github.com/PathwayMerger/PathMe.git
  1. or in editable mode with:

$ git clone https://github.com/PathwayMerger/PathMe.git
$ cd pathme
$ python3 -m pip install -e .

How to Use

Before using PathMe, make sure you have installed and populated the Bio2BEL HGNC and Bio2BEL ChEBI databases (Simple run:”python3 -m bio2bel_hgnc populate” and “python3 -m bio2bel_chebi populate”) in your favourite terminal.

Each database has three main commands: download, bel, and summarize:

  1. Download content

PathMe first requires to download the raw files from the original pathway databases. This can be accomplished by running the command (‘database’ can be either KEGG, Reactome, or WikiPathways). E.g., python3 -m pathme kegg download

$ python3 -m pathme <database> download
  1. Generate BEL Graphs

Once the raw files are downloaded, you can run the following to command to generate BELGraphs that will be exported as Python pickles files for further analysis. Furthermore, the conversion to BEL can be tuned differently for each database by using specific commands. For example, KEGG parameters are shown when running “python3 -m pathme kegg bel –help”. Finally, please bear in mind that converting the Reactome files take up to 8 hours due to the large amount of its RDF file.

$ python3 -m pathme <database> bel
  1. Summarize

Summarizes the result of the conversion to BEL.

$ python3 -m pathme <database> summarize

Advanced Parameters

KEGG Functionalities

The KEGG module of PathMe is able to handle KGML differently depending on the goal. By default, KEGG groups together the complex of nodes (e.g., gene families) into one node as it is depicted in the KEGG cartoons and represented in the KGML files. However, this behavior can be modified by adding the parameter –flatten=True in the exporting command. Example:

$ python3 -m pathme kegg bel --flatten

Export PathMe

Run the following command to see the different formats that you can export PathMe to (e.g., CX, SPIA, etc.):

$ python3 -m pathme export --help

Disclaimer

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

References

KEGG

PathMe makes use of KEGG KGML files that are downloaded via the KEGG API for academic purposes (please make sure you comply their Terms and Conditions).

Reactome

WikiPathways

Metadata

Release files for pathme 0.1.13

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pathme 0.1.13
File Size Uploaded
pathme-0.1.13.tar.gz 199.9 kB Details

Release files / pathme-0.1.13.tar.gz

Download URL pathme-0.1.13.tar.gz
Size 199.9 kB
Tags Source
SHA-256 checksum
How to use checksums
a2d7b2810344e3ab807a2fc6151a84977c3b31b0c6671b859bc3c8539f6ecf2f
BLAKE2b-256 checksum
How to use checksums
d6e4c65ebc957c7dc826610b615ec53266718de1ce4247715f13e977c070ca31
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.4

Release history Release notifications | RSS feed

This release

0.1.13 This release

1 release file

0.1.12

1 release file

0.1.11

1 release file

0.1.10

1 release file

0.1.9

1 release file

0.1.8

1 release file

0.1.7

1 release file

0.1.6

1 release file

0.1.5

1 release file

0.1.3

1 release file

0.1.1

1 release file

0.1.0

1 release file

0.0.11

2 release files

0.0.10

1 release file

0.0.9

1 release file

0.0.8

1 release file

0.0.7

1 release file

0.0.6

1 release file

0.0.5

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page