Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Contact map plotting for predicted protein residue-residue contacts.

Project Description

Python package for simple protein residue-residue contact map plotting. The tool can be used from python like this:

#!/usr/bin/env python

from contactvis import plot_contact_map

plot_contact_map.plot_map(fasta_filename, contact_filename, factor,
c2_filename='', psipred_horiz_fname='', psipred_vert_fname='',
pdb_filename='', is_heavy=False, chain='', sep=',', outfilename='')

Or from command line:

plot_contact_map.py [-h] [-o OUTFILE] [-f FACTOR] [--c2 C2] [--psipred_horiz PSIPRED_HORIZ]
[--psipred_vert PSIPRED_VERT] [--pdb PDB] [--heavy] [--chain CHAIN] fasta_file contact_file

To reproduce the different examples in the test folder run the following commands:

Simple map of the given contact file with coloring according to contact probability:

python ../plot_contact_map.py sequence.fasta predicted.contacts -o cm_simple.pdf

Comparison to contacts from the native PDB structure (pairwise CB-atom distance with 8Å cutoff):

python ../plot_contact_map.py sequence.fasta predicted.contacts -o cm_pdb.pdf --pdb native_structure.pdb

Compare two different predicted contact maps to each other and to a native PDB structure and include secondary structure information along the diagonal (red: helix, blue: sheet):

python ../plot_contact_map.py sequence.fasta predicted.contacts -o cm_compare_pdb.pdf --pdb native_structure.pdb --c2 predicted.contacts2 --psipred_horiz psipred.horiz
Release History

Release History

This version
History Node

0.1.6

History Node

0.1.5

History Node

0.1.4

History Node

0.1.3

History Node

0.1.2

History Node

0.1.1

History Node

0.1.0

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
ContactVis-0.1.6.tar.gz (8.4 kB) Copy SHA256 Checksum SHA256 Source Jan 9, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting