[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EDJBYENFPQ00YJCFS6B5E7":3,"skill-same:01M7EDJBYENFPQ00YJCFS6B5E7":62},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":30,"commitSha":31,"skillDirectory":32,"forksCount":14,"repositoryHtmlUrl":33,"repositoryHomepageUrl":33,"ownerHtmlUrl":34,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":35,"install":36,"resources":49},"01M7EDJBYENFPQ00YJCFS6B5E7","bio-genome-assembly-scaffolding",null,"Orders and orients assembled contigs into chromosome-scale scaffolds from long-range linking data, inserting N-gap spacers (adds no sequence). Covers Hi-C\u002FOmni-C scaffolding (YaHS, SALSA2, 3D-DNA\u002FJuicer), Hi-C read-mapping prerequisites (map each end separately, no mate rescue, dedup, enzyme-aware), reading the contact map for misjoins\u002Finversions\u002Ffalse-duplications, manual curation in Juicebox\u002FPretextView (the VGP\u002FDToL standard), reference-guided scaffolding (RagTag) and its karyotype-erasure hazard, genetic-map (ALLMAPS) and Bionano optical-map integration, chimera-breaking before scaffolding, gap-filling, and telomere\u002Fcontig-vs-scaffold-N50 QC (tidk). Use when turning contigs into chromosomes with Hi-C, integrating a linkage map or optical map, choosing a scaffolder by available linking data, or judging whether a chromosome-scale assembly is trustworthy.","Mr-Nobody-Anonymous\u002FAll-skills","Mr-Nobody-Anonymous","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F184253119?v=4","01M7AEXFJHKTYQW5R0ZCQQTWFV","anonymous","01M7C00M3GQR4QKP9GZA42GFAK",0,"MIT","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-genome-assembly-scaffolding\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: bio-genome-assembly-scaffolding\ndescription: Orders and orients assembled contigs into chromosome-scale scaffolds from long-range linking data, inserting N-gap spacers (adds no sequence). Covers Hi-C\u002FOmni-C scaffolding (YaHS, SALSA2, 3D-DNA\u002FJuicer), Hi-C read-mapping prerequisites (map each end separately, no mate rescue, dedup, enzyme-aware), reading the contact map for misjoins\u002Finversions\u002Ffalse-duplications, manual curation in Juicebox\u002FPretextView (the VGP\u002FDToL standard), reference-guided scaffolding (RagTag) and its karyotype-erasure hazard, genetic-map (ALLMAPS) and Bionano optical-map integration, chimera-breaking before scaffolding, gap-filling, and telomere\u002Fcontig-vs-scaffold-N50 QC (tidk). Use when turning contigs into chromosomes with Hi-C, integrating a linkage map or optical map, choosing a scaffolder by available linking data, or judging whether a chromosome-scale assembly is trustworthy.\ntool_type: cli\nprimary_tool: YaHS\nsource: \"https:\u002F\u002Fgithub.com\u002FGPTomics\u002FbioSkills\"\nsource_repository: \"GPTomics\u002FbioSkills\"\nsource_path: \"genome-assembly\u002Fscaffolding\u002FSKILL.md\"\nlicense: \"MIT\"\nimported_at: \"2026-09-20\"\n---\n\n## Version Compatibility\n\nReference examples tested with: YaHS 1.2+, SALSA2 2.3+, juicer_tools 1.22\u002F2.0+, bwa 0.7.17+, chromap 0.2+, samtools 1.19+, RagTag 2.1+, tidk 0.2.3+, seqkit 2.6+.\n\nBefore using code patterns, verify installed versions match. If versions differ:\n- CLI: `\u003Ctool> --version` then `\u003Ctool> --help` to confirm flags\n\nhifiasm output filenames and YaHS\u002FSALSA2 enzyme and resolution defaults have changed across releases; confirm output names and `-e`\u002F`-r` behaviour against the installed version. The Hi-C-mapping flag set (`bwa mem -5SP` vs the Arima\u002FVGP per-end pipeline) varies by vendor (Arima, Dovetail\u002FOmni-C, Phase Genomics) - check the current mapping guide before pasting flags. If a command errors, introspect the tool and adapt rather than retrying.\n\n# Genome Scaffolding\n\n**\"Turn my contigs into chromosomes\"** -> Order and orient contigs by long-range linking signal, insert N-gap spacers, then curate the contact map - scaffolding adds no sequence, so the output is a draft chromosome structure, not finished sequence.\n- CLI: `yahs contigs.fa hic_to_contigs.bam` (Hi-C default), `run_pipeline.py -a contigs.fa -b sorted.bed -m yes` (SALSA2), `ragtag.py scaffold ref.fa contigs.fa` (reference-guided), `allmaps path` (linkage maps)\n\n## The Single Most Important Modern Insight -- Automated Scaffolding Produces a Draft; the Genome Is Trustworthy Only After Manual Curation of the Contact Map\n\nYaHS finishes in minutes and emits a file literally named `_scaffolds_final.agp`. It is **not final**. Hi-C scaffolding is a contact-frequency *inference* - it orders\u002Forients contigs by the polymer-physics signal that contact frequency decays with 1D distance - and it is error-prone exactly at the joins. Every reference-grade pipeline (VGP, Darwin Tree of Life, Earth BioGenome) treats the automated AGP as a *first pass* that a human curator then corrects in PretextView or Juicebox: breaking misjoins, flipping inversions, removing false duplications, assigning chromosomes by eye. Howe 2021 quantified the hidden labor across 111 VGP\u002FDToL assemblies: on average **221 interventions per Gb (67 breaks, 105 joins, 49 false-duplication removals)**. Three load-bearing consequences:\n\n1. **The contact map is the QC, not a decoration.** A correct chromosome shows one bright diagonal with smooth off-diagonal decay; off-diagonal blocks, anti-diagonal \"bowties,\" and bleeding between chromosomes are errors to inspect and break (see Reading the Contact Map). An assembly paper whose methods say \"scaffolded with [tool]\" but never mention curation\u002FJuicebox\u002FPretextView is shipping a draft - downgrade any claim that depends on large-scale order (synteny, fusions, structural variants).\n\n2. **Scaffold N50 is not contig N50, and conflating them is the classic reviewer catch.** Scaffolding inserts runs of **N** (estimated, often arbitrary length) and adds zero sequence. A genome can post \"scaffold N50 = 60 Mb, chromosome-scale!\" while its contig N50 is 200 kb - the contiguity is borne by gaps, not finished sequence. Always report contig N50, scaffold N50, gap count, and total N bases separately.\n\n3. **Reordering cannot rescue a bad contig.** Scaffolders take contigs as given; a chimeric contig drags the wrong sequence into the wrong chromosome. Chimeras must be **broken before scaffolding** (see Chimera-Breaking).\n\n## Linking-Data Modality Taxonomy\n\n| Modality | How it links | Scale | Status |\n|----------|--------------|-------|--------|\n| Hi-C \u002F Omni-C | proximity ligation; contact frequency ~ 1\u002F(1D distance) | chromosome-scale | Dominant modern method. Omni-C is enzyme-free\u002Fsequence-agnostic; Arima uses fixed enzyme motifs |\n| Bionano optical maps (DLS) | labeled motif patterns aligned to in-silico contig maps | megabase | Resolves large SVs and bridges complex repeats; separate instrument + library (cost decision) |\n| 10x linked reads | barcoded short reads from one long molecule | ~10-100 kb | DISCONTINUED by 10x (2020). Legacy data only; Tigmint\u002FARCS still run, no new data |\n| Genetic \u002F linkage maps | marker recombination order = chromosome order | chromosome-scale, low resolution | ALLMAPS integrates multiple maps; orthogonal validation of Hi-C |\n| Reference (homology) | align contigs to a related genome, copy its order | as good as synteny | RagTag. Fast, but imposes the reference's karyotype - see hazard below |\n| Long reads as linkers | k-mer pairs spanning junctions | read length | LINKS; mostly superseded by assembling with the long reads directly |\n| Mate-pair \u002F jumping | large-insert paired short reads | 2-40 kb | Legacy (SSPACE); chimeric-insert artifacts; never recommend today |\n\n## Decision Tree by Available Linking Data\n\n| Available linking data | Use | Why |\n|-------------|-----|-----|\n| Hi-C\u002FOmni-C, want fast contiguous default | YaHS | community default; fast, high N90, AGP + Juicebox outputs in one command |\n| Hi-C, want graph-aware conservative joins + input-error correction | SALSA2 `-m yes` (`-g graph.gfa`) | iterative; breaks chimeric input; uses assembly graph to avoid orientation errors |\n| Hi-C, interactive curation central to workflow | 3D-DNA + Juicer + Juicebox (JBAT) | the Aiden-lab `.assembly` \u003C-> Juicebox round-trip is built around hand-editing |\n| Hi-C, vertebrate\u002Freference-grade | YaHS or SALSA2 -> PretextView\u002FJBAT curation | VGP\u002FDToL standard: automate then curate |\n| Diploid, Hi-C, want both haplotypes as chromosomes | hifiasm `--h1\u002F--h2` to PHASE first, then YaHS to SCAFFOLD each haplotype | same Hi-C, two jobs - phasing picks the homolog, scaffolding orders along it (see Phasing vs Scaffolding) |\n| Closely related reference, karyotype NOT a question | RagTag `correct` then `scaffold` | homology ordering in minutes - but never if karyotype is the biology |\n| One or more genetic\u002Flinkage maps | ALLMAPS | integrates multiple maps; robust to marker errors; validates\u002Fanchors Hi-C |\n| Bionano optical maps + sequence assembly | Bionano Solve hybrid scaffold (before Hi-C) | megabase maps bridge complex repeats and large SVs |\n| 10x linked reads (legacy data) | Tigmint (break) -> ARCS\u002FARKS (link) | break misassemblies first; no new 10x data exists |\n| Contigs not yet QC'd \u002F haplotigs present | -> assembly-qc, purge_dups | scaffolding haplotigs strings them up as fake chromosomes |\n| Hi-C contact map for TADs\u002Floops, not chromosomes | -> hi-c-analysis\u002Fmatrix-operations | different use of the same assay |\n\n**Modern reference-grade recipe (vertebrate\u002Feukaryote):** HiFi -> hifiasm contigs -> (optional Bionano hybrid scaffold) -> Hi-C scaffold (YaHS\u002FSALSA2) -> **manual curation in PretextView\u002FJBAT** -> gap-fill (TGS-GapCloser) -> QC (tidk telomeres, contact-map diagonal, contig-vs-scaffold N50).\n\n## Hi-C Read Mapping (the step people botch)\n\nHi-C reads are **not** a normal paired-end library: the two ends come from *different* genomic loci ligated together, so standard PE proper-pair\u002Finsert-size logic mis-handles them.\n\n```bash\n# Map each end SEPARATELY with no mate rescue\u002Fpairing; -5 reports the 5' (junction) portion as primary.\nbwa index contigs.fa\nbwa mem -5SP -T0 -t 16 contigs.fa hic_R1.fq.gz hic_R2.fq.gz | \\\n    samtools view -@ 8 -b - > aligned.bam\n# Mandatory: mark\u002Fremove PCR + optical duplicates (Hi-C is duplicate-rich) before scaffolding.\nsamtools sort -@ 8 -n aligned.bam | samtools fixmate -m - - | \\\n    samtools sort -@ 8 - | samtools markdup -@ 8 - hic_to_contigs.bam\nsamtools index hic_to_contigs.bam\n```\n\n- **Each end separately, no mate rescue** (`-5SP`): `-5` = 5' portion of a chimeric junction read as primary; `-S`\u002F`-P` skip mate rescue and pairing. The Arima\u002FVGP per-end pipeline (`bwa mem` on R1 and R2 independently, `filter_five_end.pl`, `two_read_bam_combiner.pl`) is the higher-fidelity equivalent.\n- **MAPQ filter** at scaffolding (YaHS `-q`, SALSA2 reads MAPQ) to drop repeat-ambiguous reads.\n- **Enzyme awareness:** Arima\u002FDovetail-DpnII cut at fixed motifs (`GATC`); the scaffolder uses `-e` to model legitimate read starts. **Omni-C \u002F DNase Hi-C is enzyme-free** -> omit `-e` in YaHS, use `-e DNASE` in SALSA2.\n- **chromap** (Zhang 2021 *Nat Commun* 12:6566) is the fast modern alternative: `chromap --preset hic -r contigs.fa -x index -1 R1 -2 R2 ...` aligns + dedups Hi-C ~10x faster; YaHS accepts its output.\n\n## YaHS (the current default)\n\n```bash\nsamtools faidx contigs.fa\n# Enzyme: -e GATC (DpnII\u002FDovetail), -e GATC,GANTC (Arima 2-enzyme); OMIT -e for Omni-C\u002Fenzyme-free.\nyahs -e GATC -o out contigs.fa hic_to_contigs.bam\n# Outputs: out_scaffolds_final.agp + out_scaffolds_final.fa, intermediate out_rNN.agp, out.bin\n# Contig error-correction is ON by default (--no-contig-ec to disable; usually a mistake to disable).\n\n# Juicebox prep for curation (.hic + .assembly to load in JBAT):\n# NOTE: `juicer` here is the small utility BUNDLED with YaHS (operates on the .bin), NOT Aiden-lab Juicer;\n# `juicer_tools.jar` below IS the separate Aiden-lab jar. Do not confuse the two.\njuicer pre -a -o out_JBAT out.bin out_scaffolds_final.agp contigs.fa.fai 2>tmp_assembly.log\njava -Xmx48G -jar juicer_tools.jar pre out_JBAT.txt out_JBAT.hic \u003C(cat tmp_assembly.log | grep PRE_C_SIZE | awk '{print $2\" \"$3}')\n# After hand-editing in Juicebox, export out_JBAT.review.assembly, then:\njuicer post -o out_curated out_JBAT.review.assembly out_JBAT.liftover.agp contigs.fa\n```\n\nYaHS also accepts a BED (`bamToBed`) or PA5\u002Fpairs input. The `_scaffolds_final.agp` is the editable, reviewable object - curation edits the AGP, then regenerates FASTA. `--telo-motif` lets YaHS use telomere signal during scaffolding.\n\n## SALSA2 (graph-aware, iterative, breaks chimeras)\n\n```bash\nbamToBed -i aligned.bam > alignment.bed\nsort -k4 alignment.bed > sorted.bed                 # MUST sort by read name (column 4)\npython run_pipeline.py -a contigs.fa -l contigs.fa.fai -b sorted.bed \\\n       -e GATC -o salsa_out -m yes -g contigs_graph.gfa -p yes\n# -e DNASE for Omni-C\u002Fenzyme-free; -m yes enables input-error (chimera) correction; -p yes writes AGP+FASTA per iteration\n```\n\nThe signature `-m yes` step breaks input contigs where the Hi-C signal contradicts the assembler's join *before* scaffolding. Assembly headers must not contain `:`. `-i` sets iterations (default 3), `-c` min contig length (default 1000).\n\n## Reference-Guided Scaffolding (RagTag) -- Power and Peril\n\n```bash\nragtag.py correct ref.fa contigs.fa                 # break query at putative misassemblies vs reference FIRST\nragtag.py scaffold ref.fa ragtag_output\u002Fragtag.correct.fasta -t 16   # order\u002Forient by homology (minimap2 default)\n# Outputs ragtag.scaffold.agp + .fasta; inserts 100 bp N gaps by default; -C collapses unplaced into chr0.\n```\n\n**The peril (load-bearing):** RagTag orders contigs *to match the reference*, so by construction the output looks like the reference. Every real biological rearrangement that distinguishes the target organism - a chromosome fusion, fission, translocation, or inversion polymorphism - is silently **erased** and replaced by the reference's structure. **Never reference-scaffold a genome whose karyotype or large-scale structure is a biological question** - the pipeline \"discovers\" the reference's karyotype because it was imposed (this has happened in the literature). Acceptable uses: a structurally conserved close relative needing only a coordinate system for gene content; a scaffold *hypothesis* to then test\u002Fcorrect against Hi-C (`ragtag.py merge -b hic.bam` lets Hi-C arbitrate). On a genome with interesting structure the honest move is Hi-C + curation, full stop.\n\n## Genetic\u002FLinkage Maps (ALLMAPS) and Optical Maps (Bionano)\n\nALLMAPS (Tang 2015 *Genome Biol* 16:3) integrates one or more genetic maps to order\u002Forient scaffolds: `allmaps merge map1.csv map2.csv -o maps.bed` then `allmaps path maps.bed contigs.fa`. It is the gold standard for *validating* chromosome assignment and for species where Hi-C is hard; weight multiple maps by quality. Bionano Solve hybrid scaffolding (no journal paper; cite the *Bionano Solve Theory of Operation: Hybrid Scaffold* technical document) aligns DLS optical maps to in-silico contig maps, resolves conflicts, and merges into hybrid scaffolds - run it *before* Hi-C on large\u002Frepetitive genomes where megabase maps bridge repeat arrays Hi-C fumbles. The decision is economic (separate instrument + library), not purely technical.\n\n## Reading the Contact Map (the skill nobody writes down)\n\nThe map *displays its own errors* to a trained eye - render with PretextMap -> PretextView (interactive, emits a curated AGP), PretextSnapshot (static PNG), or Juicebox\u002FJBAT.\n\n- **Correct chromosome:** one bright diagonal, contacts decaying smoothly off-diagonal; inter-chromosome space dim and uniform.\n- **Misjoin:** the diagonal breaks - signal jumps off-diagonal into a separate block at the junction (two diagonals stitched at a corner). Break it.\n- **Inversion:** an **anti-diagonal \"bowtie\"\u002Fbutterfly** - the gradient runs backwards through the segment. The most common curation fix once recognized; flip it.\n- **Translocation \u002F wrong assignment:** off-diagonal bright blocks bleeding between what should be separate chromosomes.\n- **False duplication (leaked haplotig):** a faint off-diagonal stripe parallel to the diagonal contacting the same neighborhood. Remove it (49 of the 221 interventions\u002FGb).\n- **Hardest judgment:** the map is noisy near the diagonal even when correct. A *real* weak join is faint but coherent with the right decay shape; *mapping noise* is structureless speckle. Treat ambiguous near-diagonal signal as a flag to inspect, not a number to trust.\n\n## Chimera-Breaking, Gap-Filling, and Phasing-vs-Scaffolding\n\n- **Break, then scaffold:** SALSA2 `-m yes` and YaHS default contig-EC break chimeric input where Hi-C contradicts the join; Tigmint (Jackman 2018 *BMC Bioinformatics* 19:393) breaks before ARCS for linked reads; RagTag `correct` for the reference-based version. Disabling these to \"preserve the assembly\" is a common self-inflicted wound.\n- **Gap-filling is a SEPARATE downstream step** that replaces N-runs with real sequence by bridging long reads across the gap (TGS-GapCloser; LR_Gapcloser). Gaps sit at repeats (that is why the assembler stopped there), so a read can bridge into the *wrong* repeat copy and insert locally-plausible but globally-wrong sequence - worse than an honest N. Gap-fill *after* curation, sanity-check filled lengths against the gap estimate, and report which gaps were closed vs left.\n- **Hi-C-for-scaffolding vs Hi-C-for-phasing:** the same library, two jobs. Scaffolding asks *where on the chromosome* (orders collapsed contigs); phasing asks *which homolog* (hifiasm `--h1\u002F--h2` during assembly). When handed \"Hi-C, make chromosomes,\" the first question is *haploid scaffolding or diploid phasing+scaffolding?* - the tools and failure modes differ entirely.\n\n## Per-Method Failure Modes\n\n### Shipping the automated AGP as final\n**Trigger:** publishing `_scaffolds_final` without curation. **Mechanism:** automated joins are inferences error-prone at junctions (~221 edits\u002FGb in VGP\u002FDToL). **Symptom:** misjoins\u002Finversions in the contact map; later-discovered wrong synteny\u002Ffusions. **Fix:** curate in PretextView\u002FJBAT before any large-scale-order claim.\n\n### Conflating scaffold N50 with contig N50\n**Trigger:** reporting only scaffold N50. **Mechanism:** scaffolding adds N-gaps, not sequence. **Symptom:** spectacular scaffold N50 over a small contig N50 - contiguity is nitrogen. **Fix:** report both N50s, gap count, total N bases separately.\n\n### Reference-scaffolding a structurally interesting genome\n**Trigger:** RagTag on a non-model genome whose karyotype is studied. **Mechanism:** ordering to the reference imposes the reference's structure. **Symptom:** fusions\u002Ftranslocations\u002Finversions silently erased; circular \"discovery\" of the reference karyotype. **Fix:** Hi-C + curation; use RagTag only as a hypothesis to test.\n\n### Scaffolding before breaking chimeras\n**Trigger:** scaffolding contigs as given, contig-EC off. **Mechanism:** a chimeric contig drags region B into region A's chromosome; every join to it is wrong. **Symptom:** misjoins the contact map blames on the scaffolder. **Fix:** keep SALSA2 `-m yes` \u002F YaHS contig-EC on; Tigmint for linked reads.\n\n### Treating Hi-C reads as a normal PE library\n**Trigger:** `bwa mem` without `-5SP`, no dedup, or proper-pair logic. **Mechanism:** the two ends are different loci; mate rescue and insert-size filtering corrupt placement. **Symptom:** sparse\u002Fnoisy contact map, weak joins. **Fix:** map each end separately (`-5SP` or per-end pipeline), dedup, MAPQ filter, enzyme-aware.\n\n### Gap-filling across a repeat\n**Trigger:** running a gap-closer over the whole assembly to \"finish\" it. **Mechanism:** a long read bridges into a different copy of the repeat the gap sits in. **Symptom:** filled length far from the gap estimate; locally clean, globally mis-assembled. **Fix:** gap-fill after curation, sanity-check lengths, report closed-vs-left.\n\n## Quantitative Thresholds\n\n| Threshold | Source | Rationale |\n|-----------|--------|-----------|\n| ~221 curation interventions\u002FGb (67 breaks, 105 joins, 49 false-dup) | Howe 2021 *GigaScience* | expect the automated draft to be substantially editable, not finished |\n| Hi-C ~50-100M valid pairs (vertebrate); rule-of-thumb ~1x coverage per ~1 Mb | VGP practice (~approx) | too little -> weak\u002Fmissing joins, sparse noisy map; depends on genome size\u002Frepeats |\n| Scaffold N50 \u002F contig N50 > ~10x | curator reflex | contiguity is gap-borne; flag genome as contiguous-on-paper but unfinished |\n| T2T chromosome = telomere at BOTH ends + zero internal gaps | T2T convention | tidk both-end recovery with internal Ns = chromosome-scale but not finished |\n| RagTag default gap = 100 bp N | Alonge 2022 | placeholder length is arbitrary; never a real distance estimate |\n| MAPQ filter on Hi-C reads (e.g. YaHS `-q 10`) | mapping practice | drop repeat-ambiguous reads that create spurious joins |\n\n## Common Errors\n\n| Error \u002F symptom | Cause | Solution |\n|-----------------|-------|----------|\n| `_scaffolds_final` looks chromosome-scale but synteny is wrong | shipped uncurated draft | curate the contact map in PretextView\u002FJBAT |\n| Huge scaffold N50, small contig N50 | contiguity borne by N-gaps | report both; do not conflate |\n| Reference-scaffolded genome \"has\" the reference's karyotype | RagTag imposed the structure | re-scaffold with Hi-C + curation |\n| Sparse\u002Fnoisy contact map, few joins | Hi-C mapped as normal PE \u002F under-sequenced | remap with `-5SP`+dedup; add Hi-C coverage |\n| YaHS makes spurious joins | enzyme\u002FMAPQ misconfigured; chimeric contigs | set correct `-e` (omit for Omni-C), raise `-q`, keep contig-EC on |\n| SALSA2 errors on input | `:` in FASTA headers or BED not name-sorted | rename headers; `sort -k4` the BED |\n| Filled gaps far from estimated length | gap-filler bridged wrong repeat copy | gap-fill post-curation; sanity-check lengths; report closed-vs-left |\n\n## References\n\n- Zhou C, McCarthy SA, Durbin R. 2023. YaHS: yet another Hi-C scaffolding tool. *Bioinformatics* 39:btac808.\n- Ghurye J, et al. 2019. Integrating Hi-C links with assembly graphs for chromosome-scale assembly (SALSA2). *PLoS Comput Biol* 15:e1007273.\n- Dudchenko O, et al. 2017. De novo assembly of the Aedes aegypti genome using Hi-C yields chromosome-length scaffolds (3D-DNA). *Science* 356:92-95.\n- Durand NC, et al. 2016. Juicer provides a one-click system for analyzing loop-resolution Hi-C experiments. *Cell Syst* 3:95-98.\n- Alonge M, et al. 2022. Automated assembly scaffolding using RagTag elevates a new tomato system for high-throughput genome editing. *Genome Biol* 23:258.\n- Tang H, et al. 2015. ALLMAPS: robust scaffold ordering based on multiple maps. *Genome Biol* 16:3.\n- Yeo S, et al. 2018. ARCS: scaffolding genome drafts with linked reads. *Bioinformatics* 34:725-731.\n- Jackman SD, et al. 2018. Tigmint: correcting assembly errors using linked reads from large molecules. *BMC Bioinformatics* 19:393.\n- Zhang H, et al. 2021. Fast alignment and preprocessing of chromatin profiles with chromap. *Nat Commun* 12:6566.\n- Rhie A, et al. 2021. Towards complete and error-free genome assemblies of all vertebrate species (VGP). *Nature* 592:737-746.\n- Howe K, et al. 2021. Significantly improving the quality of genome assemblies through curation. *GigaScience* 10:giaa153.\n- Brown MR, Gonzalez de la Rosa PM, Blaxter M. 2025. tidk: a toolkit to rapidly identify telomeric repeats from genomic datasets. *Bioinformatics* 41:btaf049.\n- Bionano Genomics. Bionano Solve Theory of Operation: Hybrid Scaffold (technical document) - hybrid scaffolding has no journal paper.\n\n## Related Skills\n\n- long-read-assembly - Produces the contigs this skill orders into chromosomes\n- hifi-assembly - hifiasm phases haplotypes (Hi-C `--h1\u002F--h2`) before each is scaffolded\n- assembly-polishing - Polish contigs before scaffolding; gaps remain N until gap-filling\n- assembly-qc - Contig-vs-scaffold N50, BUSCO, and Merqury QV on the scaffolded result\n- hi-c-analysis\u002Fhic-data-io - Hi-C read\u002Fpairs handling feeding the scaffolder\n- comparative-genomics\u002Fsynteny-analysis - Validate scaffold order\u002Forientation against a related genome\n- workflows\u002Fgenome-assembly-pipeline - End-to-end QC -> assemble -> polish -> scaffold -> curate -> QC\n","## Version Compatibility\n\nReference examples tested with: YaHS 1.2+, SALSA2 2.3+, juicer_tools 1.22\u002F2.0+, bwa 0.7.17+, chromap 0.2+, samtools 1.19+, RagTag 2.1+, tidk 0.2.3+, seqkit 2.6+.\n\nBefore using code patterns, verify installed versions match. If versions differ:\n- CLI: `\u003Ctool> --version` then `\u003Ctool> --help` to confirm flags\n\nhifiasm output filenames and YaHS\u002FSALSA2 enzyme and resolution defaults have changed across releases; confirm output names and `-e`\u002F`-r` behaviour against the installed version. The Hi-C-mapping flag set (`bwa mem -5SP` vs the Arima\u002FVGP per-end pipeline) varies by vendor (Arima, Dovetail\u002FOmni-C, Phase Genomics) - check the current mapping guide before pasting flags. If a command errors, introspect the tool and adapt rather than retrying.\n\n# Genome Scaffolding\n\n**\"Turn my contigs into chromosomes\"** -> Order and orient contigs by long-range linking signal, insert N-gap spacers, then curate the contact map - scaffolding adds no sequence, so the output is a draft chromosome structure, not finished sequence.\n- CLI: `yahs contigs.fa hic_to_contigs.bam` (Hi-C default), `run_pipeline.py -a contigs.fa -b sorted.bed -m yes` (SALSA2), `ragtag.py scaffold ref.fa contigs.fa` (reference-guided), `allmaps path` (linkage maps)\n\n## The Single Most Important Modern Insight -- Automated Scaffolding Produces a Draft; the Genome Is Trustworthy Only After Manual Curation of the Contact Map\n\nYaHS finishes in minutes and emits a file literally named `_scaffolds_final.agp`. It is **not final**. Hi-C scaffolding is a contact-frequency *inference* - it orders\u002Forients contigs by the polymer-physics signal that contact frequency decays with 1D distance - and it is error-prone exactly at the joins. Every reference-grade pipeline (VGP, Darwin Tree of Life, Earth BioGenome) treats the automated AGP as a *first pass* that a human curator then corrects in PretextView or Juicebox: breaking misjoins, flipping inversions, removing false duplications, assigning chromosomes by eye. Howe 2021 quantified the hidden labor across 111 VGP\u002FDToL assemblies: on average **221 interventions per Gb (67 breaks, 105 joins, 49 false-duplication removals)**. Three load-bearing consequences:\n\n1. **The contact map is the QC, not a decoration.** A correct chromosome shows one bright diagonal with smooth off-diagonal decay; off-diagonal blocks, anti-diagonal \"bowties,\" and bleeding between chromosomes are errors to inspect and break (see Reading the Contact Map). An assembly paper whose methods say \"scaffolded with [tool]\" but never mention curation\u002FJuicebox\u002FPretextView is shipping a draft - downgrade any claim that depends on large-scale order (synteny, fusions, structural variants).\n\n2. **Scaffold N50 is not contig N50, and conflating them is the classic reviewer catch.** Scaffolding inserts runs of **N** (estimated, often arbitrary length) and adds zero sequence. A genome can post \"scaffold N50 = 60 Mb, chromosome-scale!\" while its contig N50 is 200 kb - the contiguity is borne by gaps, not finished sequence. Always report contig N50, scaffold N50, gap count, and total N bases separately.\n\n3. **Reordering cannot rescue a bad contig.** Scaffolders take contigs as given; a chimeric contig drags the wrong sequence into the wrong chromosome. Chimeras must be **broken before scaffolding** (see Chimera-Breaking).\n\n## Linking-Data Modality Taxonomy\n\n| Modality | How it links | Scale | Status |\n|----------|--------------|-------|--------|\n| Hi-C \u002F Omni-C | proximity ligation; contact frequency ~ 1\u002F(1D distance) | chromosome-scale | Dominant modern method. Omni-C is enzyme-free\u002Fsequence-agnostic; Arima uses fixed enzyme motifs |\n| Bionano optical maps (DLS) | labeled motif patterns aligned to in-silico contig maps | megabase | Resolves large SVs and bridges complex repeats; separate instrument + library (cost decision) |\n| 10x linked reads | barcoded short reads from one long molecule | ~10-100 kb | DISCONTINUED by 10x (2020). Legacy data only; Tigmint\u002FARCS still run, no new data |\n| Genetic \u002F linkage maps | marker recombination order = chromosome order | chromosome-scale, low resolution | ALLMAPS integrates multiple maps; orthogonal validation of Hi-C |\n| Reference (homology) | align contigs to a related genome, copy its order | as good as synteny | RagTag. Fast, but imposes the reference's karyotype - see hazard below |\n| Long reads as linkers | k-mer pairs spanning junctions | read length | LINKS; mostly superseded by assembling with the long reads directly |\n| Mate-pair \u002F jumping | large-insert paired short reads | 2-40 kb | Legacy (SSPACE); chimeric-insert artifacts; never recommend today |\n\n## Decision Tree by Available Linking Data\n\n| Available linking data | Use | Why |\n|-------------|-----|-----|\n| Hi-C\u002FOmni-C, want fast contiguous default | YaHS | community default; fast, high N90, AGP + Juicebox outputs in one command |\n| Hi-C, want graph-aware conservative joins + input-error correction | SALSA2 `-m yes` (`-g graph.gfa`) | iterative; breaks chimeric input; uses assembly graph to avoid orientation errors |\n| Hi-C, interactive curation central to workflow | 3D-DNA + Juicer + Juicebox (JBAT) | the Aiden-lab `.assembly` \u003C-> Juicebox round-trip is built around hand-editing |\n| Hi-C, vertebrate\u002Freference-grade | YaHS or SALSA2 -> PretextView\u002FJBAT curation | VGP\u002FDToL standard: automate then curate |\n| Diploid, Hi-C, want both haplotypes as chromosomes | hifiasm `--h1\u002F--h2` to PHASE first, then YaHS to SCAFFOLD each haplotype | same Hi-C, two jobs - phasing picks the homolog, scaffolding orders along it (see Phasing vs Scaffolding) |\n| Closely related reference, karyotype NOT a question | RagTag `correct` then `scaffold` | homology ordering in minutes - but never if karyotype is the biology |\n| One or more genetic\u002Flinkage maps | ALLMAPS | integrates multiple maps; robust to marker errors; validates\u002Fanchors Hi-C |\n| Bionano optical maps + sequence assembly | Bionano Solve hybrid scaffold (before Hi-C) | megabase maps bridge complex repeats and large SVs |\n| 10x linked reads (legacy data) | Tigmint (break) -> ARCS\u002FARKS (link) | break misassemblies first; no new 10x data exists |\n| Contigs not yet QC'd \u002F haplotigs present | -> assembly-qc, purge_dups | scaffolding haplotigs strings them up as fake chromosomes |\n| Hi-C contact map for TADs\u002Floops, not chromosomes | -> hi-c-analysis\u002Fmatrix-operations | different use of the same assay |\n\n**Modern reference-grade recipe (vertebrate\u002Feukaryote):** HiFi -> hifiasm contigs -> (optional Bionano hybrid scaffold) -> Hi-C scaffold (YaHS\u002FSALSA2) -> **manual curation in PretextView\u002FJBAT** -> gap-fill (TGS-GapCloser) -> QC (tidk telomeres, contact-map diagonal, contig-vs-scaffold N50).\n\n## Hi-C Read Mapping (the step people botch)\n\nHi-C reads are **not** a normal paired-end library: the two ends come from *different* genomic loci ligated together, so standard PE proper-pair\u002Finsert-size logic mis-handles them.\n\n```bash\n# Map each end SEPARATELY with no mate rescue\u002Fpairing; -5 reports the 5' (junction) portion as primary.\nbwa index contigs.fa\nbwa mem -5SP -T0 -t 16 contigs.fa hic_R1.fq.gz hic_R2.fq.gz | \\\n    samtools view -@ 8 -b - > aligned.bam\n# Mandatory: mark\u002Fremove PCR + optical duplicates (Hi-C is duplicate-rich) before scaffolding.\nsamtools sort -@ 8 -n aligned.bam | samtools fixmate -m - - | \\\n    samtools sort -@ 8 - | samtools markdup -@ 8 - hic_to_contigs.bam\nsamtools index hic_to_contigs.bam\n```\n\n- **Each end separately, no mate rescue** (`-5SP`): `-5` = 5' portion of a chimeric junction read as primary; `-S`\u002F`-P` skip mate rescue and pairing. The Arima\u002FVGP per-end pipeline (`bwa mem` on R1 and R2 independently, `filter_five_end.pl`, `two_read_bam_combiner.pl`) is the higher-fidelity equivalent.\n- **MAPQ filter** at scaffolding (YaHS `-q`, SALSA2 reads MAPQ) to drop repeat-ambiguous reads.\n- **Enzyme awareness:** Arima\u002FDovetail-DpnII cut at fixed motifs (`GATC`); the scaffolder uses `-e` to model legitimate read starts. **Omni-C \u002F DNase Hi-C is enzyme-free** -> omit `-e` in YaHS, use `-e DNASE` in SALSA2.\n- **chromap** (Zhang 2021 *Nat Commun* 12:6566) is the fast modern alternative: `chromap --preset hic -r contigs.fa -x index -1 R1 -2 R2 ...` aligns + dedups Hi-C ~10x faster; YaHS accepts its output.\n\n## YaHS (the current default)\n\n```bash\nsamtools faidx contigs.fa\n# Enzyme: -e GATC (DpnII\u002FDovetail), -e GATC,GANTC (Arima 2-enzyme); OMIT -e for Omni-C\u002Fenzyme-free.\nyahs -e GATC -o out contigs.fa hic_to_contigs.bam\n# Outputs: out_scaffolds_final.agp + out_scaffolds_final.fa, intermediate out_rNN.agp, out.bin\n# Contig error-correction is ON by default (--no-contig-ec to disable; usually a mistake to disable).\n\n# Juicebox prep for curation (.hic + .assembly to load in JBAT):\n# NOTE: `juicer` here is the small utility BUNDLED with YaHS (operates on the .bin), NOT Aiden-lab Juicer;\n# `juicer_tools.jar` below IS the separate Aiden-lab jar. Do not confuse the two.\njuicer pre -a -o out_JBAT out.bin out_scaffolds_final.agp contigs.fa.fai 2>tmp_assembly.log\njava -Xmx48G -jar juicer_tools.jar pre out_JBAT.txt out_JBAT.hic \u003C(cat tmp_assembly.log | grep PRE_C_SIZE | awk '{print $2\" \"$3}')\n# After hand-editing in Juicebox, export out_JBAT.review.assembly, then:\njuicer post -o out_curated out_JBAT.review.assembly out_JBAT.liftover.agp contigs.fa\n```\n\nYaHS also accepts a BED (`bamToBed`) or PA5\u002Fpairs input. The `_scaffolds_final.agp` is the editable, reviewable object - curation edits the AGP, then regenerates FASTA. `--telo-motif` lets YaHS use telomere signal during scaffolding.\n\n## SALSA2 (graph-aware, iterative, breaks chimeras)\n\n```bash\nbamToBed -i aligned.bam > alignment.bed\nsort -k4 alignment.bed > sorted.bed                 # MUST sort by read name (column 4)\npython run_pipeline.py -a contigs.fa -l contigs.fa.fai -b sorted.bed \\\n       -e GATC -o salsa_out -m yes -g contigs_graph.gfa -p yes\n# -e DNASE for Omni-C\u002Fenzyme-free; -m yes enables input-error (chimera) correction; -p yes writes AGP+FASTA per iteration\n```\n\nThe signature `-m yes` step breaks input contigs where the Hi-C signal contradicts the assembler's join *before* scaffolding. Assembly headers must not contain `:`. `-i` sets iterations (default 3), `-c` min contig length (default 1000).\n\n## Reference-Guided Scaffolding (RagTag) -- Power and Peril\n\n```bash\nragtag.py correct ref.fa contigs.fa                 # break query at putative misassemblies vs reference FIRST\nragtag.py scaffold ref.fa ragtag_output\u002Fragtag.correct.fasta -t 16   # order\u002Forient by homology (minimap2 default)\n# Outputs ragtag.scaffold.agp + .fasta; inserts 100 bp N gaps by default; -C collapses unplaced into chr0.\n```\n\n**The peril (load-bearing):** RagTag orders contigs *to match the reference*, so by construction the output looks like the reference. Every real biological rearrangement that distinguishes the target organism - a chromosome fusion, fission, translocation, or inversion polymorphism - is silently **erased** and replaced by the reference's structure. **Never reference-scaffold a genome whose karyotype or large-scale structure is a biological question** - the pipeline \"discovers\" the reference's karyotype because it was imposed (this has happened in the literature). Acceptable uses: a structurally conserved close relative needing only a coordinate system for gene content; a scaffold *hypothesis* to then test\u002Fcorrect against Hi-C (`ragtag.py merge -b hic.bam` lets Hi-C arbitrate). On a genome with interesting structure the honest move is Hi-C + curation, full stop.\n\n## Genetic\u002FLinkage Maps (ALLMAPS) and Optical Maps (Bionano)\n\nALLMAPS (Tang 2015 *Genome Biol* 16:3) integrates one or more genetic maps to order\u002Forient scaffolds: `allmaps merge map1.csv map2.csv -o maps.bed` then `allmaps path maps.bed contigs.fa`. It is the gold standard for *validating* chromosome assignment and for species where Hi-C is hard; weight multiple maps by quality. Bionano Solve hybrid scaffolding (no journal paper; cite the *Bionano Solve Theory of Operation: Hybrid Scaffold* technical document) aligns DLS optical maps to in-silico contig maps, resolves conflicts, and merges into hybrid scaffolds - run it *before* Hi-C on large\u002Frepetitive genomes where megabase maps bridge repeat arrays Hi-C fumbles. The decision is economic (separate instrument + library), not purely technical.\n\n## Reading the Contact Map (the skill nobody writes down)\n\nThe map *displays its own errors* to a trained eye - render with PretextMap -> PretextView (interactive, emits a curated AGP), PretextSnapshot (static PNG), or Juicebox\u002FJBAT.\n\n- **Correct chromosome:** one bright diagonal, contacts decaying smoothly off-diagonal; inter-chromosome space dim and uniform.\n- **Misjoin:** the diagonal breaks - signal jumps off-diagonal into a separate block at the junction (two diagonals stitched at a corner). Break it.\n- **Inversion:** an **anti-diagonal \"bowtie\"\u002Fbutterfly** - the gradient runs backwards through the segment. The most common curation fix once recognized; flip it.\n- **Translocation \u002F wrong assignment:** off-diagonal bright blocks bleeding between what should be separate chromosomes.\n- **False duplication (leaked haplotig):** a faint off-diagonal stripe parallel to the diagonal contacting the same neighborhood. Remove it (49 of the 221 interventions\u002FGb).\n- **Hardest judgment:** the map is noisy near the diagonal even when correct. A *real* weak join is faint but coherent with the right decay shape; *mapping noise* is structureless speckle. Treat ambiguous near-diagonal signal as a flag to inspect, not a number to trust.\n\n## Chimera-Breaking, Gap-Filling, and Phasing-vs-Scaffolding\n\n- **Break, then scaffold:** SALSA2 `-m yes` and YaHS default contig-EC break chimeric input where Hi-C contradicts the join; Tigmint (Jackman 2018 *BMC Bioinformatics* 19:393) breaks before ARCS for linked reads; RagTag `correct` for the reference-based version. Disabling these to \"preserve the assembly\" is a common self-inflicted wound.\n- **Gap-filling is a SEPARATE downstream step** that replaces N-runs with real sequence by bridging long reads across the gap (TGS-GapCloser; LR_Gapcloser). Gaps sit at repeats (that is why the assembler stopped there), so a read can bridge into the *wrong* repeat copy and insert locally-plausible but globally-wrong sequence - worse than an honest N. Gap-fill *after* curation, sanity-check filled lengths against the gap estimate, and report which gaps were closed vs left.\n- **Hi-C-for-scaffolding vs Hi-C-for-phasing:** the same library, two jobs. Scaffolding asks *where on the chromosome* (orders collapsed contigs); phasing asks *which homolog* (hifiasm `--h1\u002F--h2` during assembly). When handed \"Hi-C, make chromosomes,\" the first question is *haploid scaffolding or diploid phasing+scaffolding?* - the tools and failure modes differ entirely.\n\n## Per-Method Failure Modes\n\n### Shipping the automated AGP as final\n**Trigger:** publishing `_scaffolds_final` without curation. **Mechanism:** automated joins are inferences error-prone at junctions (~221 edits\u002FGb in VGP\u002FDToL). **Symptom:** misjoins\u002Finversions in the contact map; later-discovered wrong synteny\u002Ffusions. **Fix:** curate in PretextView\u002FJBAT before any large-scale-order claim.\n\n### Conflating scaffold N50 with contig N50\n**Trigger:** reporting only scaffold N50. **Mechanism:** scaffolding adds N-gaps, not sequence. **Symptom:** spectacular scaffold N50 over a small contig N50 - contiguity is nitrogen. **Fix:** report both N50s, gap count, total N bases separately.\n\n### Reference-scaffolding a structurally interesting genome\n**Trigger:** RagTag on a non-model genome whose karyotype is studied. **Mechanism:** ordering to the reference imposes the reference's structure. **Symptom:** fusions\u002Ftranslocations\u002Finversions silently erased; circular \"discovery\" of the reference karyotype. **Fix:** Hi-C + curation; use RagTag only as a hypothesis to test.\n\n### Scaffolding before breaking chimeras\n**Trigger:** scaffolding contigs as given, contig-EC off. **Mechanism:** a chimeric contig drags region B into region A's chromosome; every join to it is wrong. **Symptom:** misjoins the contact map blames on the scaffolder. **Fix:** keep SALSA2 `-m yes` \u002F YaHS contig-EC on; Tigmint for linked reads.\n\n### Treating Hi-C reads as a normal PE library\n**Trigger:** `bwa mem` without `-5SP`, no dedup, or proper-pair logic. **Mechanism:** the two ends are different loci; mate rescue and insert-size filtering corrupt placement. **Symptom:** sparse\u002Fnoisy contact map, weak joins. **Fix:** map each end separately (`-5SP` or per-end pipeline), dedup, MAPQ filter, enzyme-aware.\n\n### Gap-filling across a repeat\n**Trigger:** running a gap-closer over the whole assembly to \"finish\" it. **Mechanism:** a long read bridges into a different copy of the repeat the gap sits in. **Symptom:** filled length far from the gap estimate; locally clean, globally mis-assembled. **Fix:** gap-fill after curation, sanity-check lengths, report closed-vs-left.\n\n## Quantitative Thresholds\n\n| Threshold | Source | Rationale |\n|-----------|--------|-----------|\n| ~221 curation interventions\u002FGb (67 breaks, 105 joins, 49 false-dup) | Howe 2021 *GigaScience* | expect the automated draft to be substantially editable, not finished |\n| Hi-C ~50-100M valid pairs (vertebrate); rule-of-thumb ~1x coverage per ~1 Mb | VGP practice (~approx) | too little -> weak\u002Fmissing joins, sparse noisy map; depends on genome size\u002Frepeats |\n| Scaffold N50 \u002F contig N50 > ~10x | curator reflex | contiguity is gap-borne; flag genome as contiguous-on-paper but unfinished |\n| T2T chromosome = telomere at BOTH ends + zero internal gaps | T2T convention | tidk both-end recovery with internal Ns = chromosome-scale but not finished |\n| RagTag default gap = 100 bp N | Alonge 2022 | placeholder length is arbitrary; never a real distance estimate |\n| MAPQ filter on Hi-C reads (e.g. YaHS `-q 10`) | mapping practice | drop repeat-ambiguous reads that create spurious joins |\n\n## Common Errors\n\n| Error \u002F symptom | Cause | Solution |\n|-----------------|-------|----------|\n| `_scaffolds_final` looks chromosome-scale but synteny is wrong | shipped uncurated draft | curate the contact map in PretextView\u002FJBAT |\n| Huge scaffold N50, small contig N50 | contiguity borne by N-gaps | report both; do not conflate |\n| Reference-scaffolded genome \"has\" the reference's karyotype | RagTag imposed the structure | re-scaffold with Hi-C + curation |\n| Sparse\u002Fnoisy contact map, few joins | Hi-C mapped as normal PE \u002F under-sequenced | remap with `-5SP`+dedup; add Hi-C coverage |\n| YaHS makes spurious joins | enzyme\u002FMAPQ misconfigured; chimeric contigs | set correct `-e` (omit for Omni-C), raise `-q`, keep contig-EC on |\n| SALSA2 errors on input | `:` in FASTA headers or BED not name-sorted | rename headers; `sort -k4` the BED |\n| Filled gaps far from estimated length | gap-filler bridged wrong repeat copy | gap-fill post-curation; sanity-check lengths; report closed-vs-left |\n\n## References\n\n- Zhou C, McCarthy SA, Durbin R. 2023. YaHS: yet another Hi-C scaffolding tool. *Bioinformatics* 39:btac808.\n- Ghurye J, et al. 2019. Integrating Hi-C links with assembly graphs for chromosome-scale assembly (SALSA2). *PLoS Comput Biol* 15:e1007273.\n- Dudchenko O, et al. 2017. De novo assembly of the Aedes aegypti genome using Hi-C yields chromosome-length scaffolds (3D-DNA). *Science* 356:92-95.\n- Durand NC, et al. 2016. Juicer provides a one-click system for analyzing loop-resolution Hi-C experiments. *Cell Syst* 3:95-98.\n- Alonge M, et al. 2022. Automated assembly scaffolding using RagTag elevates a new tomato system for high-throughput genome editing. *Genome Biol* 23:258.\n- Tang H, et al. 2015. ALLMAPS: robust scaffold ordering based on multiple maps. *Genome Biol* 16:3.\n- Yeo S, et al. 2018. ARCS: scaffolding genome drafts with linked reads. *Bioinformatics* 34:725-731.\n- Jackman SD, et al. 2018. Tigmint: correcting assembly errors using linked reads from large molecules. *BMC Bioinformatics* 19:393.\n- Zhang H, et al. 2021. Fast alignment and preprocessing of chromatin profiles with chromap. *Nat Commun* 12:6566.\n- Rhie A, et al. 2021. Towards complete and error-free genome assemblies of all vertebrate species (VGP). *Nature* 592:737-746.\n- Howe K, et al. 2021. Significantly improving the quality of genome assemblies through curation. *GigaScience* 10:giaa153.\n- Brown MR, Gonzalez de la Rosa PM, Blaxter M. 2025. tidk: a toolkit to rapidly identify telomeric repeats from genomic datasets. *Bioinformatics* 41:btaf049.\n- Bionano Genomics. Bionano Solve Theory of Operation: Hybrid Scaffold (technical document) - hybrid scaffolding has no journal paper.\n\n## Related Skills\n\n- long-read-assembly - Produces the contigs this skill orders into chromosomes\n- hifi-assembly - hifiasm phases haplotypes (Hi-C `--h1\u002F--h2`) before each is scaffolded\n- assembly-polishing - Polish contigs before scaffolding; gaps remain N until gap-filling\n- assembly-qc - Contig-vs-scaffold N50, BUSCO, and Merqury QV on the scaffolded result\n- hi-c-analysis\u002Fhic-data-io - Hi-C read\u002Fpairs handling feeding the scaffolder\n- comparative-genomics\u002Fsynteny-analysis - Validate scaffold order\u002Forientation against a related genome\n- workflows\u002Fgenome-assembly-pipeline - End-to-end QC -> assemble -> polish -> scaffold -> curate -> QC\n",{"name":5,"source":24,"license":15,"tool_type":25,"description":7,"imported_at":26,"source_path":27,"primary_tool":28,"source_repository":29},"https:\u002F\u002Fgithub.com\u002FGPTomics\u002FbioSkills","cli","2026-09-20","genome-assembly\u002Fscaffolding\u002FSKILL.md","YaHS","GPTomics\u002FbioSkills","main","2d1750717747097b602acf30bd09a7cbd4b4c6ea","awesome_skills\u002Fbiology\u002Fbio-genome-assembly-scaffolding","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous","2026-11-09 11:45:36",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill bio-genome-assembly-scaffolding",{"tool":42,"command":43},"bunx","bunx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill bio-genome-assembly-scaffolding",{"tool":45,"command":46},"pnpm","pnpm dlx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill bio-genome-assembly-scaffolding","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-genome-assembly-scaffolding\u002FSKILL.md",true,[50,56],{"path":51,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":54,"sourceHtmlUrl":55},"examples\u002Fyahs_scaffolding.sh","SCRIPT","脚本",3315,"https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-genome-assembly-scaffolding\u002Fexamples\u002Fyahs_scaffolding.sh",{"path":57,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":60,"sourceHtmlUrl":61},"usage-guide.md","REFERENCE","参考文档",6545,"https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-genome-assembly-scaffolding\u002Fusage-guide.md",[63,71,78,85,92,99],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":70},"01M7FFFZPC2025JQQHPHDX154J","dei-assessment","Assess diversity, equity, and inclusion with metrics. TRIGGERS - Use when user needs help with dei-assessment related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fdei-assessment\u002FSKILL.md",[],[],"2026-11-16 10:05:34",{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":70},"01M7FFFWN8H4WA7A6Y398QKB6J","dei-action-plan","Create DEI action plans with goals and initiatives. TRIGGERS - Use when user needs help with dei-action-plan related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fdei-action-plan\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":70},"01M7FFFSHTM0QZRVZ2NRJTJ0PY","culture-fit-assessment","Design culture add assessment processes. TRIGGERS - Use when user needs help with culture-fit-assessment related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fculture-fit-assessment\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":70},"01M7FFFMA12RKEQA38KHJSXXPS","cowork-to-code-bridge","Use an already-installed, independently verified cowork-to-code bridge to run narrowly approved actions on the user's own macOS, Linux, or WSL2 machine through a local file queue.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fcowork-to-code-bridge\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":70},"01M7FFFH1F6M8YRGW5V487GH1K","counter-offer-response","Draft counter-offer responses for retention. TRIGGERS - Use when user needs help with counter-offer-response related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fcounter-offer-response\u002FSKILL.md",[],[],{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":70},"01M7FFFDGEHV8Y7J9N40HZXW52","continuous-feedback-system","Design continuous feedback systems. TRIGGERS - Use when user needs help with continuous-feedback-system related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fcontinuous-feedback-system\u002FSKILL.md",[],[]]