conkit.plot.contactmap module

A module to produce a contact map plot

class ContactMapFigure(hierarchy, other=None, reference=None, altloc=False, use_conf=False, lim=None, **kwargs)[source]

Bases: conkit.plot.figure.Figure

A Figure object specifically for a ContactMap

This figure will illustrate the contacts in a contact map. This plot is a very common representation of contacts. With this figure, you can illustrate either your contact map by itself, compared against a second contact map, and/or matched against contacts extracted from a contact map.

hierarchy

The default contact map hierarchy

Type:ContactMap
other

The second contact map hierarchy

Type:ContactMap
reference

The reference contact map hierarchy

Type:ContactMap
altloc

Use the res_altloc positions [default: False]

Type:bool
use_conf

The marker size will correspond to the raw score [default: False]

Type:bool

Examples

>>> import conkit
>>> cmap = conkit.io.read('toxd/toxd.mat', 'ccmpred').top_map
>>> conkit.plot.ContactMapFigure(cmap)
draw()[source]
hierarchy
lim
other
redraw(**kwargs)
reference