Skip to main content

A package for making graph representations of proteinstructures.

Project description

# protein-graph

Computes a molecular graph for protein structures.

## why?

Proteins fold into 3D structures, and have a natural graph representation: amino acids are nodes, and biochemical interactions are edges.

I wrote this package as part of a larger effort to do graph convolutional neural networks on protein structures (represented as graphs). However, that's not the only thing I can foresee doing with this.

One may be interested in the topology of proteins across species and over evolutionary time. This package can aid in answering this question.

## how do I install this package?

Currently only `pip`-installable:

```bash
$ pip install proteingraph
```

## how do I use this package?

This package assumes that you have a standard protein structure file (e.g. a PDB file). This may be a file generated after solving the NMR or crystal structure of a protein, or it may be generated from homology modelling.

Once that has been generated, the molecular graph can be generated using Python code.

```python
from proteingraph import ProteinInteractionNetwork

p = ProteinInteractionNetwork('my_model.pdb')
```

Because the `ProteinInteractionNetwork` class inherits from NetworkX's `Graph` class, all methods that `Graph` has are inherited by `ProteinInteractionNetwork`, and it behaves just as a NetworkX graph does.

What this means is that all graph-theoretic metrics (e.g. degree centrality, betweenness centrality etc.) can be computed on the `ProteinInteractionNetwork` object.

See the HIV1 homology model example in the `examples/` directory for a minimal example.


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

proteingraph-0.1.2.tar.gz (13.7 kB view details)

Uploaded Source

Built Distribution

proteingraph-0.1.2-py3-none-any.whl (13.3 kB view details)

Uploaded Python 3

File details

Details for the file proteingraph-0.1.2.tar.gz.

File metadata

  • Download URL: proteingraph-0.1.2.tar.gz
  • Upload date:
  • Size: 13.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.6

File hashes

Hashes for proteingraph-0.1.2.tar.gz
Algorithm Hash digest
SHA256 fad74e063baa3f135a9cb3a277403c7914fb643dbdafeb73c0f34a711df48eb6
MD5 20139dfacb0b9461ab92296dafbace9f
BLAKE2b-256 78476edafe702805dc4c847ef02fe0bb9f7280d7e9e7ebbf68bd97ce9c5487e8

See more details on using hashes here.

File details

Details for the file proteingraph-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: proteingraph-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 13.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.6

File hashes

Hashes for proteingraph-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 85b79dcd978bb3bf5ac935dd8d5c37af242be7c04c58b4f9b3e4b7863cb4576d
MD5 76a11b6d03330515bdbdccf801b98f94
BLAKE2b-256 093c76a0356ddc596da4d405a2b64c3ba5cf492f9b3b219ad386bb223e8a969c

See more details on using hashes here.

Supported by

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