repic.utils.score_detections ============================ .. py:module:: repic.utils.score_detections .. autoapi-nested-parse:: Calaculates performance metrics of particle picking algorithm by comparing output to the normative (final particle sets from EMPIAR) Attributes ---------- .. autoapisummary:: repic.utils.score_detections.parser Functions --------- .. autoapisummary:: repic.utils.score_detections.get_segmentation_scores Module Contents --------------- .. py:function:: get_segmentation_scores(norm_boxes, pckr_boxes, conf_thresh=None, mrc_w=None, mrc_h=None) Creates segmanetation maps of particle picking algorithm and normative particle bounding boxes, then calculates performance metrics (precision, recall, F1-score, and positive fraction of particles) :param norm_boxes: list of normative particle bounding boxes :type norm_boxes: list :param pckr_boxes: list of particle picking algorithm bounding boxes :type pckr_boxes: list :keyword conf_thresh: false positive filtering threshold of particle picking algorithm :kwtype conf_thresh: float or None :keyword mrc_w: micrograph width (pixels) :kwtype mrc_w: int or None :keyword mrc_h: micrograph height (pixels) :kwtype mrc_h: int or None :returns: precision, recall, F1-score, and positive fraction of pixels :rtype: float, float, float, float .. py:data:: parser argparse parse_args() object :type: obj