bio-long-read-sequencing-structural-variants
Detects structural variants (deletions, insertions, inversions, duplications, translocations) from Oxford Nanopore and PacBio long-read alignments with Sniffles2, cuteSV, SVIM, and assembly-based callers, joint-genotypes cohorts via the Sniffles2 .snf workflow, and benchmarks with Truvari against GIAB. Covers why an SV call is a representation artifact (the tandem-repeat BED, aligner, and Truvari params set precision/recall as much as the caller), the cuteSV per-platform parameter trap, soft-clipped supplementary alignments as the SV substrate, and the somatic/mosaic boundary to Severus/nanomonsv. Use when calling germline or somatic SVs from ONT/HiFi reads, joint-genotyping a cohort, choosing or tuning an SV caller, or benchmarking SV calls.
What this skill does
## Version Compatibility Reference examples tested with: Sniffles 2.2+, cuteSV 2.1+, minimap2 2.28+, samtools 1.19+, truvari 4.0+. 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 reference-matched tandem-repeat BED supplied to the caller (Sniffles `--tandem-repeats`) drives the FP rate in repeats more than any other setting. Record which TR BED was used. - Benchmark numbers depend on the region set + TR handling + Truvari params; record all three. - cuteSV parameters are platform-specific (ONT vs HiFi vs CLR); the defaults are not platform-appropriate. If code throws an error, introspect the installed tool (`sniffles --help`, `cuteSV --help`) and adapt the example to the actual API rather than retrying. # Long-Read Structural Variants **"Find structural variants in my long reads"** -> Map with the SV-ready preset (soft-clipped supplementaries), call with a TR-aware caller, and benchmark stating the region set and Truvari params. - CLI: `sniffles --input aln.bam --vcf svs.vcf --reference ref.fa --tandem-repeats TR.bed` Long reads are the killer app for SVs: a single read spans the breakpoint (within-read CIGAR or split alignment) and resolves repeats short reads cannot. By convention SV = >=50 bp; the 30-100 bp range is a VNTR-dominated gray zone where callers disagree most. ## The Single Most Important Modern Insight -- An SV Call Is a Representation Artifact as Much as a Biological Fact In tandem repeats and segmental duplications, the same biological event has many valid VCF encodings - a deletion can be written as the reciprocal insertion on the other allele, and a VNTR expansion's breakpoints slide freely across repeat units. Consequently: 1. **The tandem-repeat BED, the aligner, and the Truvari parameters decide precision/recall as much as the caller does.** A claim like "caller X has F1 0.95" is meaningless without also stating the region set, the TR BED supplied to the caller, and the Truvari params - change any one and the number moves more than the gap between callers. 2. **Without a TR BED, one event fragments into several false-positive calls** with inconsistent breakpoints. `--tandem-repeats` makes clustering repeat-aware (widening the merge window inside annotated TRs) - the single biggest FP-reduction lever, not a nicety. 3. **`truvari refine` exists precisely to re-harmonize representations** within TR regions; benchmarking TR-dense regions without it systematically understates recall. ## Caller Taxonomy | Tool | Regime | Best for | Citation | |------|--------|----------|----------| | Sniffles2 | germline + population + mosaic | the default germline workhorse; cohort joint genotyping; .snf merge | Smolka 2024 *Nat Biotechnol* 42:1571 | | cuteSV | germline | high sensitivity, speed; per-platform tuning required | Jiang 2020 *Genome Biol* 21:189 | | SVIM | germline | scores (not hard-filters) SVs; good INS detection | Heller 2019 *Bioinformatics* 35:2907 | | pbsv | germline (PacBio) | two-step discover->call; official PacBio tool | PacBio (no journal paper) | | NanoVar | germline, low-depth | 4-8x ONT clinical | Tham 2020 *Genome Biol* 21:56 | | dipcall / SVIM-asm / PAV | assembly-based germline | most accurate single sample with phased HiFi; truth-set generation | Li 2018; Heller 2021; Ebert 2021 | | Severus | somatic (tumor-normal) | cancer T/N, complex/subclonal | Keskus 2026 *Nat Biotechnol* | | nanomonsv | somatic (tumor-normal) | precise somatic breakpoints, MEI | Shiraishi 2023 *NAR* 51:e74 | | SVision-pro | de novo + somatic, complex | resolving nested CSVs | Wang 2025 *Nat Biotechnol* 43:181 | ## Decision Tree by Scenario | Scenario | Recommended | Why | |----------|-------------|-----| | Single ONT/HiFi germline sample | Sniffles2 + `--tandem-repeats` | TR-aware, auto support, fast | | Cohort germline | Sniffles2 per-sample `.snf` -> merge | re-genotypes from raw signal; true joint genotypes | | Maximum sensitivity / speed | cuteSV with the platform-matched param set | per-platform tuning is mandatory | | Phased HiFi, want best per-sample accuracy | assembly-based (dipcall/SVIM-asm) -> hifi-assembly | resolves the alt haplotype directly | | Tumor-normal somatic SVs | Severus or nanomonsv | paired callers; Sniffles `--mosaic` is single-sample only | | Low-VAF mosaic in one sample | Sniffles2 `--mosaic` | lowers support, reports VAF (not a T/N caller) | | Low coverage (4-8x) | NanoVar | designed for low-depth clinical | | Benchmarking | Truvari (+`refine`) vs GIAB Tier1/CMRG | the field standard; state region + params | ## Alignment for SV Calling Map with minimap2 (the modern default; NGMLR is a higher-precision/slower legacy niche for Sniffles). Use the platform preset and keep soft-clipped supplementary alignments - split-read callers reconstruct breakpoints from the clipped sequence on those records. ```bash minimap2 -ax map-ont --MD -Y ref.fa ont.fq.gz | samtools sort -o aln.bam && samtools index aln.bam # -Y keeps SEQ on supplementaries (the SV substrate); --MD for cuteSV; map-hifi/map-pb for PacBio ``` ## Sniffles2 - germline and the .snf population workflow ```bash # Single sample (always supply --reference for INS sequence and --tandem-repeats for repeats) sniffles --input aln.bam --vcf svs.vcf --reference ref.fa --tandem-repeats human_GRCh38_TR.bed # Cohort: per-sample .snf signature index, then merge + joint-genotype sniffles --input s1.bam --snf s1.snf --reference ref.fa --tandem-repeats TR.bed sniffles --input s2.bam --snf s2.snf --reference ref.fa --tandem-repeats TR.bed sniffles --input s1.snf s2.snf --vcf cohort.vcf --reference ref.fa # Force-call / regenotype a known SV set in a new sample sniffles --input new.bam --genotype-vcf known_svs.vcf --vcf genotyped.vcf # Single-sample low-VAF / mosaic (NOT a tumor-normal caller) sniffles --input tumor.bam --vcf mosaic.vcf --mosaic ``` The `.snf` is a binary signature index (NOT a VCF - never bcftools it); it retains sub-threshold signatures so the merge re-genotypes an SV even in a sample that did not independently pass support. ## cuteSV - the per-platform parameter trap cuteSV's defaults are not platform-appropriate; the README gives distinct sets by error rate. `--genotype` is OFF by default. Positional args: `cuteSV <bam> <ref> <out.vcf> <work_dir>`. Force-calling moved to the separate cuteFC tool. | Platform | --max_cluster_bias_INS | --diff_ratio_merging_INS | --max_cluster_bias_DEL | --diff_ratio_merging_DEL | |----------|------------------------|--------------------------|------------------------|--------------------------| | ONT | 100 | 0.3 | 100 | 0.3 | | PacBio HiFi/CCS | 1000 | 0.9 | 1000 | 0.5 | | PacBio CLR | 100 | 0.3 | 200 | 0.5 | ```bash mkdir cutesv_work cuteSV aln.bam ref.fa cutesv.vcf cutesv_work --genotype \ --max_cluster_bias_INS 100 --diff_ratio_merging_INS 0.3 \ --max_cluster_bias_DEL 100 --diff_ratio_merging_DEL 0.3 # ONT set ``` ## Benchmarking with Truvari ```bash truvari bench --base giab_tier1.vcf.gz --comp calls.vcf.gz \ --includebed tier1_regions.bed --pctseq 0.7 --refdist 500 --passonly -o bench/ truvari refine bench/ # re-harmonize TR-region representations for a fair comparison ``` `--pctseq` (default 0.7) compares the actual inserted/deleted sequence, not just coordinates - set 0 for depth-based callers lacking alt sequence, keep 0.7 for long-read callers. Region set dominates the headline: Tier1 (resolvable INS/DEL >=50 bp) overstates whole-genome performance; CMRG reflects hard clinical loci. Tier1 v0.6 is INS/DEL only - do not report INV recall against it. ## Per-Method Failure Modes ### One VNTR fragments into many false positives **Trigger:** calling in tandem repeats without a TR BED. **Mechanism:** the breakpoint slides across repeat units, scattering signatures. **Symptom:** several calls with inconsisten
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.