skills/genomics/variant-analysis-tools/SKILL.md
Variant and VCF workflow guide for local SNV, indel, and structural-variant summarization, filtering, and consequence triage. Use when the user asks to inspect a VCF, count mutation classes, filter by VAF or depth, summarize genes or consequences, or prepare a local variant report before downstream annotation.
npx skillsauth add drugclaw/drugclaw variant-analysis-toolsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use this skill when the user provides a VCF or BCF and wants concrete counts, filtering, or mutation summaries instead of only database lookup.
Typical triggers:
which python3 || true
python3 - <<'PY'
mods = ["pysam"]
for name in mods:
try:
__import__(name)
print(f"{name}: ok")
except Exception as exc:
print(f"{name}: missing ({exc})")
PY
Do not claim VCF analysis ran if pysam is unavailable.
templates/variant_report.pybio-db-tools for ClinVar, gnomAD, or dbSNP follow-up.python3 templates/variant_report.py \
--input cohort/sample.vcf.gz \
--sample TUMOR \
--pass-only \
--min-vaf 0.05 \
--min-depth 20 \
--exclude-consequence intronic \
--exclude-consequence intergenic \
--output variants/sample_filtered.csv \
--summary variants/sample_filtered.json
Structural-variant focused example:
python3 templates/variant_report.py \
--input sv_calls.vcf.gz \
--include-variant-type DEL \
--include-variant-type DUP \
--output variants/sv_subset.csv \
--summary variants/sv_subset.json
Good answers should mention:
For ClinVar, Ensembl, gnomAD, or dbSNP lookups, activate bio-db-tools.
For statistical testing or survival modeling on variant-derived burden tables, activate stat-modeling-tools or survival-analysis-tools.
For target-level interpretation around genes hit by the variants, activate target-intelligence-tools.
tools
Survival and time-to-event workflow guide for Kaplan-Meier summaries, log-rank tests, and Cox proportional hazards models with reproducible outputs. Use when the user asks for time-to-event analysis, censored data summaries, hazard ratios, or survival-group comparison for research datasets.
tools
Statistical modeling workflow guide for hypothesis tests, effect-size reporting, statsmodels regression, diagnostics, and structured result export. Use when the user asks for statistical test selection, OLS or logistic regression, coefficient tables, inference, or reproducible statistical summaries for scientific datasets.
tools
Research-method workflow guide for hypothesis framing, peer-review style critique, reproducibility planning, study-design checks, and scientific-writing structure. Use when the user asks for manuscript critique, research-gap framing, hypothesis generation, reproducibility checklists, or study-planning support that should stay on the research side rather than patient-care decisions.
tools
Scientific visualization workflow guide for publication-ready static figures with seaborn or matplotlib and interactive figures with Plotly. Use when the user asks for scientific plots, cohort or assay figures, publication graphics, dashboards, or reusable plotting scripts for research datasets.