bio-stats-ml-reporting
Skill9 starsChanged 4 months agoMITView on GitHub
Run statistics or machine learning on biological results and write a validated report. Use when testing hypotheses, training classifiers or rolling up discovery evidence.
In this repository35 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs/agents.mdAGENTS.md
- ai-scientist-evaluatorSkill
- arxiv-searchSkill
- beautiful-data-vizSkill
- bio-annotationSkill
- bio-assembly-qcSkill
- bio-binning-qcSkill
- bio-fasta-database-curatorSkill
- bio-foundation-housekeepingSkill
- bio-gene-callingSkill
- bioinformatics-projectSkill
- bio-interdomain-hgtSkill
- bio-logicSkill
- bio-phylogenomicsSkill
- bio-prefect-dask-nextflowSkill
- bio-protein-clustering-pangenomeSkill
- bio-reads-qc-mappingSkill
- biorxiv-searchSkill
- bio-structure-annotationSkill
- bio-viromicsSkill
- bio-workflow-methods-docwriterSkill
- crossref-lookupSkill
- csag-extractionSkill
- exploratory-data-analysisSkill
- manuscript-review-councilSkill
- notebooksSkill
- pdf-to-mdSkill
- plotly-dashboard-skillSkill
- polars-dovmedSkill
- proposal-reviewSkill
- public-db-lookupSkill
- scientific-impact-assessmentSkill
- scientific-writingSkill
- tracking-taxonomy-updatesSkill
The file
Files
Bio Stats ML Reporting
Aggregate results, train ML models, and produce reports with validated references.
Instructions
- Join outputs in DuckDB and build feature tables. Hand large tables to ML code as Arrow (
.arrow(),.pl(), or.df()on a DuckDB result) instead of writing intermediate CSVs. - Train baseline models and evaluate with cross-validation. Versions checked for this skill are in docs/README.md; pin the ones you use in the project's
pixi.toml.- CPU baseline: scikit-learn for linear, tree, and clustering baselines; XGBoost for gradient boosting.
- GPU node available (CUDA): set
device="cuda"on XGBoost (supported since v2.0). For scikit-learn-style estimators (random forest, k-means, PCA, UMAP), RAPIDS cuML provides GPU equivalents; record the device in the run log. - On HPC, train through the scheduler (
sbatch) and set explicit thread limits (n_jobs,nthread,OMP_NUM_THREADS) to match the allocation.
- Generate reports and validate references.
- Validate the prediction table with
scripts/validate_predictions.py. Keep group identifiers and confounder labels in the table so the gate can detect sample/group leakage, class imbalance, calibration failure, batch-outcome imbalance, and performance that does not beat the majority-class null.
- Validate the prediction table with
- For exploratory omics projects, aggregate discovery evidence across the literature-derived analysis playbook, annotation, phylogenomics, viromics, and comparative-genomics outputs.
- Comparative-axes rollup — join the per-axis comparison artifacts produced by upstream skills into a single
comparative_axes_summary.tsv. The rollup must have one row per (query genome, axis) and include:genome-property frontier(size, gene count, etc. — link torelative_genome_metrics.tsvandgenome_size_frontier.tsv)marker-gene census(link tomarker_census.tsv)family copy-number expansions/contractions(link tofamily_copy_number_comparison.tsvandfamily_expansion_candidates.tsv)synteny / conserved neighborhoods(link toconserved_neighborhoods.tsv)non-coding RNA census(link toncRNA_census.tsv) Each row records observation, comparison baseline, literature reference, status (notable / conserved / artifact / negative), and a follow-up test.
- Produce an interesting-findings section that ranks candidate discoveries relative to the literature-derived baseline and separates:
- strong candidates with multiple evidence types
- plausible candidates needing validation
- likely artifacts or conserved lineage features
- explicit negative findings where nothing notable was detected
- Include the comparison baseline, literature context, confidence, and next discriminating analyses for each candidate.
- Draw report figures (performance curves, calibration plots, effect sizes) with
/beautiful-data-viz: grey by default, color only for the compared models or the one highlighted result.
Quick Reference
| Task | Action |
| Validate predictions | uv run --script skills/bio-stats-ml-reporting/scripts/validate_predictions.py predictions.tsv --report validation.json --require-beats-null |
Input Requirements
Prerequisites:
- Tools declared in the project's pinned Pixi environment. See
docs/README.mdfor expected tools. - Results tables and metadata are available. Inputs:
- results/.parquet or results/.tsv
- metadata.tsv
Output
- results/bio-stats-ml-reporting/models/
- results/bio-stats-ml-reporting/metrics.tsv
- results/bio-stats-ml-reporting/comparative_axes_summary.tsv
- results/bio-stats-ml-reporting/discovery_summary.tsv
- results/bio-stats-ml-reporting/report.md
- results/bio-stats-ml-reporting/logs/
- results/bio-stats-ml-reporting/prediction_validation.json
Quality Gates
- Model performance sanity checks pass.
- Reference validation passes.
- On execution failure, preserve logs and report the failed command; retry only after diagnosing the cause and recording the changed parameters. Report unmet biological thresholds as results; never tune parameters solely to pass a gate.
- Verify input tables are readable and schema-consistent.
- Discovery summary joins candidate genes/features to annotation evidence, comparison baseline, literature context, and confidence.
comparative_axes_summary.tsvcovers all five mandatory axes (genome-property frontier, marker-gene census, family copy-number, synteny/neighborhoods, ncRNA census) for every query genome, with rows for axes that produced negative findings.- Final report states what is interesting, what is conserved/expected, what is likely artifact, and what should be tested next.
- Grouped splits have no sample or group overlap, calibration is reported, confounding and imbalance are quantified, and the model is compared with a declared null baseline.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

