Skip to main content

A package for making graph representations of proteinstructures.

Project description

NOTICE: This package is going to be deprecated in favour of a peer-reviewed package, get-contacts. Please use that package going forward.

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:

$ 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.

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.2.0.tar.gz (12.8 kB view details)

Uploaded Source

Built Distribution

proteingraph-0.2.0-py3-none-any.whl (14.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: proteingraph-0.2.0.tar.gz
  • Upload date:
  • Size: 12.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.6.9

File hashes

Hashes for proteingraph-0.2.0.tar.gz
Algorithm Hash digest
SHA256 0ef59ef7ba427d2fec6dab2c415ffcd928b0abc149a9ba20f4b9bf443bd7f0a2
MD5 bff1575d6f576f7778aff6fcb1d4e83a
BLAKE2b-256 ebf0149ad6c04329a6353b24025e08c304e454201efe6fa0f67eb2cba9731ff0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: proteingraph-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 14.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.6.9

File hashes

Hashes for proteingraph-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5cb2cf5e8bb0b78d4bec9fe64d3b6a000a401aa948307bf38444ddee8a7a1622
MD5 3f48f906ed06392af6978ebd1ec793c7
BLAKE2b-256 f823af9cf7b0a34583795d40648566877922fb831d3a3c68cfcb9d5471f0ebfc

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