Skip to main content

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

Metadata

Release files for ContactVis 0.1.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ContactVis 0.1.6
File Size Uploaded Provenance Actions
ContactVis-0.1.6.tar.gz 8.4 kB Without provenance Details for ContactVis-0.1.6.tar.gz

Release files / ContactVis-0.1.6.tar.gz

Download URL ContactVis-0.1.6.tar.gz
Size 8.4 kB
Tags Source
SHA-256 checksum
How to use checksums
7fed2a541d5ab6048e9e56623dae1f4361f3f1cdf7739b6a303eca1249642ec9
BLAKE2b-256 checksum
How to use checksums
fbbad4a7c0b3a8b22ed5fb0a8e39c67ce3be4cddda5e76fddc8752fe0947fc4a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for ContactVis 0.1.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page