[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EDZP51VY6PDXF7HJ40ZK1R":3,"skill-same:01M7EDZP51VY6PDXF7HJ40ZK1R":66},{"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},"01M7EDZP51VY6PDXF7HJ40ZK1R","bio-long-read-sequencing-basecalling",null,"Basecalls raw Oxford Nanopore signal (POD5\u002FFAST5) into reads with Dorado, choosing the chemistry-matched model and accuracy tier (fast\u002Fhac\u002Fsup), requesting modified bases (5mCG_5hmCG, 6mA, m6A) at basecall time, and handling duplex, demultiplexing, trimming, and HERRO read correction. Covers why the model+version is an irreversible analysis decision, why methylation cannot be recovered later, and why downstream polish\u002Fvariant models must match the basecaller. Use when converting POD5\u002FFAST5 to reads, picking a Dorado model for R9\u002FR10 or RNA004, enabling methylation calling, basecalling duplex, demultiplexing barcoded runs, or correcting reads for assembly.","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-long-read-sequencing-basecalling\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: bio-long-read-sequencing-basecalling\ndescription: Basecalls raw Oxford Nanopore signal (POD5\u002FFAST5) into reads with Dorado, choosing the chemistry-matched model and accuracy tier (fast\u002Fhac\u002Fsup), requesting modified bases (5mCG_5hmCG, 6mA, m6A) at basecall time, and handling duplex, demultiplexing, trimming, and HERRO read correction. Covers why the model+version is an irreversible analysis decision, why methylation cannot be recovered later, and why downstream polish\u002Fvariant models must match the basecaller. Use when converting POD5\u002FFAST5 to reads, picking a Dorado model for R9\u002FR10 or RNA004, enabling methylation calling, basecalling duplex, demultiplexing barcoded runs, or correcting reads for assembly.\ntool_type: cli\nprimary_tool: dorado\nsource: \"https:\u002F\u002Fgithub.com\u002FGPTomics\u002FbioSkills\"\nsource_repository: \"GPTomics\u002FbioSkills\"\nsource_path: \"long-read-sequencing\u002Fbasecalling\u002FSKILL.md\"\nlicense: \"MIT\"\nimported_at: \"2026-09-20\"\n---\n\n## Version Compatibility\n\nReference examples tested with: Dorado 1.0+, pod5 0.3+, samtools 1.19+, chopper 0.7+.\n\nBefore using code patterns, verify installed versions match. If versions differ:\n- CLI: `\u003Ctool> --version` then `\u003Ctool> --help` to confirm flags\n\nResults depend on inputs that outlive the binary version - record them:\n- The basecaller MODEL string (e.g. `dna_r10.4.1_e8.2_400bps_sup@v5.2.0`) sets the entire error profile and must be propagated to every downstream tool. Pin it.\n- Modified-base models carry a SECOND version (`..._sup@v5.0.0_5mCG_5hmCG@v3`); the mod version can lag the simplex version - check `dorado download --list`.\n- R9.4.1 and RNA002 models were removed from Dorado v1.0 defaults; legacy data needs an archived model path.\n\nIf code throws an error, introspect the installed tool (`dorado --help`, `dorado basecaller --help`) and adapt the example to the actual API rather than retrying.\n\n# Nanopore Basecalling\n\n**\"Basecall my Nanopore data\"** -> Convert raw signal (POD5) into reads with Dorado using the chemistry-matched model, deciding the accuracy tier and whether to call modifications now - because the model choice is baked irreversibly into the output.\n- CLI: `dorado basecaller sup pod5s\u002F > calls.bam` (simplex), `dorado basecaller sup,5mCG_5hmCG pod5s\u002F > calls.bam` (with methylation), `dorado duplex sup pod5s\u002F > duplex.bam` (duplex)\n\nPacBio note: PacBio \"basecalling\" (CCS -> HiFi reads) runs on-instrument\u002Fin SMRT Link; users receive HiFi BAMs already at Q20-Q30+. This skill is Oxford Nanopore \u002F Dorado. HiFi assembly lives in genome-assembly\u002Fhifi-assembly.\n\n## The Single Most Important Modern Insight -- There Is No \"The Reads,\" Only \"The Reads As Called By This Model\"\n\nBasecalling is not fixed preprocessing that yields a neutral FASTQ. The model and version chosen are an analysis decision written permanently into the BAM, with three consequences a naive user misses:\n\n1. **Methylation is a basecalling decision, not a later analysis step.** Modified bases are inferred from raw signal at basecall time by Remora models and emitted as MM\u002FML tags. A plain BAM\u002FFASTQ with no MM\u002FML tags has thrown the signal away - mods CANNOT be recovered without re-basecalling from POD5. If methylation might ever matter, request it now (`sup,5mCG_5hmCG`) and KEEP the POD5. See nanopore-methylation.\n2. **Downstream polish\u002Fvariant models must match the basecaller model+version.** medaka and Clair3 ship per-model weights (Clair3 `r1041_e82_400bps_sup_v500`; medaka the dotted `r1041_e82_400bps_sup_v5.2.0`). A mismatched model silently degrades accuracy with no error. Propagate the basecaller model name to every downstream step.\n3. **Mixing model versions across a cohort is a batch effect.** Different model versions have different identity and homopolymer-indel error profiles. Re-basecall the WHOLE cohort with ONE current model before joint or differential analysis.\n\n## Dorado Subcommand Taxonomy\n\nDorado (one GPU-first executable) replaced Guppy, which is end-of-life. Bonito is ONT's research\u002Ftraining basecaller (not production); Rerio hosts research-release models (niche mods, bacterial methylation).\n\n| Subcommand | Purpose | Canonical invocation |\n|------------|---------|----------------------|\n| `basecaller` | simplex basecalling | `dorado basecaller hac pod5s\u002F > calls.bam` |\n| `duplex` | template+complement duplex | `dorado duplex sup pod5s\u002F > duplex.bam` |\n| `demux` | barcode classification\u002Fsplit | `dorado demux --kit-name SQK-NBD114-24 --output-dir out\u002F calls.bam` |\n| `trim` | standalone adapter\u002Fprimer trim | `dorado trim reads.bam > trimmed.bam` |\n| `aligner` | minimap2 alignment (carries MM\u002FML) | `dorado aligner ref.mmi reads.bam > aln.bam` |\n| `correct` | HERRO single-read correction | `dorado correct reads.fastq > corrected.fasta` |\n| `summary` | sequencing-summary TSV from BAM | `dorado summary calls.bam > summary.tsv` |\n| `download` | model management | `dorado download --model \u003Cname>` \u002F `--list` |\n\n## Model Naming Scheme (load-bearing)\n\nFormat `{analyte}_{pore}_{chemistry}_{speed}@v{ver}` + optional mod suffix, e.g. `dna_r10.4.1_e8.2_400bps_sup@v5.2.0_5mCG_5hmCG@v3`.\n\n| Token | Meaning | Examples |\n|-------|---------|----------|\n| analyte | molecule | `dna`, `rna004` |\n| pore | flow-cell generation | `r10.4.1` (current), `r9.4.1` (legacy) |\n| chemistry | kit chemistry | `e8.2` (Kit 14) |\n| speed | translocation speed -> sampling rate | `400bps` (5 kHz DNA), `130bps` (RNA004, 4 kHz) |\n| tier | model size\u002Faccuracy | `fast`, `hac`, `sup` |\n| version | model version | `@v4.3.0`, `@v5.2.0`, `@v6.0.0` |\n\nPassing the bare tier (`sup`) lets Dorado auto-detect chemistry from POD5 metadata and fetch the matching latest model; pin a version (`sup@v5.2.0`) or a full path for reproducibility. Append mods comma-separated (`sup,5mCG_5hmCG,6mA`); only one mod model per canonical base may be active.\n\n## Decision Tree by Scenario\n\n| Scenario | Recommended | Why |\n|----------|-------------|-----|\n| Any analysis (variant\u002Fassembly\u002Fmethylation) | `sup` + matched model, pinned version | `fast`\u002F`hac` error profile leaks into calls |\n| Live run \u002F adaptive sampling \u002F quick QC only | `fast` | speed; never for downstream analysis |\n| Routine work, compute-limited | `hac` | strong accuracy\u002Fcompute balance (v5.2 closed much of the gap to sup) |\n| Methylation wanted now or maybe later | `sup,5mCG_5hmCG` (DNA), keep POD5 | mods are unrecoverable from a plain BAM -> nanopore-methylation |\n| Per-molecule accuracy, low input, phasing | `dorado duplex sup` | ~Q30 reads, but expect \u003C10% duplex yield |\n| Diploid\u002Fphased T2T assembly from simplex | `dorado correct` (HERRO) before assembler | haplotype-aware Q22->Q40 -> genome-assembly\u002Flong-read-assembly |\n| Barcoded multiplexed run | basecall `--no-trim`, then `dorado demux` | trimming first strips barcodes before demux sees them |\n| Legacy R9.4.1 \u002F RNA002 data | explicit archived model path | removed from Dorado v1.0 default downloads |\n| PacBio data | already HiFi; no Dorado step | CCS runs on-instrument -> genome-assembly\u002Fhifi-assembly |\n\n## Core Commands\n\n```bash\n# Simplex, super-accuracy, auto-detected chemistry-matched model (BAM is the default output)\ndorado basecaller sup pod5s\u002F > calls.bam\n\n# Pin the model version for reproducibility\ndorado basecaller dna_r10.4.1_e8.2_400bps_sup@v5.2.0 pod5s\u002F > calls.bam\n\n# Call methylation AT basecall time (CpG 5mC + 5hmC); KEEP pod5s\u002F - mods are unrecoverable later\ndorado basecaller sup,5mCG_5hmCG pod5s\u002F > calls.bam\ndorado basecaller sup,6mA pod5s\u002F > calls.bam               # all-context 6mA\n# RNA004 direct RNA (cDNA CANNOT call mods - PCR erases the signal):\ndorado basecaller rna004_130bps_sup@v5.1.0,m6A_DRACH pod5s\u002F > rna_mods.bam\n\n# FASTQ output and a per-read quality floor (relative filter, not a calibrated accuracy)\ndorado basecaller sup pod5s\u002F --emit-fastq --min-qscore 10 > calls.fastq\n\n# Duplex (needs raw POD5; cannot be recovered from simplex FASTQ); dx tag marks read types\ndorado duplex sup pod5s\u002F > duplex.bam\n\n# Demultiplex: basecall WITHOUT trimming, then demux (demux trims barcodes itself)\ndorado basecaller sup pod5s\u002F --no-trim > calls.bam\ndorado demux --kit-name SQK-NBD114-24 --output-dir demux\u002F calls.bam\ndorado demux --kit-name SQK-NBD114-24 --barcode-both-ends --output-dir demux\u002F calls.bam  # stringent\n\n# HERRO read correction for diploid\u002Fphased assembly (input FASTQ of HAC\u002FSUP R10 reads >=10kb -> FASTA)\ndorado download --model herro-v1\ndorado correct reads.fastq > corrected.fasta\n```\n\nPOD5 is ONT's default raw format (faster random access than FAST5). Convert FAST5 first:\n\n```bash\npod5 convert fast5 raw\u002F*.fast5 --output pod5s\u002F    # FAST5 is legacy; basecalling it directly is slow\npod5 view pod5s\u002F                                   # summary table (replaces deprecated `pod5 inspect reads`)\npod5 merge pod5s\u002F*.pod5 --output merged.pod5\n```\n\n## Per-Method Failure Modes\n\n### Methylation gone forever\n**Trigger:** basecalling without a mod model, then wanting 5mC later. **Mechanism:** Remora infers mods from raw signal at basecall time; a plain BAM has only bases. **Symptom:** no MM\u002FML tags; modkit pileup returns nothing. **Fix:** re-basecall from POD5 with `sup,5mCG_5hmCG`; keep POD5 archives.\n\n### Barcodes land in unclassified\n**Trigger:** default `--trim all` basecall, then a separate `dorado demux`. **Mechanism:** trimming removes the barcode before demux can read it. **Symptom:** most reads in `unclassified.bam`, low classification rate. **Fix:** basecall `--no-trim`, then demux (it trims barcodes itself).\n\n### Silent accuracy loss downstream\n**Trigger:** polishing\u002Fcalling with a medaka\u002FClair3 model that doesn't match the basecaller model+version. **Mechanism:** per-model neural weights expect a specific error profile. **Symptom:** no error, just quietly worse consensus\u002Fcalls. **Fix:** propagate the basecaller model name; use `medaka tools resolve_model --auto_model`; pick the matching Clair3 model dir.\n\n### Duplex double-counting\n**Trigger:** treating every read in a duplex BAM as an independent molecule. **Mechanism:** a simplex parent and its duplex offspring both appear. **Symptom:** inflated coverage\u002Fallele counts. **Fix:** the `dx:i:-1` tag marks simplex parents of duplex reads - filter them when counting molecules (`dx:i:1` = duplex, `dx:i:0` = simplex-only).\n\n### Cohort batch effect\n**Trigger:** runs basecalled with different model versions joined for analysis. **Mechanism:** version-specific identity\u002Findel error profiles confound a technical batch with biology. **Symptom:** spurious between-run differences. **Fix:** re-basecall the whole cohort with one model version.\n\n## Quantitative Thresholds\n\n| Threshold | Source | Rationale |\n|-----------|--------|-----------|\n| `sup` for any analysis | ONT model guidance | `fast`\u002F`hac` error profiles contaminate variant\u002Fassembly\u002Fmethylation calls |\n| R10.4.1 SUP modal accuracy ~Q20 (99%) | Sereika 2022 | dual-reader head fixes homopolymers; enables nanopore-only near-finished genomes |\n| Duplex read ~Q30; yield typically \u003C10% of reads | community benchmarks | duplex is library-prep\u002Floading-limited, not free accuracy |\n| A \"Q20\" base errs at ~Q12.5 empirically | Delahaye 2021 | nanopore qscores >Q10 are overconfident posteriors; use for relative filtering only |\n| HERRO input reads >=10 kbp, HAC\u002FSUP R10 | Dorado correct docs | HERRO operates on 4096-bp chunks; shorter reads dropped |\n| `--min-qscore 10` as a permissive QC floor | convention | Q10 ~ 90% nominal; a starting filter, not a hard rule |\n\n## Common Errors\n\n| Error \u002F symptom | Cause | Solution |\n|-----------------|-------|----------|\n| \"Failed to determine sequencing chemistry from data\" | R9\u002FRNA002 or non-standard kit; bare tier can't auto-resolve | pass an explicit model path; for legacy chemistry use an archived model |\n| No MM\u002FML tags in BAM | basecalled without a mod model | re-basecall from POD5 with `sup,5mCG_5hmCG` |\n| Most reads `unclassified` after demux | trimmed before demux | basecall `--no-trim`, then demux |\n| `--model sup` errors | model is the positional arg, not a flag | `dorado basecaller sup pod5s\u002F` |\n| `dorado correct reads.bam` fails | input is FASTQ(.gz), output FASTA | `dorado correct reads.fastq > corrected.fasta` |\n| Out of GPU memory | batch too large for VRAM (sup is heaviest) | lower `--batchsize`; or drop to `hac` |\n| cDNA m6A calling returns nothing | PCR erased native modifications | use direct RNA (RNA004), not cDNA |\n\n## References\n\n- Sereika M, Kirkegaard RH, Karst SM, et al. 2022. Oxford Nanopore R10.4 long-read sequencing enables the generation of near-finished bacterial genomes from pure cultures and metagenomes without short-read or reference polishing. *Nat Methods* 19:823-826.\n- Stanojević D, Lin D, Nurk S, Florez de Sessions P, Šikić M. 2026. Telomere-to-telomere assembly using HERRO-corrected Nanopore simplex reads. *Nature* (online ahead of print). DOI 10.1038\u002Fs41586-026-10563-y.\n- Wick RR, Judd LM, Holt KE. 2019. Performance of neural network basecalling tools for Oxford Nanopore sequencing. *Genome Biol* 20:129.\n- Pagès-Gallego M, de Ridder J. 2023. Comprehensive benchmark and architectural analysis of deep learning models for nanopore sequencing basecalling. *Genome Biol* 24:71.\n- Delahaye C, Nicolas J. 2021. Sequencing DNA with nanopores: troubles and biases. *PLoS ONE* 16(10):e0257521.\n- Gamaarachchi H, Samarakoon H, et al. 2025. The enduring advantages of the SLOW5 file format for raw nanopore sequencing data. *GigaScience* giaf118.\n\n## Related Skills\n\n- long-read-qc - Assess read length\u002Fquality and run health after basecalling\n- nanopore-methylation - Pile up the MM\u002FML tags this skill must request at basecall time\n- long-read-alignment - Map the reads; use `-y` to carry MM\u002FML tags through alignment\n- medaka-polishing - Consensus model that must match this basecaller model+version\n- clair3-variants - Variant model that must match this basecaller model+version\n- genome-assembly\u002Flong-read-assembly - Assemble the reads (HERRO-corrected for diploid\u002FT2T)\n- genome-assembly\u002Fhifi-assembly - PacBio HiFi (basecalled on-instrument, not here)\n- epitranscriptomics\u002Fm6anet-analysis - ONT direct-RNA m6A from signal\n- workflows\u002Flongread-sv-pipeline - End-to-end basecall -> align -> SV call\n","## Version Compatibility\n\nReference examples tested with: Dorado 1.0+, pod5 0.3+, samtools 1.19+, chopper 0.7+.\n\nBefore using code patterns, verify installed versions match. If versions differ:\n- CLI: `\u003Ctool> --version` then `\u003Ctool> --help` to confirm flags\n\nResults depend on inputs that outlive the binary version - record them:\n- The basecaller MODEL string (e.g. `dna_r10.4.1_e8.2_400bps_sup@v5.2.0`) sets the entire error profile and must be propagated to every downstream tool. Pin it.\n- Modified-base models carry a SECOND version (`..._sup@v5.0.0_5mCG_5hmCG@v3`); the mod version can lag the simplex version - check `dorado download --list`.\n- R9.4.1 and RNA002 models were removed from Dorado v1.0 defaults; legacy data needs an archived model path.\n\nIf code throws an error, introspect the installed tool (`dorado --help`, `dorado basecaller --help`) and adapt the example to the actual API rather than retrying.\n\n# Nanopore Basecalling\n\n**\"Basecall my Nanopore data\"** -> Convert raw signal (POD5) into reads with Dorado using the chemistry-matched model, deciding the accuracy tier and whether to call modifications now - because the model choice is baked irreversibly into the output.\n- CLI: `dorado basecaller sup pod5s\u002F > calls.bam` (simplex), `dorado basecaller sup,5mCG_5hmCG pod5s\u002F > calls.bam` (with methylation), `dorado duplex sup pod5s\u002F > duplex.bam` (duplex)\n\nPacBio note: PacBio \"basecalling\" (CCS -> HiFi reads) runs on-instrument\u002Fin SMRT Link; users receive HiFi BAMs already at Q20-Q30+. This skill is Oxford Nanopore \u002F Dorado. HiFi assembly lives in genome-assembly\u002Fhifi-assembly.\n\n## The Single Most Important Modern Insight -- There Is No \"The Reads,\" Only \"The Reads As Called By This Model\"\n\nBasecalling is not fixed preprocessing that yields a neutral FASTQ. The model and version chosen are an analysis decision written permanently into the BAM, with three consequences a naive user misses:\n\n1. **Methylation is a basecalling decision, not a later analysis step.** Modified bases are inferred from raw signal at basecall time by Remora models and emitted as MM\u002FML tags. A plain BAM\u002FFASTQ with no MM\u002FML tags has thrown the signal away - mods CANNOT be recovered without re-basecalling from POD5. If methylation might ever matter, request it now (`sup,5mCG_5hmCG`) and KEEP the POD5. See nanopore-methylation.\n2. **Downstream polish\u002Fvariant models must match the basecaller model+version.** medaka and Clair3 ship per-model weights (Clair3 `r1041_e82_400bps_sup_v500`; medaka the dotted `r1041_e82_400bps_sup_v5.2.0`). A mismatched model silently degrades accuracy with no error. Propagate the basecaller model name to every downstream step.\n3. **Mixing model versions across a cohort is a batch effect.** Different model versions have different identity and homopolymer-indel error profiles. Re-basecall the WHOLE cohort with ONE current model before joint or differential analysis.\n\n## Dorado Subcommand Taxonomy\n\nDorado (one GPU-first executable) replaced Guppy, which is end-of-life. Bonito is ONT's research\u002Ftraining basecaller (not production); Rerio hosts research-release models (niche mods, bacterial methylation).\n\n| Subcommand | Purpose | Canonical invocation |\n|------------|---------|----------------------|\n| `basecaller` | simplex basecalling | `dorado basecaller hac pod5s\u002F > calls.bam` |\n| `duplex` | template+complement duplex | `dorado duplex sup pod5s\u002F > duplex.bam` |\n| `demux` | barcode classification\u002Fsplit | `dorado demux --kit-name SQK-NBD114-24 --output-dir out\u002F calls.bam` |\n| `trim` | standalone adapter\u002Fprimer trim | `dorado trim reads.bam > trimmed.bam` |\n| `aligner` | minimap2 alignment (carries MM\u002FML) | `dorado aligner ref.mmi reads.bam > aln.bam` |\n| `correct` | HERRO single-read correction | `dorado correct reads.fastq > corrected.fasta` |\n| `summary` | sequencing-summary TSV from BAM | `dorado summary calls.bam > summary.tsv` |\n| `download` | model management | `dorado download --model \u003Cname>` \u002F `--list` |\n\n## Model Naming Scheme (load-bearing)\n\nFormat `{analyte}_{pore}_{chemistry}_{speed}@v{ver}` + optional mod suffix, e.g. `dna_r10.4.1_e8.2_400bps_sup@v5.2.0_5mCG_5hmCG@v3`.\n\n| Token | Meaning | Examples |\n|-------|---------|----------|\n| analyte | molecule | `dna`, `rna004` |\n| pore | flow-cell generation | `r10.4.1` (current), `r9.4.1` (legacy) |\n| chemistry | kit chemistry | `e8.2` (Kit 14) |\n| speed | translocation speed -> sampling rate | `400bps` (5 kHz DNA), `130bps` (RNA004, 4 kHz) |\n| tier | model size\u002Faccuracy | `fast`, `hac`, `sup` |\n| version | model version | `@v4.3.0`, `@v5.2.0`, `@v6.0.0` |\n\nPassing the bare tier (`sup`) lets Dorado auto-detect chemistry from POD5 metadata and fetch the matching latest model; pin a version (`sup@v5.2.0`) or a full path for reproducibility. Append mods comma-separated (`sup,5mCG_5hmCG,6mA`); only one mod model per canonical base may be active.\n\n## Decision Tree by Scenario\n\n| Scenario | Recommended | Why |\n|----------|-------------|-----|\n| Any analysis (variant\u002Fassembly\u002Fmethylation) | `sup` + matched model, pinned version | `fast`\u002F`hac` error profile leaks into calls |\n| Live run \u002F adaptive sampling \u002F quick QC only | `fast` | speed; never for downstream analysis |\n| Routine work, compute-limited | `hac` | strong accuracy\u002Fcompute balance (v5.2 closed much of the gap to sup) |\n| Methylation wanted now or maybe later | `sup,5mCG_5hmCG` (DNA), keep POD5 | mods are unrecoverable from a plain BAM -> nanopore-methylation |\n| Per-molecule accuracy, low input, phasing | `dorado duplex sup` | ~Q30 reads, but expect \u003C10% duplex yield |\n| Diploid\u002Fphased T2T assembly from simplex | `dorado correct` (HERRO) before assembler | haplotype-aware Q22->Q40 -> genome-assembly\u002Flong-read-assembly |\n| Barcoded multiplexed run | basecall `--no-trim`, then `dorado demux` | trimming first strips barcodes before demux sees them |\n| Legacy R9.4.1 \u002F RNA002 data | explicit archived model path | removed from Dorado v1.0 default downloads |\n| PacBio data | already HiFi; no Dorado step | CCS runs on-instrument -> genome-assembly\u002Fhifi-assembly |\n\n## Core Commands\n\n```bash\n# Simplex, super-accuracy, auto-detected chemistry-matched model (BAM is the default output)\ndorado basecaller sup pod5s\u002F > calls.bam\n\n# Pin the model version for reproducibility\ndorado basecaller dna_r10.4.1_e8.2_400bps_sup@v5.2.0 pod5s\u002F > calls.bam\n\n# Call methylation AT basecall time (CpG 5mC + 5hmC); KEEP pod5s\u002F - mods are unrecoverable later\ndorado basecaller sup,5mCG_5hmCG pod5s\u002F > calls.bam\ndorado basecaller sup,6mA pod5s\u002F > calls.bam               # all-context 6mA\n# RNA004 direct RNA (cDNA CANNOT call mods - PCR erases the signal):\ndorado basecaller rna004_130bps_sup@v5.1.0,m6A_DRACH pod5s\u002F > rna_mods.bam\n\n# FASTQ output and a per-read quality floor (relative filter, not a calibrated accuracy)\ndorado basecaller sup pod5s\u002F --emit-fastq --min-qscore 10 > calls.fastq\n\n# Duplex (needs raw POD5; cannot be recovered from simplex FASTQ); dx tag marks read types\ndorado duplex sup pod5s\u002F > duplex.bam\n\n# Demultiplex: basecall WITHOUT trimming, then demux (demux trims barcodes itself)\ndorado basecaller sup pod5s\u002F --no-trim > calls.bam\ndorado demux --kit-name SQK-NBD114-24 --output-dir demux\u002F calls.bam\ndorado demux --kit-name SQK-NBD114-24 --barcode-both-ends --output-dir demux\u002F calls.bam  # stringent\n\n# HERRO read correction for diploid\u002Fphased assembly (input FASTQ of HAC\u002FSUP R10 reads >=10kb -> FASTA)\ndorado download --model herro-v1\ndorado correct reads.fastq > corrected.fasta\n```\n\nPOD5 is ONT's default raw format (faster random access than FAST5). Convert FAST5 first:\n\n```bash\npod5 convert fast5 raw\u002F*.fast5 --output pod5s\u002F    # FAST5 is legacy; basecalling it directly is slow\npod5 view pod5s\u002F                                   # summary table (replaces deprecated `pod5 inspect reads`)\npod5 merge pod5s\u002F*.pod5 --output merged.pod5\n```\n\n## Per-Method Failure Modes\n\n### Methylation gone forever\n**Trigger:** basecalling without a mod model, then wanting 5mC later. **Mechanism:** Remora infers mods from raw signal at basecall time; a plain BAM has only bases. **Symptom:** no MM\u002FML tags; modkit pileup returns nothing. **Fix:** re-basecall from POD5 with `sup,5mCG_5hmCG`; keep POD5 archives.\n\n### Barcodes land in unclassified\n**Trigger:** default `--trim all` basecall, then a separate `dorado demux`. **Mechanism:** trimming removes the barcode before demux can read it. **Symptom:** most reads in `unclassified.bam`, low classification rate. **Fix:** basecall `--no-trim`, then demux (it trims barcodes itself).\n\n### Silent accuracy loss downstream\n**Trigger:** polishing\u002Fcalling with a medaka\u002FClair3 model that doesn't match the basecaller model+version. **Mechanism:** per-model neural weights expect a specific error profile. **Symptom:** no error, just quietly worse consensus\u002Fcalls. **Fix:** propagate the basecaller model name; use `medaka tools resolve_model --auto_model`; pick the matching Clair3 model dir.\n\n### Duplex double-counting\n**Trigger:** treating every read in a duplex BAM as an independent molecule. **Mechanism:** a simplex parent and its duplex offspring both appear. **Symptom:** inflated coverage\u002Fallele counts. **Fix:** the `dx:i:-1` tag marks simplex parents of duplex reads - filter them when counting molecules (`dx:i:1` = duplex, `dx:i:0` = simplex-only).\n\n### Cohort batch effect\n**Trigger:** runs basecalled with different model versions joined for analysis. **Mechanism:** version-specific identity\u002Findel error profiles confound a technical batch with biology. **Symptom:** spurious between-run differences. **Fix:** re-basecall the whole cohort with one model version.\n\n## Quantitative Thresholds\n\n| Threshold | Source | Rationale |\n|-----------|--------|-----------|\n| `sup` for any analysis | ONT model guidance | `fast`\u002F`hac` error profiles contaminate variant\u002Fassembly\u002Fmethylation calls |\n| R10.4.1 SUP modal accuracy ~Q20 (99%) | Sereika 2022 | dual-reader head fixes homopolymers; enables nanopore-only near-finished genomes |\n| Duplex read ~Q30; yield typically \u003C10% of reads | community benchmarks | duplex is library-prep\u002Floading-limited, not free accuracy |\n| A \"Q20\" base errs at ~Q12.5 empirically | Delahaye 2021 | nanopore qscores >Q10 are overconfident posteriors; use for relative filtering only |\n| HERRO input reads >=10 kbp, HAC\u002FSUP R10 | Dorado correct docs | HERRO operates on 4096-bp chunks; shorter reads dropped |\n| `--min-qscore 10` as a permissive QC floor | convention | Q10 ~ 90% nominal; a starting filter, not a hard rule |\n\n## Common Errors\n\n| Error \u002F symptom | Cause | Solution |\n|-----------------|-------|----------|\n| \"Failed to determine sequencing chemistry from data\" | R9\u002FRNA002 or non-standard kit; bare tier can't auto-resolve | pass an explicit model path; for legacy chemistry use an archived model |\n| No MM\u002FML tags in BAM | basecalled without a mod model | re-basecall from POD5 with `sup,5mCG_5hmCG` |\n| Most reads `unclassified` after demux | trimmed before demux | basecall `--no-trim`, then demux |\n| `--model sup` errors | model is the positional arg, not a flag | `dorado basecaller sup pod5s\u002F` |\n| `dorado correct reads.bam` fails | input is FASTQ(.gz), output FASTA | `dorado correct reads.fastq > corrected.fasta` |\n| Out of GPU memory | batch too large for VRAM (sup is heaviest) | lower `--batchsize`; or drop to `hac` |\n| cDNA m6A calling returns nothing | PCR erased native modifications | use direct RNA (RNA004), not cDNA |\n\n## References\n\n- Sereika M, Kirkegaard RH, Karst SM, et al. 2022. Oxford Nanopore R10.4 long-read sequencing enables the generation of near-finished bacterial genomes from pure cultures and metagenomes without short-read or reference polishing. *Nat Methods* 19:823-826.\n- Stanojević D, Lin D, Nurk S, Florez de Sessions P, Šikić M. 2026. Telomere-to-telomere assembly using HERRO-corrected Nanopore simplex reads. *Nature* (online ahead of print). DOI 10.1038\u002Fs41586-026-10563-y.\n- Wick RR, Judd LM, Holt KE. 2019. Performance of neural network basecalling tools for Oxford Nanopore sequencing. *Genome Biol* 20:129.\n- Pagès-Gallego M, de Ridder J. 2023. Comprehensive benchmark and architectural analysis of deep learning models for nanopore sequencing basecalling. *Genome Biol* 24:71.\n- Delahaye C, Nicolas J. 2021. Sequencing DNA with nanopores: troubles and biases. *PLoS ONE* 16(10):e0257521.\n- Gamaarachchi H, Samarakoon H, et al. 2025. The enduring advantages of the SLOW5 file format for raw nanopore sequencing data. *GigaScience* giaf118.\n\n## Related Skills\n\n- long-read-qc - Assess read length\u002Fquality and run health after basecalling\n- nanopore-methylation - Pile up the MM\u002FML tags this skill must request at basecall time\n- long-read-alignment - Map the reads; use `-y` to carry MM\u002FML tags through alignment\n- medaka-polishing - Consensus model that must match this basecaller model+version\n- clair3-variants - Variant model that must match this basecaller model+version\n- genome-assembly\u002Flong-read-assembly - Assemble the reads (HERRO-corrected for diploid\u002FT2T)\n- genome-assembly\u002Fhifi-assembly - PacBio HiFi (basecalled on-instrument, not here)\n- epitranscriptomics\u002Fm6anet-analysis - ONT direct-RNA m6A from signal\n- workflows\u002Flongread-sv-pipeline - End-to-end basecall -> align -> SV call\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","long-read-sequencing\u002Fbasecalling\u002FSKILL.md","dorado","GPTomics\u002FbioSkills","main","2d1750717747097b602acf30bd09a7cbd4b4c6ea","awesome_skills\u002Fbiology\u002Fbio-long-read-sequencing-basecalling","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-long-read-sequencing-basecalling",{"tool":42,"command":43},"bunx","bunx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill bio-long-read-sequencing-basecalling",{"tool":45,"command":46},"pnpm","pnpm dlx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill bio-long-read-sequencing-basecalling","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-long-read-sequencing-basecalling\u002FSKILL.md",true,[50,56,60],{"path":51,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":54,"sourceHtmlUrl":55},"examples\u002Fbasecall_pipeline.sh","SCRIPT","脚本",1864,"https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-long-read-sequencing-basecalling\u002Fexamples\u002Fbasecall_pipeline.sh",{"path":57,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":58,"sourceHtmlUrl":59},"examples\u002Fdorado_basecall.sh",1725,"https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-long-read-sequencing-basecalling\u002Fexamples\u002Fdorado_basecall.sh",{"path":61,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":64,"sourceHtmlUrl":65},"usage-guide.md","REFERENCE","参考文档",4428,"https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-long-read-sequencing-basecalling\u002Fusage-guide.md",[67,75,82,89,96,103],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":74},"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":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":74},"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":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":74},"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":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":74},"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":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":74},"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":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":74},"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",[],[]]