sharkrebel/everything-everywhere-for-antigravity/alphagenome-variant-impact-score
Claude Code and agent skill by sharkrebel/everything-everywhere-for-antigravity
- community
Checking that the SKILL.md file is still in the repository.
Score, annotate, and analyze the functional impact of genetic variants using AlphaGenome Variant Impact (AVI) scores. Query variants in chr:pos:ref>alt format, annotate VCF/tabular callsets, perform saturation mutagenesis window scans (1-based closed chr:start-end), and extract GENCODE v46 GTF gene/exon/junction coordinates all via the AlphaGenome Atlas API.
Install
npx vskill@latest install sharkrebel/everything-everywhere-for-antigravity/alphagenome-variant-impact-scoreSKILL.md
The same SKILL.md was published earlier as google-deepmind/science-skills/alphagenome-variant-impact-score.
AlphaGenome Variant Impact (AVI) Analysis
Score and prioritize genetic variants using AlphaGenome Variant Impact (AVI) models via scripts/alphagenome_atlas_avi.py.
[!IMPORTANT] Research Use Only & Clinical Safety Rules: The AlphaGenomeAVI Skill and the underlying AlphaGenome model/Atlas are **strictly researchtools**. Access to outputs requires an AlphaGenome API key subject to terms ofservice prohibiting clinical use.1. No Medical Advice or Clinical Diagnosis: You MUST NOT providemedical advice, clinical diagnoses, disease management strategies, ortreatment recommendations based on outputs from this skill or theAlphaGenome Atlas.2. Strict Molecular & Functional Framing: A high AVI score reflectspredicted molecular/functional impact (e.g., disruption of splicing,alteration of transcription factor binding, chromatin accessibilitychanges, or coding consequences). Frame all findings in terms of molecularmechanisms and biological annotations—never as clinical diagnoses ormedical conclusions.3. No Diagnostic Leaps: Never extrapolate high functional impact toclinical disease causation, penetrance, or patient prognosis. If a userasks a clinical or diagnostic question, explicitly clarify thatAlphaGenome is a research tool and restrict your answer to the predictedmolecular and functional effects.
[!IMPORTANT] **Always Use AlphaGenome GENCODE v46 GTF(scripts/alphagenome_atlas_avi.py gtf) for Gene Annotations**: Whenretrieving gene models, transcript IDs, exon coordinates, CDS/UTR regions, orsplice junction donor/acceptor boundaries, **always use the built-inscripts/alphagenome_atlas_avi.py gtfcommand. Do NOT** query externalsources (e.g., Ensembl REST API, UCSC, external GTF databases, or NCBI) forgene annotations or transcript coordinates. This ensures that the annotationsmatch the scores and website.
Prerequisites
Run scripts/alphagenome_atlas_avi.py using uv run:
[!TIP] Agent & Programmatic Execution Format: When invoking the CLI inagent workflows, prefer--format jsonor direct file export (-o <file>)for deterministic, structured parsing rather than extracting fields fromstdout markdown tables.
1. Query Variants (query)
Query single or multiple variants in 1-based chr:pos:ref>alt format to inspect scores and the 18 biological feature attribution weights:
- Output Size & Redirection: Single variant table/JSON queries are compact
(~1.0–1.5 KB). When querying $>3$ variants or passing --include_track_info --format json (which generates ~3.9 KB per variant), always export directly to a file using -o <file.json> or -o <file.tsv> to avoid exceeding context window limits.
- Typical Runtime: ~0.5–1.0 s per variant (~12–15 s total including
environment startup). Single calls with $>100$ variants take $>1$ minute.
2. Annotate & Rank Variant Files (annotate)
Annotate a VCF (or CSV/TSV/Parquet) in standard Ensembl VEP CSQ format:
- Output Size & Redirection:
annotatestreams the full callset directly
to disk via --output (.vcf, .vcf.gz, .parquet, .tsv, .csv). Stdout displays a bounded summary (top candidate table + top 3 modality breakdowns, ~4.0–5.5 KB). Use --top_output <file.json> when downstream tools need machine-readable top candidate data.
- Typical Runtime & Callset Scaling: Throughput is ~10 variants/s
(default) and ~5 variants/s (with track info). Small callsets ($\le 100$ variants) take ~15 s. Callsets $\ge 500$ variants execute silently for $>1$ minute (e.g., 1,000 variants take ~2–3 min; 10,000 variants take ~20 min).
3. Saturation Mutagenesis Window Scan (region)
Scan a 1-based closed genomic window (chr:start-end) to score all possible single nucleotide substitutions ($3 \times N$ variants for an $N$-bp window):
- Output Size & Redirection: Scanning a 100 bp window produces 300 SNVs
(~42 KB TSV / ~105 KB JSON), while a 1,000 bp window produces 3,000 SNVs (~421 KB TSV / ~1.06 MB JSON). Always specify `--output <file.tsv|parquet>` to save the complete dataset; stdout will only show a top-20 candidate preview.
- Typical Runtime: Queries precomputed dense scores over gRPC in **1.5–3.0
s** for up to 1,000 bp (default --max_window_size).
4. Inspect Atlas Database Metadata (metadata)
Dump or search registered scorers, the 18 biological feature definitions, or experimental track catalogs:
- Output Size & Redirection:
--features(~1.3 KB) and--scorerstable
(~1.7 KB) are safely under 4 KB. The experimental track catalog contains 9,440 tracks (~972 KB table / ~2.55 MB JSON). Never dump unfiltered tracks to stdout; always supply a narrow --query, specify --top_n 20, or export to --output atlas_tracks.parquet.
- Typical Runtime: ~1.5–2.5 s.
5. Inspect Gene Structure & Splice Junctions (gtf)
Query GENCODE v46 gene annotations, extract 1-based exon boundaries with donor/acceptor coordinates, and compute canonical and exon-skipping splice junction coordinates:
- Output Size & Redirection: Single-gene MANE Select queries with
--exons are compact (<2.5 KB). Always export to `--output <file.tsv|parquet>`or redirect (`> gtf_out.json`) when passing --all_transcripts(30–500 KB),--region($>50\text{ kb}$),--format json, or querying genes with $>30$ exons (e.g.TTN, DMD).
- Typical Runtime & Memory: Ingests the 318 MB GENCODE v46 feather dataset
(~4.37 GB RAM). Cached queries execute in ~4–6 s. Cold-start runs downloading the file from GCS take ~5–10 s on corp/Cloudtop networks, but can take up to 60–90 s on external networks. Do not kill the process prematurely during initial download.
Programmatic Python SDK Usage
When querying AlphaGenome programmatically in Python:
- Client Factory: Always instantiate the client using
atlas.create(api_key) — do NOT instantiate atlas.AtlasClient() directly (which requires an internal gRPC stub).
- Coordinate System:
genome.Intervaloperates with **0-based half-open
indexing** ([start, end)). When querying a 1-based closed interval chr:start_1_based-end_1_based, pass start = start_1_based - 1 and end = end_1_based.
- Single Variants:
genome.Variant.from_str("chr:pos:ref>alt")expects
1-based position coordinates.
Output Schemas & Response Structures
1. VCF CSQ & INFO Tag Schema (annotate)
When writing annotated VCF files, the following annotations are injected:
- Ensembl VEP `CSQ` Format String:
Allele|AVI_PHRED|AVI_RAW|AVI_QUANTILE|AVI_TOP_PERCENTILE|AVI_TOP_FEATURE
- Subfield Definitions:
-
Allele(string): Alternate allele base(s) (e.g.A). -
AVI_PHRED(float): Calibrated Phred impact score ($\text{Phred} =
-10 \cdot \log_{10}(1.0 - \text{quantile})$). Range: [0.0, ~70.0]. Higher = greater functional impact.
-
AVI_RAW(float): Raw continuous model prediction. -
AVI_QUANTILE(float): Calibrated tail quantile ($1 - \text{CDF}$).
Range: (0.0, 1.0].
-
AVI_TOP_PERCENTILE(float): Top percentile of genome-wide SNVs
($10^{-\text{Phred}/10} \times 100\%$, e.g. 0.0380 for Top 0.038%).
-
AVI_TOP_FEATURE(string): Display name of the top contributing
biological modality (e.g. Splicing, AlphaMissense, ChIP-TF, DNASE-seq, Cactus).
- Standalone INFO Tags (unless
--vep_csq_only):AVI_PHRED=Float,
AVI_RAW=Float, AVI_QUANTILE=Float, AVI_TOP_PERCENTILE=Float, AVI_TOP_FEATURE=String.
2. Tabular & JSON Record Schema (query, region, --top_output)
Output records exported to JSON, TSV, CSV, or Parquet contain the following fields:
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/alphagenome_variant_impact_score/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/sharkrebel/everything-everywhere-for-antigravity/alphagenome-variant-impact-score)