Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

The Blood-Brain Barrier (BBB) is a highly specialized vascular structure that plays a crucial role in maintaining Central Nervous System (CNS) homeostasis.

License

Notifications You must be signed in to change notification settings

dhanjal-lab/graphB3

Repository files navigation

graphB³

graphB³ is a Graph Convolutional Network (GCN)-based model designed to predict the Blood-Brain Barrier (BBB) permeability of chemical compounds. In addition to predictions, graphB³ highlights the substructures within a compound that contribute to its permeability status (BBB+ or BBB-) using GNNExplainer.

  • BBB+ (permeable) substructures are highlighted in red.
  • BBB- (non-permeable) substructures are highlighted in blue.

Features

  • Accurate BBB permeability prediction using graph neural networks.
  • Explainability via GNNExplainer to highlight contributing substructures.
  • Simple CLI usage for batch predictions.

Installation & Dependencies

graphB³ has been tested on Ubuntu 22.04.5 LTS.

Required Dependencies

Ensure the following packages are installed:

pip install numpy pandas matplotlib torch torchmetrics torch_geometric mxnet deepchem rdkit

Verified versions:

  • numpy: 1.26.4
  • pandas: 1.5.3
  • logging: 0.5.1.2
  • matplotlib: 3.8.2
  • rdkit: 2022.09.5
  • torch: 2.2.0+cu121
  • mxnet: 1.9.1
  • torchmetrics: 1.3.0.post0
  • torch_geometric: 2.5.0

Getting Started

Required Files

To use graphB³, download and place the following files in the same directory:

  1. deepchem_utils.py - Feature extraction from SMILES input.
  2. best_mcc_model_weights.pth - Pretrained graphB³ model weights.
  3. graphb³.py - Main script for running graphB³.
  4. bbb_test_smiles_sample.csv - Input file containing SMILES data.

Running graphB³

Use the following command to run graphB³:

python graphb3.py \
    --input_csv /path/to/bbb_test_smiles_sample.csv \
    --model_weights /path/to/best_mcc_model_weights.pth \
    --results_csv /path/to/results/bbb_example_results.csv \
    --output_dir /path/to/results \
    > output.log &

Notes:

  • Input molecules must be in SMILES format and stored in a .csv file.
  • The progress can be monitored via output.log.

Output

  • Prediction results will be saved in bbb_example_results.csv.
  • Highlighted substructures will be stored in the GraphB3_figures/ directory.

Data:

  • The data folder contains the BBB smiles data, which was used to train the model for graphB³

WebServer:


Contributing

If you would like to contribute to graphB³, feel free to submit an issue or a pull request.


Citation

If you use graphB³ in your research, please cite the relevant paper (paper link and citation).


Contact

For questions or issues, please open a GitHub issue or contact the maintainers.

About

The Blood-Brain Barrier (BBB) is a highly specialized vascular structure that plays a crucial role in maintaining Central Nervous System (CNS) homeostasis.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages