A module to produce a precision evaluation plot
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.
hierarchy
¶ContactMap
– The contact map hierarchy
cutoff_step
¶float – The cutoff step
min_cutoff
¶float – The minimum cutoff factor
max_cutoff
¶float – The maximum cutoff factor
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)
cutoff_step
The cutoff step
hierarchy
A ConKit 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
(*args, **kwargs)¶