metagenome-binning
Skill4 starsChanged 12 days agoMITView on GitHub
Recover metagenome-assembled genomes (MAGs) from contigs using MetaBAT2, refine with DAS Tool, and assess quality with CheckM2.
In this repository56 other files it gives its agents.
- bioinformatics-env-setupSkill
- design-thermostable-mutationsSkill
- download-gdcSkill
- download-geoSkill
- download-sraSkill
- source-summarizerSkill
- genome-alignment-qcSkill
- genome-read-alignmentSkill
- genome-variant-annotationSkill
- genome-variant-callingSkill
- genome-variant-filteringSkill
- metagenome-assemblySkill
- metagenome-functional-profilingSkill
- metagenome-host-removalSkill
- metagenome-taxonomic-profilingSkill
- ncbi-eutilities-assistantSkill
- ngs-quality-controlSkill
- ngs-read-preprocessingSkill
- paper-to-briefSkill
- predict-protein-heat-stabilitySkill
- researchSkill
- rnaseq-alignment-qcSkill
- rnaseq-differential-expressionSkill
- rnaseq-functional-enrichmentSkill
- rnaseq-read-alignmentSkill
- rnaseq-read-countingSkill
- rnaseq-transcript-quantificationSkill
- rpsblast-assistantSkill
- scrnaseq-cellranger-countSkill
- scrnaseq-cell-type-annotationSkill
- scrnaseq-clusteringSkill
- scrnaseq-differential-expressionSkill
- scrnaseq-integrationSkill
- scrnaseq-quality-controlSkill
- scrnaseq-trajectory-analysisSkill
- search-enaSkill
- search-geoSkill
- search-gsaSkill
- search-ncbi-datasetsSkill
- search-sraSkill
- stat-analyze-distributionSkill
- stat-assess-data-qualitySkill
- stat-bayesian-estimationSkill
- stat-cluster-samplesSkill
- stat-compare-multiple-groupsSkill
- stat-compare-two-groupsSkill
- stat-fit-glmSkill
- stat-fit-linear-modelSkill
- stat-learn-bayesian-networkSkill
- stat-logistic-regressionSkill
- stat-nonlinear-embeddingSkill
- stat-pairwise-correlationSkill
- stat-pcaSkill
- stat-survival-analysisSkill
- structured-intelligence-skill-creatorSkill
- <skill-id>Skill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
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
- Distinctive: line 30
Run MetaBAT2 for initial binning.
- Distinctive: line 32
If multiple binners used: run DAS Tool to select the best non-redundant bin set.
- Very specific: line 33
Run CheckM2 predict on the final bin set for completeness and contamination estimates.
≈ “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
Skill: metagenome-binning
Use When
- The user wants to recover individual microbial genomes from assembled metagenomic contigs.
- The user needs MAG quality assessment (completeness, contamination).
- The user wants to refine bins from multiple binners with DAS Tool.
- The user needs MIMAG-standard quality classifications for recovered genomes.
Inputs
- Required:
- Assembled contigs FASTA file.
- BAM file of reads mapped back to contigs (for coverage calculation).
- Optional:
--das-tool— Enable DAS Tool refinement using multiple binner results.--min-contig N— Minimum contig length for binning in bp (default: 1500).--threads N— Number of threads (default: 4).--outdir DIR— Output directory (default:binning_results).--checkm2-db PATH— Path to CheckM2 database.
Workflow
- Calculate contig coverage depth with MetaBAT2's
jgi_summarize_bam_contig_depths. - Run MetaBAT2 for initial binning.
- Optionally run additional binners (MaxBin2, CONCOCT) for DAS Tool refinement.
- If multiple binners used: run DAS Tool to select the best non-redundant bin set.
- Run CheckM2
predicton the final bin set for completeness and contamination estimates. - Classify bins by MIMAG standards: high-quality (>=90% complete, <5% contamination), medium-quality (>=50%, <10%), low-quality (below thresholds).
- Report: number of bins, quality distribution, total high/medium/low quality MAGs.
Output Contract
- MAG FASTA files — One FASTA file per bin (
<outdir>/bins/<bin_id>.fa). - CheckM2 quality report — Completeness and contamination per bin (
<outdir>/checkm2/quality_report.tsv). - Bin quality summary — Per-bin completeness, contamination, N50, genome size, and MIMAG classification (
<outdir>/bin_summary.txt).
Limits
- MetaBAT2 and CheckM2 must be installed and available on
$PATH. - CheckM2 requires a pre-downloaded database (approximately 3 GB).
- DAS Tool requires results from multiple binners as input; it is optional but recommended.
- Assembly must have sufficient depth for binning (>10x per genome is recommended).
- Contigs shorter than 1500 bp are typically excluded from binning.
- MIMAG quality standards: high-quality draft (>=90% completeness, <5% contamination), medium-quality draft (>=50% completeness, <10% contamination).
- Common failure cases:
- BAM file not sorted or indexed, causing
jgi_summarize_bam_contig_depthsto fail. - CheckM2 database not downloaded or path not set, preventing quality assessment.
- Insufficient sequencing depth (<10x per genome) producing fragmented or empty bins.
- BAM file not sorted or indexed, causing
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
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.

