项目作者: shiwentao00

项目描述 :
Protein binding site classification with deep graph neural networks.
高级语言: Python
项目地址: git://github.com/shiwentao00/GraphSite.git
创建时间: 2020-07-31T20:19:02Z
项目社区:https://github.com/shiwentao00/GraphSite

开源协议:GNU General Public License v3.0

下载


Graphsite

Graphsite is a software written in Python that reads a pocket (in .mol2) and compute its graph representation. In each generated graph, each atom represents a node. If the distance between two atoms are less than or equal to a threshold (default is 4.5 Angstrom), an undirected edge is formed between these two atoms. The edge attribute is the number of chemical bond(s) on this edge.

Intallation

  1. pip install graphsite

Usage

Graphsite is invented for applications which are based on graph neural networks (GNNs). However, the scope of this tool is not limited to deep graph learning. It can be used in any application that requires graph representaions of proteins/binding sites.

Basic usage

The main module of Graphsite is a callable class which reads 3 files as input:

  1. from graphsite import Graphsite
  2. gs = Graphsite()
  3. node_feature, edge_index, edge_attr = gs(
  4. # path to the .mol2 file of pocket
  5. mol_path=mol_path,
  6. # path to the .profile file of pocket which
  7. # contains the sequence entropy node feature
  8. profile_path=profile_path,
  9. # path to the .popsa file of pocket which contains
  10. # the solvent-accessible surface area node feature
  11. pop_path=pop_path
  12. )

The node_feature, edge_index, and edge_attr are numpy arrays. For more information about input paramters and output formats, see help:

  1. help(Graphsite)

A Pytorch example

Below is an example where the output matrices of graphsite are used to create graphs for Pytorch-geometric.

  1. from torch_geometric.data import Data
  2. data = Data(
  3. x=node_feature,
  4. edge_index=edge_index,
  5. edge_attr=edge_attr)
  6. )

For a complete deep learning example, please see Graphsite-classifier, where we build a graph classifier over 14 classes of binding pockets.

Cite our work

Graphsite is currently under peer review. Please cite this preprint if you find this package useful in your project :)

Feedback

If you have any questions or suggestions, please submit an issue or pull request. Anyone is welcome to contribute :)