webinterface.UI_utils module#
- webinterface.UI_utils.build_submissions_figure()[source]#
Build a Plotly figure with faceted vertical bar charts showing submissions per module, one subplot per category (DDA, DIA, etc.). Excludes archived modules. Each bar stores its results_repo name in customdata for click-based pie chart interaction.
- Returns:
The bar figure and a mapping of module title to per-tool counts.
- Return type:
tuple(plotly.graph_objects.Figure, Dict[str, Dict[str, int]]) or (None, None)
- webinterface.UI_utils.build_tool_pie_chart(module_title: str, tool_counts: Dict[str, int])[source]#
Build a Plotly pie chart showing tool breakdown for a given module.
- Parameters:
- Return type:
- webinterface.UI_utils.get_module_submission_data() Dict[str, Dict[str, int]][source]#
Fetch submission data per module by downloading repo archives. Returns per-tool submission counts for each module. Requests are made concurrently to minimize latency.
- webinterface.UI_utils.get_monthly_visitors(api_endpoint: str, token: str, id_site: int) int | None[source]#
Gets the monthly visitors count from the Matomo API.
- Parameters:
- Returns:
The number of monthly visitors (nb_uniq_visitors of last 30 days), or
Noneif retrieval/parsing failed.- Return type:
Optional[int]
- webinterface.UI_utils.get_n_modules()[source]#
Get the number of modules in ProteoBench.
- Returns:
The number of modules.
- Return type:
- webinterface.UI_utils.get_n_modules_proposed(rst_text: str) int[source]#
Computes the number of proposed modules as the sum of modules ‘in discussion’ and ‘in development’.
- webinterface.UI_utils.get_n_submitted_points(url: str = 'https://proteobench.cubimed.rub.de/datasets/')[source]#
Get the number of submitted points in ProteoBench.
- Returns:
The number of submitted points (excluding ‘fasta/’ and ‘raw_files/’).
- Return type:
- webinterface.UI_utils.get_n_supported_tools()[source]#
Get the number of supported tools in ProteoBench.
- Returns:
The number of supported tools.
- Return type: