SKILL.md
Version Compatibility
Reference examples tested with: bcftools 1.19+, samtools 1.19+
Before using code patterns, verify installed versions match. If versions differ:
- CLI:
<tool> --versionthen<tool> --helpto confirm flags
If code throws ImportError, AttributeError, or TypeError, introspect the installed package and adapt the example to match the actual API rather than retrying.
Structural Variant Calling (Short Reads)
"Call structural variants from my WGS data" → Detect large genomic rearrangements (deletions, insertions, inversions, duplications, translocations) using split-read and discordant-pair evidence.
- CLI:
configManta.py(Manta),delly call,lumpyexpress/smoove call
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
