mmtbx.polygon package

Submodules

mmtbx.polygon.output module

class mmtbx.polygon.output.blue_color_model

Bases: original_color_model

get_bin_color(value)
class mmtbx.polygon.output.color_model

Bases: object

get_bin_color(value)
get_histogram_colors(histograms, max, mean, relative_scaling=True)
mmtbx.polygon.output.convert_histogram_data(polygon_result)
mmtbx.polygon.output.get_basic_histogram_data(d_min)
mmtbx.polygon.output.get_stats_and_histogram_data(mvd_object, params, debug=False)
class mmtbx.polygon.output.grayscale_color_model

Bases: original_color_model

get_bin_color(value)
class mmtbx.polygon.output.histogram_layout(name, histogram, angle, length, center, center_offset)

Bases: object

get_absolute_label_position(units)
get_polygon_intersection(stat)
set_colors(bin_colors)
mmtbx.polygon.output.hsv2rgb(h, s, v)
class mmtbx.polygon.output.original_color_model

Bases: color_model

class mmtbx.polygon.output.polygon_layout(stats, histogram_layouts)

Bases: object

get_line_segments(units=1.0)
class mmtbx.polygon.output.rainbow_color_model

Bases: color_model

get_bin_color(value)
class mmtbx.polygon.output.red_color_model

Bases: original_color_model

get_bin_color(value)
class mmtbx.polygon.output.renderer(histogram_data, structure_stats, histogram_length=0.3, center=(0.5, 0.5), center_offset=0.025)

Bases: object

draw(out)
draw_box(out, points, color)
draw_dashed_line(out, start, end, color)
draw_labels(out, label, min, max, value, pos, angle)
draw_solid_line(out, start, end, color)
format_value(value, stat_name)
get_color_key()
ratio_cutoffs = [0.1, 0.25, 0.5, 1.0, 2.0, 3.0, 5.0]
resize(size)
set_color_model(model_name, relative_scaling=True)
class mmtbx.polygon.output.rmb_color_model

Bases: color_model

get_bin_color(value)

Module contents

mmtbx.polygon.apply_default_filter(database_dict, d_min, key='high_resolution')
mmtbx.polygon.convert_to_histogram(data, n_slots)
mmtbx.polygon.filter_and_convert(database_dict, keys)
mmtbx.polygon.get_statistics_percentiles(d_min, stats)

For a given set of statistics, determine their percentile ranking compared to other crystal structures at similar resolution.

mmtbx.polygon.load_db(file_name=None)
mmtbx.polygon.polygon(params=<libtbx.phil.scope_extract object>, d_min=None, show_histograms=True, extract_gui_data=False)
mmtbx.polygon.select_dict(database_dict, selection)
mmtbx.polygon.show_histogram(data, n_slots, smooth=True)