bio-binning-qc
Skill9 starsChanged 4 months agoMITView on GitHub
Bin metagenomic contigs with QuickBin and assess MAG quality with CheckM2, GUNC, EukCC, and GTDB-Tk. Use when binning an assembly or scoring bin completeness and contamination.
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-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-stats-ml-reportingSkill
- 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
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 16
Run /tracking-taxonomy-updates for BBTools-container QuickClade domain triage on the bin directory and the source assembly with percontig.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Bio Binning QC
Bin metagenomic contigs, route bins by domain, run domain-specific quality checks, and join the results into normalized tables.
Instructions
Tool guides and versions: docs/README.md.
- Map each sample's reads back to the assembly (BBMap or
bwa-mem2for short reads, minimap2 for long reads; see/bio-reads-qc-mapping), then compute per-sample contig depth from the sorted BAMs with CoverM v0.7.0+. - Bin contigs with QuickBin from Bryce Foster's BBTools container (
bryce911/bbtools:39.85; record the digest when pulled). QuickBin is the default for short-read and long-read assemblies (docs/quickbin.md). On a CUDA GPU node, SemiBin2 v2.3.0+ is the alternative. Use MetaBAT2 v2.18+ only to reproduce a prior pipeline. - Run
/tracking-taxonomy-updatesfor BBTools-container QuickClade domain triage on the bin directory and the source assembly withpercontig. Persist the per-contig screen so mixed bins are visible. - Route bins by the QuickClade domain screen:
- Bacteria or Archaea -> run GTDB-Tk taxonomy assignment. If the GTDB-Tk reference package is missing, set it up under
$BIO_DB_ROOT, exportGTDBTK_DATA_PATH, rungtdbtk check_install, and record the release before classification. - Eukaryota -> run EukCC v2.1.3+ for eukaryotic bins.
- Viral or virus-like -> remove from MAG QC and route candidate contigs/genomes to
/bio-viromics; use vConTACT3 for phage/prokaryotic-virus evidence and GVClass for giant-virus/Nucleocytoviricota candidates. - Mixed or low-confidence -> flag as potential chimeras and inspect per-contig assignments before QC scoring.
- Bacteria or Archaea -> run GTDB-Tk taxonomy assignment. If the GTDB-Tk reference package is missing, set it up under
- Run domain-specific QC:
- CheckM2 v1.1.0+ for bacterial and archaeal bins (v1.1.0 is a breaking upgrade: update the pinned Pixi environment and refresh the DIAMOND v3 database from Zenodo DOI 10.5281/zenodo.14897628).
- EukCC v2.1.3+ for eukaryotic bins.
- GUNC v1.1.0+ (needed for the
progenomes_3andgtdb_214databases) for bacterial and archaeal bins only, as a chimerism check next to CheckM2. Do not apply GUNC to eukaryotic bins.gunc runreads.fafiles from--input_dirby default; set--file_suffixto match other bin suffixes.
- Normalize routed outputs with
scripts/build_bin_qc_tables.py. The join rejects GUNC rows for non-prokaryotic routes, refuses prokaryotic or eukaryotic bins that lack their domain-specific QC or taxonomy outputs, and refuses to overwrite existing outputs. Accepted routes areprokaryote,eukaryote,prokaryotic_virus,giant_virus, andmanual_review.
Quick Reference
| Task | Action |
| Build normalized tables | uv run --script skills/bio-binning-qc/scripts/build_bin_qc_tables.py --routing domain_routing.tsv --checkm2 quality_report.tsv --gunc GUNC.progenomes_3.maxCSS_level.tsv --eukcc eukcc.csv --gtdbtk gtdbtk.bac120.summary.tsv --out-dir results/bio-binning-qc |
| Input tables | Native tool outputs, tab-separated: CheckM2 (Name, Completeness, Contamination), GUNC (genome, clade_separation_score, pass.GUNC), EukCC folder mode (bin, completeness, contamination, ncbi_lng), GTDB-Tk (user_genome, classification). FASTA suffixes on bin names are stripped before joining. When GTDB-Tk writes both bac120 and ar53 summaries, concatenate them with a single header line. |
Input Requirements
Prerequisites:
- Tools declared in the project's pinned Pixi environment. See
docs/README.mdfor expected tools. - Reference DB root: set
BIO_DB_ROOTto the project or site-local database directory. - Coverage/depth tables or reads available to compute coverage.
- Docker or Apptainer/Singularity available for
bryce911/bbtoolsQuickBin runs, or a documented local BBTools install. Inputs: - contigs.fasta
- coverage.tsv (per-sample depth table)
Output
- results/bio-binning-qc/bins/ (QuickBin or SemiBin2 output)
- results/bio-binning-qc/quickclade_percontig.tsv and domain_routing.tsv (from
/tracking-taxonomy-updates) - results/bio-binning-qc/bin_metrics.tsv (one row per routed bin; written by
build_bin_qc_tables.py) - results/bio-binning-qc/gtdbtk_taxonomy.tsv (one row per prokaryotic bin; written by
build_bin_qc_tables.py) - results/bio-binning-qc/bin_qc_report.json (routed-bin counts by domain; written by
build_bin_qc_tables.py) - results/bio-binning-qc/logs/
Quality Gates
- Completeness, contamination, and GUNC chimerism results are reported against project thresholds (for example MIMAG, see docs/README.md).
- 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 contigs.fasta and coverage.tsv are non-empty.
- Verify reference DBs for QC tools exist under the reference root.
- QuickClade
percontigscreen exists for the source assembly and bin set before CheckM2/EukCC/GTDB-Tk decisions. - Bacterial and archaeal bins have GTDB-Tk taxonomy with the database release recorded.
- Viral/virus-like bins are routed to
/bio-viromicsinstead of reported as MAGs. - Mixed-domain bins are flagged as possible contamination/chimeras with per-contig evidence.
bin_metrics.tsvcovers every routed bin, including viral and manual-review rows, andgtdbtk_taxonomy.tsvcovers every prokaryotic bin.
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.

