Install any skill in seconds. Free to start, no credit card required.
Get Started Free →De novo genome assembly from Oxford Nanopore or PacBio long reads using Flye and Canu. Produces highly contiguous assemblies suitable for complete bacterial genomes and resolving complex regions. Use when assembling genomes from ONT or PacBio reads.
.claude/skills/bio-genome-assembly-long-read-assembly/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-11 | ✗→✓ | ▲ Improved | 448% | 0% |
| case-15 | ✗→✓ | ▲ Improved | 39% | 0% |
| case-08 | ✓→✗ | ▼ Worse | 271% | 0% |
| case-09 | ✓→✓ | = Same ✓ | 266% | 0% |
| case-10 | ✓→✓ | = Same ✓ | 185% | 0% |
<!--
#
#
-->
Assemble genomes from Oxford Nanopore (ONT) or PacBio long reads for highly contiguous assemblies.
| Tool | Speed | Memory | Best For | |------|-------|--------|----------| | Flye | Fast | Moderate | General purpose, bacteria, ONT | | Canu | Slow | High | High accuracy, complex genomes | | Wtdbg2 | Very fast | Low | Draft assemblies |
> Note: For PacBio HiFi data, see the dedicated hifi-assembly skill which covers hifiasm.
bashconda install -c bioconda flye
bash# Oxford Nanopore flye --nano-raw reads.fastq.gz --out-dir flye_output --threads 16 # PacBio CLR flye --pacbio-raw reads.fastq.gz --out-dir flye_output --threads 16 # PacBio HiFi flye --pacbio-hifi reads.fastq.gz --out-dir flye_output --threads 16
| Option | Read Type | |--------|-----------| | --nano-raw | ONT regular reads | | --nano-corr | ONT corrected reads | | --nano-hq | ONT Q20+ reads (Guppy 5+) | | --pacbio-raw | PacBio CLR | | --pacbio-corr | PacBio corrected | | --pacbio-hifi | PacBio HiFi/CCS |
| Option | Description | |--------|-------------| | --out-dir | Output directory | | --threads | Number of threads | | --genome-size | Estimated genome size (e.g., 5m, 100m) | | --iterations | Polishing iterations (default: 1) | | --meta | Metagenome mode | | --plasmids | Recover plasmids | | --keep-haplotypes | Don't collapse haplotypes | | --scaffold | Enable scaffolding |
bash# Estimate if unknown flye --nano-raw reads.fq.gz --out-dir output --genome-size 5m # Size formats: 1000, 1k, 1m, 1g
flye_output/
├── assembly.fasta # Final assembly
├── assembly_graph.gfa # Assembly graph
├── assembly_info.txt # Contig statistics
└── flye.log # Log filebashflye \ --nano-raw bacteria.fastq.gz \ --out-dir bacteria_assembly \ --genome-size 5m \ --threads 16
bashflye \ --nano-raw metagenome.fastq.gz \ --out-dir meta_assembly \ --meta \ --threads 32
bashflye \ --nano-raw isolate.fastq.gz \ --out-dir assembly \ --plasmids \ --threads 16
bashconda install -c bioconda canu
bash# ONT reads canu -p assembly -d canu_output genomeSize=5m -nanopore reads.fastq.gz # PacBio HiFi canu -p assembly -d canu_output genomeSize=5m -pacbio-hifi reads.fastq.gz
| Option | Description | |--------|-------------| | -p | Assembly prefix | | -d | Output directory | | genomeSize= | Estimated size (required) | | maxThreads= | Max threads | | maxMemory= | Max memory (e.g., 64g) | | useGrid=false | Disable grid execution | | correctedErrorRate= | Expected error rate |
| Option | Read Type | |--------|-----------| | -nanopore | ONT reads | | -nanopore-raw | ONT raw (deprecated) | | -pacbio | PacBio CLR | | -pacbio-hifi | PacBio HiFi/CCS |
bashcanu -p asm -d output genomeSize=5m \ -nanopore reads.fq.gz \ useGrid=false \ maxThreads=16 \ maxMemory=32g
bashcanu -p asm -d output genomeSize=5m \ -pacbio-hifi reads.fq.gz \ correctedErrorRate=0.01
canu_output/
├── assembly.contigs.fasta # Contigs
├── assembly.unassembled.fasta
├── assembly.report
└── assembly.seqStore/bashconda install -c bioconda wtdbg
bash# Assemble wtdbg2 -x ont -g 5m -t 16 -i reads.fq.gz -o draft # Consensus wtpoa-cns -t 16 -i draft.ctg.lay.gz -o draft.ctg.fa
| Preset | Platform | |--------|----------| | -x ont | ONT R9 | | -x ccs | PacBio HiFi | | -x rs | PacBio CLR | | -x sq | ONT R10 |
bash#!/bin/bash set -euo pipefail READS=$1 OUTDIR=$2 SIZE=${3:-5m} echo "=== ONT Bacterial Assembly ===" # Flye assembly flye \ --nano-raw $READS \ --out-dir ${OUTDIR}/flye \ --genome-size $SIZE \ --threads 16 # Stats echo "Assembly statistics:" cat ${OUTDIR}/flye/assembly_info.txt echo "Assembly: ${OUTDIR}/flye/assembly.fasta"
bash#!/bin/bash set -euo pipefail LONG=$1 SHORT_R1=$2 SHORT_R2=$3 OUTDIR=$4 # 1. Long-read assembly with Flye flye --nano-raw $LONG --out-dir ${OUTDIR}/flye --genome-size 5m --threads 16 # 2. Polish with short reads (Pilon) # See assembly-polishing skill
| Metric | Bacterial | Eukaryotic | |--------|-----------|------------| | Contigs | 1-10 | 100-1000+ | | N50 | >1 Mb | Variable | | Complete chromosomes | Often | Rare |
<!-- AUTHOR_SIGNATURE: 9a7f3c2e-MD-BABU-MIA-2026-MSSM-SECURE -->
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-09 | pass→pass | 3,373 | 3,301 | -2% | 1 | 1 | 0% | 700 | 2,562 | +266% | 0 | 0 | — |
case-10 | pass→pass | 3,931 | 2,988 | -24% | 1 | 1 | 0% | 888 | 2,533 | +185% | 0 | 0 | — |
case-19 | pass→pass | 2,424 | 1,827 | -25% | 1 | 1 | 0% | 484 | 2,224 | +360% | 0 | 0 | — |
case-20 | pass→pass | 3,690 | 3,694 | +0% | 1 | 1 | 0% | 706 | 2,671 | +278% | 0 | 0 | — |
case-05 | pass→pass | 4,532 | 2,816 | -38% | 1 | 1 | 0% | 871 | 2,472 | +184% | 0 | 0 | — |
case-06 | pass→pass | 3,349 | 1,207 | -64% | 1 | 1 | 0% | 657 | 2,143 | +226% | 0 | 0 | — |
case-07 | pass→pass | 2,984 | 2,161 | -28% | 1 | 1 | 0% | 613 | 2,300 | +275% | 0 | 0 | — |
case-08 | pass→fail | 3,479 | 2,988 | -14% | 1 | 1 | 0% | 675 | 2,506 | +271% | 0 | 0 | — |
case-01 | pass→pass | 3,945 | 2,249 | -43% | 1 | 1 | 0% | 660 | 2,383 | +261% | 0 | 0 | — |
case-02 | pass→pass | 4,052 | 2,813 | -31% | 1 | 1 | 0% | 733 | 2,456 | +235% | 0 | 0 | — |
case-03 | pass→pass | 6,518 | 4,603 | -29% | 1 | 1 | 0% | 1,291 | 2,740 | +112% | 0 | 0 | — |
case-04 | pass→pass | 4,518 | 1,872 | -59% | 1 | 1 | 0% | 876 | 2,292 | +162% | 0 | 0 | — |
case-11 | fail→pass | 6,492 | 2,997 | -54% | 1 | 1 | 0% | 475 | 2,605 | +448% | 0 | 0 | — |
case-12 | pass→pass | 4,875 | 2,248 | -54% | 1 | 1 | 0% | 914 | 2,383 | +161% | 0 | 0 | — |
case-13 | pass→pass | 5,741 | 2,713 | -53% | 1 | 1 | 0% | 1,146 | 2,521 | +120% | 0 | 0 | — |
case-14 | pass→pass | 2,947 | 2,585 | -12% | 1 | 1 | 0% | 589 | 2,472 | +320% | 0 | 0 | — |
case-15 | fail→pass | 10,316 | 4,348 | -58% | 1 | 1 | 0% | 2,099 | 2,924 | +39% | 0 | 0 | — |
case-16 | pass→pass | 2,226 | 1,407 | -37% | 1 | 1 | 0% | 372 | 2,157 | +480% | 0 | 0 | — |
case-17 | pass→pass | 2,911 | 2,086 | -28% | 1 | 1 | 0% | 530 | 2,321 | +338% | 0 | 0 | — |
case-18 | pass→pass | 4,538 | 2,357 | -48% | 1 | 1 | 0% | 858 | 2,338 | +172% | 0 | 0 | — |
case-21 | pass→pass | 3,323 | 2,937 | -12% | 1 | 1 | 0% | 621 | 2,452 | +295% | 0 | 0 | — |
case-22 | pass→pass | 3,500 | 3,974 | +14% | 1 | 1 | 0% | 706 | 2,766 | +292% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted, and 21 counted toward the lift figure. The other 1 produced results that are not comparable between the two arms, so they are excluded from the headline rather than averaged into it. The headline lift of 0 percentage points is the difference between those two pass rates over the 21 comparable cases. 1 case got worse with the skill loaded, and it is included in that figure.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
| Model | Method | Date | Lift |
|---|---|---|---|
| gemini-3.6-flash | verified | 7/26/2026 | +14% |
Other measured skills in the registry, with their headline benchmark lift.