bio-variant-calling-structural-variant-calling
Call structural variants (SVs) from short-read sequencing using Manta, Delly, and LUMPY. Detects deletions, insertions, inversions, duplications, and translocations that are too large for standard SNV callers. Use when detecting structural variants from short-read data.
Unsigned, install at your own risk
UnverifiedThis skill has no cryptographic signature attached. We can't verify the contents match what the publisher intended.
Install this skill
No account required. Pick your tool, or use the command that detects it for you.
Run in your terminal. It detects your AI tool.
npx @skills-hub-ai/cli install openclaw-medical-variant-interpretation-acmg-bioskills-structural-variant-calling-bio-variant-callinManual setup by platform
Claude Code
~/.claude/skills/openclaw-medical-variant-interpretation-acmg-bioskills-structural-variant-calling-bio-variant-callin/SKILL.md
Instructions
Structural Variant Calling (Short Reads)
Manta (Recommended)
# Configure Manta run (creates runWorkflow.py)
configManta.py \
--bam sample.bam \
--referenceFasta reference.fa \
--runDir manta_run
# Execute
manta_run/runWorkflow.py -j 8
# Output: manta_run/results/variants/
# - diploidSV.vcf.gz (germline SVs)
# - candidateSV.vcf.gz (all candidates)
# - candidateSmallIndels.vcf.gz (small indels)
Manta Tumor-Normal Mode
# Somatic SV calling
configManta.py \
--tumorBam tumor.bam \
--normalBam normal.bam \
--referenceFasta reference.fa \
--runDir manta_somatic
manta_somatic/runWorkflow.py -j 8
# Output includes:
# - somaticSV.vcf.gz (somatic SVs)
# - diploidSV.vcf.gz (germline SVs)
Manta Options
# WES mode (for exome data)
configManta.py \
--bam sample.bam \
--referenceFasta reference.fa \
--exome \ # Use exome settings
--callRegions regions.bed.gz \ # Restrict to regions
--runDir manta_exome
# RNA-seq mode
configManta.py \
--bam rnaseq.bam \
--referenceFasta reference.fa \
--rna \ # RNA-seq mode
--runDir manta_rna
Delly
# Call SVs
delly call \
-g reference.fa \
-o sv_calls.bcf \
sample.bam
# Convert to VCF
bcftools view sv_calls.bcf > sv_calls.vcf
# Multiple samples (joint calling)
delly call \
-g reference.fa \
-o joint_svs.bcf \
sample1.bam sample2.bam sample3.bam
Delly Somatic Mode
# Call with tumor-normal
delly call \
-g reference.fa \
-o svs.bcf \
tumor.bam normal.bam
# Create sample file
echo -e "tumor\ttumor\nnormal\tcontrol" > samples.tsv
# Filter for somatic
delly filter \
-f somatic \
-o somatic_svs.bcf \
-s samples.tsv \
svs.bcf
Delly SV Types
# Call specific SV type
delly call -t DEL -g ref.fa -o deletions.bcf sample.bam
delly call -t DUP -g ref.fa -o duplications.bcf sample.bam
delly call -t INV -g ref.fa -o inversions.bcf sample.bam
delly call -t BND -g ref.fa -o translocations.bcf sample.bam
delly call -t INS -g ref.fa -o insertions.bcf sample.bam
LUMPY
# Extract split reads and discordant pairs
samtools view -b -F 1294 sample.bam > discordant.bam
samtools view -h sample.bam | \
/path/to/lumpy-sv/scripts/extractSplitReads_BwaMem -i stdin | \
samtools view -Sb - > splitters.bam
# Run LUMPY
lumpyexpress \
-B sample.bam \
-S splitters.bam \
-D discordant.bam \
-o lumpy_svs.vcf
Smoove (LUMPY Wrapper)
# Simplified LUMPY workflow
smoove call \
--name sample \
--fasta reference.fa \
--outdir smoove_output \
-p 8 \
sample.bam
# Output: smoove_output/sample-smoove.genotyped.vcf.gz
Merge Multiple Callers
# Use SURVIVOR to merge callsets
# Create file listing VCFs
ls manta_svs.vcf delly_svs.vcf lumpy_svs.vcf > vcf_list.txt
# Merge with parameters
SURVIVOR merge vcf_list.txt 1000 2 1 1 0 50 merged_svs.vcf
# Parameters: max_dist min_callers type_agree strand_agree estimate_dist min_size
Filter SV Calls
# Filter by quality
bcftools view -i 'QUAL >= 20' svs.vcf > svs.filtered.vcf
# Filter by size
bcftools view -i 'ABS(SVLEN) >= 50' svs.vcf > svs.min50.vcf
# Filter by SV type
bcftools view -i 'SVTYPE="DEL"' svs.vcf > deletions.vcf
bcftools view -i 'SVTYPE="INS"' svs.vcf > insertions.vcf
bcftools view -i 'SVTYPE="INV"' svs.vcf > inversions.vcf
bcftools view -i 'SVTYPE="DUP"' svs.vcf > duplications.vcf
bcftools view -i 'SVTYPE="BND"' svs.vcf > translocations.vcf
# Keep only PASS
bcftools view -f PASS svs.vcf > svs.pass.vcf
Annotate SVs
# AnnotSV annotation
AnnotSV \
-SVinputFile svs.vcf \
-genomeBuild GRCh38 \
-outputFile annotated_svs
# Output includes: genes, DGV, gnomAD-SV, ClinVar
SV Types
| Type | Code | Description |
|---|---|---|
| Deletion | DEL | Sequence removed |
| Insertion | INS | Sequence inserted |
| Inversion | INV | Sequence reversed |
| Duplication | DUP | Sequence duplicated |
| Translocation | BND | Breakend (inter-chromosomal) |
Comparison: Manta vs Delly vs LUMPY
| Feature | Manta | Delly | LUMPY |
|---|---|---|---|
| Speed | Fast | Medium | Medium |
| Sensitivity | High | High | High |
| Small SVs | Good | Moderate | Good |
| Large SVs | Good | Good | Good |
| RNA-seq | Yes | No | No |
| Somatic | Yes | Yes | Limited |
Coverage Guidelines
| Coverage | Detection Ability |
|---|---|
| 10x | Large SVs (>1kb) |
| 30x | Most SVs |
| 50x+ | Small SVs, better breakpoints |
Long-Read SV Callers
For long-read data (ONT/PacBio HiFi), use specialized callers with higher sensitivity:
| Caller | Best For | Notes |
|---|---|---|
| CuteSV | ONT/HiFi | Fast, accurate for all SV types |
| Sniffles2 | ONT/HiFi | Population-scale, multisample |
| PBSV | PacBio | Official PacBio caller |
See long-read-sequencing/structural-variants for long-read SV workflows.
Related Skills
- long-read-sequencing/structural-variants - Long-read SV calling
- copy-number/cnvkit-analysis - Copy number variants
- variant-calling/filtering-best-practices - Filter VCF files
- alignment-files/alignment-filtering - Prepare BAM files
Security
Reviews (0)
Related skills
Browse all →More from OpenClaw Medical
View source →More Build skills
Browse category →Frequently asked questions about bio-variant-calling-structural-variant-calling
What does the bio-variant-calling-structural-variant-calling skill do?
Call structural variants (SVs) from short-read sequencing using Manta, Delly, and LUMPY. Detects deletions, insertions, inversions, duplications, and translocations that are too large for standard SNV callers. Use when detecting structural variants from short-read data. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.
How do I install the bio-variant-calling-structural-variant-calling skill?
Run `npx @skills-hub-ai/cli install openclaw-medical-variant-interpretation-acmg-bioskills-structural-variant-calling-bio-variant-callin` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/openclaw-medical-variant-interpretation-acmg-bioskills-structural-variant-calling-bio-variant-callin/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.
Which AI tools does bio-variant-calling-structural-variant-calling work with?
bio-variant-calling-structural-variant-calling runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.
Is the bio-variant-calling-structural-variant-calling skill free?
Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.
How do I use bio-variant-calling-structural-variant-calling after installing it?
In Claude Code, type `/openclaw-medical-variant-interpretation-acmg-bioskills-structural-variant-calling-bio-variant-callin` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.
Can I share the bio-variant-calling-structural-variant-calling skill with my team?
Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.