conkit.plot.precisionevaluation module

A module to produce a precision evaluation plot

class PrecisionEvaluationFigure(hierarchy, min_cutoff=0.0, max_cutoff=100.0, cutoff_step=0.2, **kwargs)[source]

Bases: conkit.plot._figure.Figure

A Figure object specifically for a Precision evaluation.

This figure will illustrate the precision scores of a contact map at different precision scores. These can be determined at various start and end points with different stepwise increases in between.

Examples

>>> import conkit
>>> cmap = conkit.io.read('toxd/toxd.mat', 'ccmpred').top_map
>>> cmap.sequence = conkit.io.read('toxd/toxd.fasta', 'fasta').top_sequence
>>> pdb = conkit.io.read('toxd/toxd.pdb', 'pdb').top_map
>>> cmap.match(pdb, inplace=True)
>>> conkit.plot.PrecisionEvaluationFigure(cmap)

Attributes

hierarchy A ConKit conkit.core.ContactMap
cutoff_step The cutoff step
min_cutoff The minimum cutoff factor
max_cutoff The maximum cutoff factor

Methods

redraw() Re-draw the plot with updated parameters
cutoff_step

The cutoff step

hierarchy

A ConKit conkit.core.ContactMap

max_cutoff

The maximum cutoff factor

Raises:

ValueError

The maximum cutoff value is smaller than the the minimum

min_cutoff

The minimum cutoff factor

Raises:

ValueError

The minimum cutoff value is larger than or equal to the maximum

redraw()[source]

Re-draw the plot with updated parameters