Edit on GitHub

parascape.discoveries_panel

Browse functional and other labels, their known members and precomputed claims.

Annotation membership is separate from prediction. Missing inference and validation remain visible. The claims view preserves its legacy calibration and visible filters; those legacy tests do not substitute for independently admitted biological benchmarks. Functional classes retain overlapping memberships and organism-specific source descriptions. Selecting a class opens its known genes; only recorded evaluations enable scorecard navigation, so an annotation never becomes an accuracy estimate.

TIPS = {'label': 'Browse functional domains, enzyme classes, phenotypes, stages, localization and other available labels. Known annotation and inferred claims have separate views; an absent claim or test remains visible.', 'status': "Tested: a legacy verifier passed the recipe's independence screen and agreed or disagreed. Untested: nothing independent reaches the gene, so only the generator's certainty is known. Outside the tested range: unlike every gene certainty was measured on, so no number is attached.", 'confidence': 'Of held-out genes given claims this confident, at least this share were right. Measured, not estimated: certainty is fit on genes whose answer was hidden.', 'lift': 'Confidence over how common the claimed class is among labelled genes. A claim of a class that is 80% of genes at 85% confidence says little; lift 2 or more says something.', 'table': "Click a claim to open it in the evidence panel: what was claimed, by what, how it was tested and what this recipe's claims were worth on held-out genes.", 'export': 'Save the claims shown, with every number and verdict, as a table.', 'colour': 'Colour the map by this label: annotated genes in full colour, claimed genes in their claimed class faded by how uncertain the claim is, unclaimed genes grey.', 'recipes': 'Why each label has the claims it has: the recipe chosen, whether it is calibrated end to end, and what its claims were worth on held-out genes.'}
STATUSES = ('tested', 'untested', 'outside tested range')
COLUMNS = ('gene_id', 'product', 'label', 'claim', 'confidence', 'lift', 'checks', 'status')
class DiscoveriesPanel(PySide6.QtWidgets.QWidget):

All available labels and classes, with a separate filtered claim view.

DiscoveriesPanel(organism: str, products=None, parent=None, context=None)
def gene_chosen(unknown):
def claim_chosen(unknown):
def colour_by(unknown):
def record_chosen(unknown):
organism
products
frame
context
coverage_warning
summary
label
status
confidence
lift
colour
export
tabs
annotations_page
label_table
annotation_note
annotation_class
annotation_record
annotation_functional
annotation_coverage
member_table
claims_page
table
recipes
shown
def selection(self) -> pandas.DataFrame:

The claims the filters leave, most confident first.

def refresh(self):

Re-apply the filters: the summary line, the table and the recipe note.

def save(self, path: str = '') -> int:

Write the claims shown to CSV or TSV. Returns how many rows were written.

staticMetaObject = PySide6.QtCore.QMetaObject("DiscoveriesPanel" inherits "QWidget": Methods: #33 type=Signal, signature=gene_chosen(QString), parameters=QString #34 type=Signal, signature=claim_chosen(QString,QString), parameters=QString, QString #35 type=Signal, signature=colour_by(QString), parameters=QString #36 type=Signal, signature=record_chosen(QString,QString), parameters=QString, QString )
def install(window) -> DiscoveriesPanel | None:

Add the Discoveries tab beside Strategies and wire it to the evidence panel and the map.