Agent skill

bio-comparative-genomics-whole-genome-alignment

Build whole-genome alignments using Progressive Cactus (Armstrong 2020 reference-free clade-level WGA), Minigraph-Cactus (Hickey 2024 pangenome-aware), LASTZ chain/net (UCSC pipeline), MUMmer4 (Marçais 2018 pairwise), minimap2 -x asm5/10/20 (Li 2018 fast pairwise), AnchorWave (Song 2022 WGD-aware), and Mauve / progressiveMauve (bacterial). Operates the HAL toolkit (Hickey 2013) for downstream extraction including halSynteny, halLiftover, halBranchMutations, and hal2maf. Use when constructing multi-species alignments for comparative-annotation projection (TOGA), synteny detection, conservation

BioTender-maxgithub.com/BioTender-maxGitHub ↗
claude-codeships scriptsNOASSERTION
Install
npx skills add BioTender-max/awesome-bio-agent-skills --skill whole-genome-alignment --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 3
SKILL.md size: 30 KB
Bundled scripts: yes
Path: skills/bioskills/whole-genome-alignment/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 135
Language: Python

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

Review
written from the skill's own SKILL.md · Aug 5, 2026

What it does

The skill orchestrates whole-genome alignments using a mix of tools including Progressive Cactus (reference-free), Minigraph-Cactus (pangenome-aware), LASTZ chain/net (reference-anchored), MUMmer4, minimap2, AnchorWave, and Mauve/progressiveMauve. It operates the HAL toolkit for downstream extraction such as halSynteny, halLiftover, halBranchMutations, and hal2maf. It is used when constructing multi-species alignments for comparative-annotation projection (TOGA), synteny detection, conservation analyses (phyloP / PhastCons), or pangenome graph construction; it also covers choosing between reference-free and reference-anchored approaches, tuning for closely vs distantly related genomes, and producing HAL files for downstream tools.

The workflow supports multiple CLI entry points:

  • cactus jobStore seqFile.txt output.hal --binariesMode local for reference-free progressive WGA
  • cactus-pangenome --reference ref name --vcf for pangenome graphs
  • lastz target.fa[multiple] query.fa followed by the UCSC chain-net pipeline for pairwise reference-anchored alignment
  • minimap2 -ax asm5 ref.fa query.fa | samtools sort for fast pairwise alignment of closely related genomes
  • nucmer --maxmatch ref.fa query.fa then dnadiff for MUMmer4 pairwise alignment
  • anchorwave proali --ploidy 4 for WGD-aware sequence-level synteny alignment

How it works

The skill presents an algorithmic taxonomy and decision guidance among tools:

  • Progressive Cactus aligns multiple genomes via a phylogenetic tree producing HAL multi-genome alignments (reference-free).
  • Minigraph-Cactus builds a pangenome graph (VCF, GFA, BAM) by combining a minigraph SV graph with Cactus base-level alignments.
  • LASTZ + UCSC chain/net yields a reference-anchored, pairwise alignment (chain, net, MAF).
  • MUMmer4 (nucmer) provides fast pairwise alignments for closely related genomes.
  • minimap2 (with -x asm5/asm10/asm20) offers fast pairwise alignment, with sensitivity varying by identity.
  • AnchorWave provides WGD-aware sequence-level synteny alignment via CDS anchors and ploidy modeling.
  • Progressive Mauve and others provide alternative multi-genome alignment options, especially for bacteria.
  • HAL toolkit enables extraction and conversion (halSynteny, halLiftover, halBranchMutations, hal2maf) for downstream analyses.

The skill emphasizes choosing between reference-free and reference-anchored modes, scaling considerations (tree-guided vs pairwise), and producing HAL files for downstream tools.

When to use it

Use when constructing multi-species alignments for comparative annotation projection (TOGA), synteny detection, conservation analyses (phyloP / PhastCons), or pangenome graph construction. Use to select between reference-free (Cactus) and reference-anchored (LASTZ chains/nets) approaches and to tune sensitivity for closely vs distantly related genomes; to produce HAL files for downstream genome-wide tools.

What it can touch

  • CLI tools: cactus, cactus-pangenome, lastz, minimap2, nucmer, dnadiff, anchorwave.
  • HAL toolkit components: halSynteny, halLiftover, halBranchMutations, hal2maf.

Caveats

  • HAL file versions must be pinned to the version that produced them to avoid downstream tool incompatibilities.
  • Cactus scaling depends on a proper guide tree; mis-specified trees lead to quadratic scaling and incorrect ancestral assemblies.
  • Minimap2 may lose sensitivity at identity below ~70%; for distant comparisons prefer LASTZ.
  • Repeats should be masked prior to certain pipelines (e.g., LASTZ) to avoid TE-induced spurious chains.
  • Toil-based restarts require careful checkpointing; use --restart with the same jobStore path.
From the SKILL.md

## Version Compatibility Reference examples tested with: Progressive Cactus 2.9.1+ (ComparativeGenomicsToolkit/cactus; Armstrong 2020 Nature 587:246), Minigraph-Cactus (Hickey 2024 Nat Biotech 42:663; bundled with Cactus 2.5+), HAL toolkit 2.3+ (Hickey 2013 Bioinformatics 29:1341), LASTZ 1.04.22+, UCSC kentUtils for chain/net (Kent 2003 PNAS 100:11484), MUMmer 4.0.0+, minimap2 2.28+, AnchorWave 1.2.5+, progressiveMauve 2.4.0+, sibeliaz 1.2.5+, winnowmap 2.03+ (Jain 2022 Nat Methods 19:705). Toil workflow runner 6.0+ for Cactus on HPC/cloud. Before using code patterns, verify installed versions match. If versions differ: - CLI: `cactus --help`, `cactus-pangenome --help`, `halStats --help`, `lastz --version`, `nucmer --version`, `minimap2 --version` - Python: `pip show toil`, `toil --version` If code throws `Toil workflow restart failure`, `HAL file corrupted`, `WDL workflow missing`, the Cactus pipeline is Toil-based and requires careful checkpointing; failed runs must be restarted with `--restart`. HAL file versions differ across hal-toolkit releases; pin the version that produced the file. # Whole Genome Alignment **"Align these multiple genomes at the base-pair level"** -> Choose

What's inside
Steps it walks through
  1. Version Compatibility
  2. Algorithmic Taxonomy
  3. Decision Tree by Experimental Scenario
  4. Per-Tool Failure Modes
  5. Cactus running quadratically without species tree
  6. Branch-scale parameter mis-tuned
  7. Toil checkpoint restart failures
  8. Reference bias in LASTZ chain/net
  9. minimap2 sensitivity loss at < 70% identity
  10. Cactus producing wrong topology in ancestor assembly
  11. Repeats inflating LASTZ chain count
  12. HAL version mismatch breaking downstream tools
  13. Insufficient masking before Cactus
  14. AnchorWave WGD parameter mis-set
Ships with 2 files
  • examples/progressive_cactus_wga.sh
  • usage-guide.md
Commands it runs
for fa in genomes/*.fa; do
BuildDatabase -name ${species}_DB $fa
RepeatModeler -database ${species}_DB -threads 16
RepeatMasker -lib ${species}_DB-families.fa -xsmall -pa 16 $fa
done
cat > seqFile.txt << 'EOF'
cactus jobStore_path seqFile.txt output.hal \
halStats output.hal
hal2maf output.hal reference_genome ucsc.maf --refGenome human --chunkSize 1000000
for chr in $(cut -f1 reference.fa.fai); do
More from awesome-bio-agent-skills
All skills →
About this skill
What does the bio-comparative-genomics-whole-genome-alignment skill do?

Build whole-genome alignments using Progressive Cactus (Armstrong 2020 reference-free clade-level WGA), Minigraph-Cactus (Hickey 2024 pangenome-aware), LASTZ chain/net (UCSC pipeline), MUMmer4 (Marçais 2018 pairwise), minimap2 -x asm5/10/20 (Li 2018 fast pairwise), AnchorWave (Song 2022 WGD-aware), and Mauve / progressiveMauve (bacterial). Operates the HAL toolkit (Hickey 2013) for downstream extraction including halSynteny, halLiftover, halBranchMutations, and hal2maf. Use when constructing multi-species alignments for comparative-annotation projection (TOGA), synteny detection, conservation

How do I install it?

Run `npx skills add BioTender-max/awesome-bio-agent-skills --skill whole-genome-alignment --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From BioTender-max/awesome-bio-agent-skills, a repository with 135 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going