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

Uploaded Source

Built Distribution

proteingraph-0.2.1-py3-none-any.whl (14.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: proteingraph-0.2.1.tar.gz
  • Upload date:
  • Size: 13.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.9

File hashes

Hashes for proteingraph-0.2.1.tar.gz
Algorithm Hash digest
SHA256 2f9a06f13903a4f5f393de9f3be7d0a04bd58824dcf6279cedf809032f75bce2
MD5 295f4d761046ec6483460ded6a9f8f83
BLAKE2b-256 3693a532e2c5f35a8d46dcf32aed720f82d02468866a67642208b399d85d3766

See more details on using hashes here.

File details

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

File metadata

  • Download URL: proteingraph-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 14.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.9

File hashes

Hashes for proteingraph-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f1b4223f084a614e33399c5011258568cda7a1c5f31980818f108d113fbdd1b4
MD5 70878d8c8cbe8d1dae781285c50e35eb
BLAKE2b-256 c2a3b822cc479f6814f73c3f0a59c3dc83dd88fe0d63b0d5a97ca6dc9f70f6d0

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