Skip to main content

PathwayGAT is a GAT-based framework that could integrate information from different biological modalities, such as genes, microbes, and genetic variations. PathwayGAT organizes different elements into pathways and train an explainable GAT network to perform different tasks and reveal the underlying biological mechanism.

Project description

PathwayGAT

PathwayGAT is a GAT-based framework that could integrate information from genes, microbes, and genetic variations. Users can utilize the script provided in this repository to train their own model and obtain insights to the biological process they are interested in with the explanation value generated by the model.

Prerequisites

PathwayGAT requires the following Python package:

Installation

It is recommended to create a separate conda environment for PathwayGAT. You can use the following command to install PathwayGAT from PyPI:

conda create -n test_pathwaygat python=3.9
conda activate test_pathwaygat
conda install numpy=1.26.4 pandas=2.2.2 matplotlib=3.8.4 torch-geometric scikit-learn
pip install pathwaygat

Run PathwayGAT

After installation, you can run the program with the following command:

pathwaygat <module> <parameters>

There are three kinds of modules for PathwayGAT.

  • Training module: gene/microbe/microbe_gene/microbe_SNP/gene_SNP/microbe_gene_SNP/modules (run different kinds of GAT training depending on the input dataset availability)
  • Evaluation module: evaluation (run cross-validation on the model parameters and plot ROC/PR curves)
  • Explanation module: explanation (run GNNExplainer to explain the model, outputting the importance measurement of each feature in each pathway and sample)

You can also run the command pathwaygat <module> -h to display help information for each module, listing all the required and optional parameters for the framework.

Output

After running PathwayGAT training, evaluation, and explanation, you will obtain a list of output files:

  • <output_prefix>.best_model.pth: The best PathwayGAT model obtained during training based on validation loss. It could be the model after the last epoch, but not necessarily.
  • <output_prefix>.final_model.pth: The PathwayGAT model obtained after training for all the epochs.
  • <output_prefix>_AUC.png: The ROC curve for the cross-validation step.
  • <output_prefix>_AUPR.png: The PR curve for the cross-validation step.
  • <output_prefix>_explanation_GNNExplainer_split.pt: The explanation output from GNNExplainer. The result is a list of Explanation objects from PyTorch Geometric. Each Explanation object contains explanation value for each feature in each node as node_mask in the shape of (node, feature).

Reference & Contact

If you have any questions about this package, please reach out to zhao.weihao@yale.edu.

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

pathwaygat-1.0.1.tar.gz (15.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pathwaygat-1.0.1-py3-none-any.whl (16.1 kB view details)

Uploaded Python 3

File details

Details for the file pathwaygat-1.0.1.tar.gz.

File metadata

  • Download URL: pathwaygat-1.0.1.tar.gz
  • Upload date:
  • Size: 15.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.19

File hashes

Hashes for pathwaygat-1.0.1.tar.gz
Algorithm Hash digest
SHA256 cbcfdd470f0f0951ae682c37c37bc02eaa9bf921de360e54b2463f4bb7b172c7
MD5 41762f2e26cfa2aa5a2e3db4c7aeda6a
BLAKE2b-256 9b96e977774508e0e0b2f19b337b20d3eff2781ab8da67e7e16528060aabbda8

See more details on using hashes here.

File details

Details for the file pathwaygat-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: pathwaygat-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 16.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.19

File hashes

Hashes for pathwaygat-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d2a724b5637fdbdc8daf500a809af08f70c7177f63aa979f9bc2fe6dd0cee7a1
MD5 3fa3c2947c7f3f80a393f58d78691240
BLAKE2b-256 6ea787b21e1f4a058db855356939953e4ca2f7c4966f9a892e79c5af36988d0b

See more details on using hashes here.

Supported by

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