bio-long-read-sequencing-basecalling
Basecalls raw Oxford Nanopore signal (POD5/FAST5) into reads with Dorado, choosing the chemistry-matched model and accuracy tier (fast/hac/sup), 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/variant models must match the basecaller. Use when converting POD5/FAST5 to reads, picking a Dorado model for R9/R10 or RNA004, enabling methylation calling, basecalling duplex, demultiplexing barcoded runs, or correcting reads for assembly.
What this skill does
## Version Compatibility Reference examples tested with: Dorado 1.0+, pod5 0.3+, samtools 1.19+, chopper 0.7+. Before using code patterns, verify installed versions match. If versions differ: - CLI: `<tool> --version` then `<tool> --help` to confirm flags Results depend on inputs that outlive the binary version - record them: - The basecaller MODEL string (e.g. `[email protected]`) sets the entire error profile and must be propagated to every downstream tool. Pin it. - Modified-base models carry a SECOND version (`[email protected]_5mCG_5hmCG@v3`); the mod version can lag the simplex version - check `dorado download --list`. - R9.4.1 and RNA002 models were removed from Dorado v1.0 defaults; legacy data needs an archived model path. If code throws an error, introspect the installed tool (`dorado --help`, `dorado basecaller --help`) and adapt the example to the actual API rather than retrying. # Nanopore Basecalling **"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. - CLI: `dorado basecaller sup pod5s/ > calls.bam` (simplex), `dorado basecaller sup,5mCG_5hmCG pod5s/ > calls.bam` (with methylation), `dorado duplex sup pod5s/ > duplex.bam` (duplex) PacBio note: PacBio "basecalling" (CCS -> HiFi reads) runs on-instrument/in SMRT Link; users receive HiFi BAMs already at Q20-Q30+. This skill is Oxford Nanopore / Dorado. HiFi assembly lives in genome-assembly/hifi-assembly. ## The Single Most Important Modern Insight -- There Is No "The Reads," Only "The Reads As Called By This Model" Basecalling 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: 1. **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/ML tags. A plain BAM/FASTQ with no MM/ML 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. 2. **Downstream polish/variant 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. 3. **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. ## Dorado Subcommand Taxonomy Dorado (one GPU-first executable) replaced Guppy, which is end-of-life. Bonito is ONT's research/training basecaller (not production); Rerio hosts research-release models (niche mods, bacterial methylation). | Subcommand | Purpose | Canonical invocation | |------------|---------|----------------------| | `basecaller` | simplex basecalling | `dorado basecaller hac pod5s/ > calls.bam` | | `duplex` | template+complement duplex | `dorado duplex sup pod5s/ > duplex.bam` | | `demux` | barcode classification/split | `dorado demux --kit-name SQK-NBD114-24 --output-dir out/ calls.bam` | | `trim` | standalone adapter/primer trim | `dorado trim reads.bam > trimmed.bam` | | `aligner` | minimap2 alignment (carries MM/ML) | `dorado aligner ref.mmi reads.bam > aln.bam` | | `correct` | HERRO single-read correction | `dorado correct reads.fastq > corrected.fasta` | | `summary` | sequencing-summary TSV from BAM | `dorado summary calls.bam > summary.tsv` | | `download` | model management | `dorado download --model <name>` / `--list` | ## Model Naming Scheme (load-bearing) Format `{analyte}_{pore}_{chemistry}_{speed}@v{ver}` + optional mod suffix, e.g. `[email protected]_5mCG_5hmCG@v3`. | Token | Meaning | Examples | |-------|---------|----------| | analyte | molecule | `dna`, `rna004` | | pore | flow-cell generation | `r10.4.1` (current), `r9.4.1` (legacy) | | chemistry | kit chemistry | `e8.2` (Kit 14) | | speed | translocation speed -> sampling rate | `400bps` (5 kHz DNA), `130bps` (RNA004, 4 kHz) | | tier | model size/accuracy | `fast`, `hac`, `sup` | | version | model version | `@v4.3.0`, `@v5.2.0`, `@v6.0.0` | Passing the bare tier (`sup`) lets Dorado auto-detect chemistry from POD5 metadata and fetch the matching latest model; pin a version (`[email protected]`) or a full path for reproducibility. Append mods comma-separated (`sup,5mCG_5hmCG,6mA`); only one mod model per canonical base may be active. ## Decision Tree by Scenario | Scenario | Recommended | Why | |----------|-------------|-----| | Any analysis (variant/assembly/methylation) | `sup` + matched model, pinned version | `fast`/`hac` error profile leaks into calls | | Live run / adaptive sampling / quick QC only | `fast` | speed; never for downstream analysis | | Routine work, compute-limited | `hac` | strong accuracy/compute balance (v5.2 closed much of the gap to sup) | | Methylation wanted now or maybe later | `sup,5mCG_5hmCG` (DNA), keep POD5 | mods are unrecoverable from a plain BAM -> nanopore-methylation | | Per-molecule accuracy, low input, phasing | `dorado duplex sup` | ~Q30 reads, but expect <10% duplex yield | | Diploid/phased T2T assembly from simplex | `dorado correct` (HERRO) before assembler | haplotype-aware Q22->Q40 -> genome-assembly/long-read-assembly | | Barcoded multiplexed run | basecall `--no-trim`, then `dorado demux` | trimming first strips barcodes before demux sees them | | Legacy R9.4.1 / RNA002 data | explicit archived model path | removed from Dorado v1.0 default downloads | | PacBio data | already HiFi; no Dorado step | CCS runs on-instrument -> genome-assembly/hifi-assembly | ## Core Commands ```bash # Simplex, super-accuracy, auto-detected chemistry-matched model (BAM is the default output) dorado basecaller sup pod5s/ > calls.bam # Pin the model version for reproducibility dorado basecaller [email protected] pod5s/ > calls.bam # Call methylation AT basecall time (CpG 5mC + 5hmC); KEEP pod5s/ - mods are unrecoverable later dorado basecaller sup,5mCG_5hmCG pod5s/ > calls.bam dorado basecaller sup,6mA pod5s/ > calls.bam # all-context 6mA # RNA004 direct RNA (cDNA CANNOT call mods - PCR erases the signal): dorado basecaller [email protected],m6A_DRACH pod5s/ > rna_mods.bam # FASTQ output and a per-read quality floor (relative filter, not a calibrated accuracy) dorado basecaller sup pod5s/ --emit-fastq --min-qscore 10 > calls.fastq # Duplex (needs raw POD5; cannot be recovered from simplex FASTQ); dx tag marks read types dorado duplex sup pod5s/ > duplex.bam # Demultiplex: basecall WITHOUT trimming, then demux (demux trims barcodes itself) dorado basecaller sup pod5s/ --no-trim > calls.bam dorado demux --kit-name SQK-NBD114-24 --output-dir demux/ calls.bam dorado demux --kit-name SQK-NBD114-24 --barcode-both-ends --output-dir demux/ calls.bam # stringent # HERRO read correction for diploid/phased assembly (input FASTQ of HAC/SUP R10 reads >=10kb -> FASTA) dorado download --model herro-v1 dorado correct reads.fastq > corrected.fasta ``` POD5 is ONT's default raw format (faster random access than FAST5). Convert FAST5 first: ```bash pod5 convert fast5 raw/*.fast5 --output pod5s/ # FAST5 is legacy; basecalling it directly is slow pod5 view pod5s/ # summary table (replaces deprecated `pod5 inspect reads`) pod5 merge pod5s/*.pod5 --output merged.pod5 ``` ## Per-Method Failure Modes ### Methylation gone forever **Trigger:** basecalling without a mod model, then wanting 5mC later. **Me
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.