Interactive population-genomics dashboard
population_genomics_dashboard.RdBuilds a dashboard-oriented Quarto report with overview metrics, searchable tables, optional Plotly PCA and ancestry views, transparent scientific-quality components, provenance exports, and a compressed reproducibility bundle. Optional metadata and publication artifacts are reported as not applicable when absent rather than being treated as failed checks.
Usage
build_dashboard_summary(plan)
calculate_scientific_quality(plan)
write_population_genomics_dashboard(
results,
output_dir,
title = "Population genomics dashboard",
render = TRUE,
include = NULL,
exclude = NULL
)Arguments
- plan
A validated
PopgenVCFReportPlan.- results
A named list of canonical core or ancestry results, or an existing report plan.
- output_dir
Directory in which dashboard sources, exports, and rendered HTML are written.
- title
Dashboard title.
- render
Whether to render HTML with Quarto. Use
FALSEto generate deterministic sources and the reproducibility bundle without Quarto.- include, exclude
Optional analysis identifiers to include or exclude.
Value
build_dashboard_summary() returns a one-row data table. calculate_scientific_quality() returns the overall score, component table, and validation records. write_population_genomics_dashboard() returns the report plan, summary, quality assessment, artifact manifest, and output paths.
Details
The quality percentage is a weighted summary of canonical schema validation, explicit scientific validation, provenance completeness, and required artifact integrity. Every component, weight, applicability decision, fraction, and explanatory reason is exported to TSV and JSON. The score is a reporting aid and does not replace scientific review.