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:
NumPypandasMatplotlibPyTorchPyTorch Geometric(https://pytorch-geometric.readthedocs.io/en/latest/)scikit-learn
Installation
You can install PathwayGAT by cloning the repository to your own computer:
git clone https://github.com/gersteinlab/PathwayGAT.git
Run PathwayGAT
After installation, you can run the program with the following command:
python main.py <module> <parameters>
There are three kinds of modules for PathwayGAT.
- Training module:
gene/microbe/microbe_gene/microbe_SNP/gene_SNP/microbe_gene_SNP(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 python main.py <module> -h to display help information for each module, listing all the required and optional parameters for the framework.
We also provide an example dataset in the test directory in this repository, along with a test bash script (test_script.sh) to run PathwayGAT on a small dataset. You can refer to these example files for the accepted format of different input files.
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 ofExplanationobjects fromPyTorch Geometric. EachExplanationobject contains explanation value for each feature in each node asnode_maskin the shape of (node, feature).
Reference & Contact
This framework is under consideration for publication.
If you have any questions, please reach out to zhao.weihao@yale.edu.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pathwaygat-1.0.0.tar.gz.
File metadata
- Download URL: pathwaygat-1.0.0.tar.gz
- Upload date:
- Size: 15.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5fb4917e98bc3f6165f422973783774eb1105d380f8728d1d7f87bfa0626654b
|
|
| MD5 |
5b2b965835671bbc11b070b5acd5aef8
|
|
| BLAKE2b-256 |
fd1bf808209b318bbaf4cdbbfad153ceeb3b8723a20a612c915b3dd1fcf5ef76
|
File details
Details for the file pathwaygat-1.0.0-py3-none-any.whl.
File metadata
- Download URL: pathwaygat-1.0.0-py3-none-any.whl
- Upload date:
- Size: 16.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4ff5b97958be492ece580e01878b78acd206e7e75505a8516dfc7952f4b4e78e
|
|
| MD5 |
583eb021ed080571f7c5672b46628abc
|
|
| BLAKE2b-256 |
ece2234126d9faf57ed1ca31f4b11ded3486962ab7a5ae374849dba16395721f
|