AGENT SKILL

annotate-vcf-with-mcp

Annotate an admitted VCF through an already configured variant-annotation MCP service using matching offline VEP references, then inspect complete consequence, frequency and ClinVar tables. Use for this service deployment and its asynchronous results; retain the existing VCF workflow when it is unavailable and never silently switch private variants to REST.

License 许可
MIT
最近更新
2026-11-14
Stars
★ 0
Forks
2

01 前言 Front Matter

name
annotate-vcf-with-mcp
license
MIT
metadata
{ "cpus": "4", "tags": "mcp, variant-annotation", "image": "docker://ghcr.io/lijinbio/mcp-variant-annotation@sha256:a1861a81a36d154021ce5a283f11fa557e4756ac750cfce90dc57827a49bd2b6", "mem_gb": "16", "status": "community", "compute": "Service default: 8 CPUs, 32 GB, 8 hours; reference downloads and real callset acceptance are deployment-specific", "version": "0.1.1", "category": "variants", "scheduler": "optional", "mcp-server": "variant-annotation", "time_limit": "01:00:00", "tested-with": "aiscientist-mcp-variant-annotation 0.0.2, common 0.0.4; native MCP and deterministic VEP/bcftools regression fixtures; release-112.0 VEP image build", "requires-gpu": "false", "requires-network": "runtime", "requires-secrets": "none", "mcp-package-version": "0.0.2" }
description
Annotate an admitted VCF through an already configured variant-annotation MCP service using matching offline VEP references, then inspect complete consequence, frequency and ClinVar tables. Use for this service deployment and its asynchronous results; retain the existing VCF workflow when it is unavailable and never silently switch private variants to REST.

03 SKILL.md 正文

Annotate a VCF through the variant MCP service

Use the client's registered variant-annotation service. Tool names are native names below; discover any host qualification rather than constructing it. Without this service, keep the current annotation tools and established VCF QC/normalization skills. No existing skill image is changed by this migration skill, and no unpublished image is assumed available.

Confirm assembly and input scope

annotate_variants accepts vcf_path or the operator-bound VARIANT_DATASET, assembly, species, mode, pass_only, max_variants, max_pop_af, genes, optional regions_bed and sample, plus analysis_id and rerun. Inspect the live schema for exact types/defaults. VCF and BED paths must be inside VARIANT_READ_ROOTS on the server host.

The default assembly is GRCh38, not an inference from every input. Confirm the real build and match VEP cache, FASTA and ClinVar releases. The offline server supports human annotation; licensed/optional predictor assets are separately staged by the operator. Do not claim CADD, REVEL, AlphaMissense, SpliceAI or another layer ran merely because its columns exist.

Preserve the execution and privacy choice

Use mode="offline" with deployed references. REST requires both the explicit tool mode and operator VARIANT_ALLOW_REST=1; there is no automatic fallback. It sends variant loci/alleles to Ensembl, has a bounded workload and refuses unsupported sample/BED selection. Keep that choice separate from a failed offline installation. Offline max_variants limits parsed annotation rows after VEP, so it is not a guarantee of lower annotation compute.

Submit once, retain analysis_id, task_id, and any Slurm job_id, and poll variant_job_status to COMPLETED. Inline waits inside the current allocation. Each attempt has its own artifacts; rerun=true creates another attempt after the active one ends.

Validate delivered annotation

Check whole-file versus retained PASS/non-PASS counts, assembly/reference provenance, normalization actually performed, sample/region/AF filters, parsed/omitted rows, optional predictors that ran, and warnings. Read the complete variant_annotation.tsv, distributions, ClinVar findings, rare unclassified candidate table and summary JSON from artifact_root. The native response is a bounded preview; follow full_result/omission indicators before claiming a complete candidate list.

Report variants as research annotations requiring review; classification labels and heuristic ranks are not a clinical diagnosis. Keep the site validation evidence separate from synthetic VEP/bcftools executable fixtures and container tools-list smoke checks. Production reference and website acceptance must precede retiring the original application path.

04 同仓库更多 Skills

lijinbio
lijinbio/aiscientist-skills

verb-object-with-tool

One or two sentences on what the skill does and when to use it. Name the tool, the input it takes and the output it produces, then list the situations that should trigger it (for example "Use when setting up X, writing a Y config, or diagnosing a failed Z run").

★ 0
lijinbio
lijinbio/aiscientist-skills

write-variant-tables

Write the five standard variant-annotation result tables - consequence, impact and ClinVar-significance distributions, a ClinVar pathogenic and likely-pathogenic list, and a shortlist of rare, damaging variants not in ClinVar - plus a JSON summary, from an annotated per-variant TSV (VEP consequence and impact, SIFT, PolyPhen, max population AF, rsID, ClinVar significance), in pure Python without re-parsing the VCF or re-running VEP. Use when a study needs these tables with a different rarity cutoff, impact set or damaging-predictor rule, or when rebuilding them from an existing annotation table. In AiScientist, annotate_variants already writes the default tables, so use this only for a custom cut.

★ 0
lijinbio
lijinbio/aiscientist-skills

rank-phenotype-differentials-with-mcp

Map clinical phenotype text to grounded HPO terms and rank a research differential through an already configured phenotype-diagnosis MCP service with LIRICAL and optional literature adjudication. Use for explicit service-based analysis while preserving negation, uncertainty and original probabilities; retain the established workflow when the service is unavailable.

★ 0
lijinbio
lijinbio/aiscientist-skills

qc-vcf-callset

Judge whether a germline VCF callset is trustworthy before interpreting any variant - Ti/Tv, Het/Hom, SNP, indel and multiallelic counts, sample count and genotype call rate from bcftools stats (falling back to cyvcf2, then to a plain-Python Ti/Tv scan) - and flag values outside the expected human WGS or WES ranges. Writes tables/vcf_qc_summary.csv and data/vcf_qc.json with a qc_flags list. Use when a VCF (one sample or a cohort) arrives for annotation or prioritization, when a Ti/Tv or Het/Hom value needs interpreting, or when deciding whether downstream variant tables must carry a low-confidence caveat.

★ 0
lijinbio
lijinbio/aiscientist-skills

prioritize-clinical-variants

Rank annotated variants into research-triage tiers (ClinVar pathogenic, likely pathogenic, VUS favouring pathogenic, VUS, likely benign, benign) from ClinVar significance used verbatim, gnomAD allele frequency against a dominant or recessive disease-model cutoff and the ACMG BA1 5 percent rule, and in-silico predictors (SIFT, PolyPhen, REVEL, CADD, AlphaMissense) as supporting evidence only. Pure Python; reads a per-variant annotation TSV and writes a tier-sorted CSV with the evidence for each tier plus a JSON of tier counts. Use when a rare-variant list from VEP, ClinVar and gnomAD annotation must be ordered for review (which variants to look at first) or when choosing the disease model and cutoffs for that ordering. Research triage only, NOT a clinical ACMG/AMP classification.

★ 0
lijinbio
lijinbio/aiscientist-skills

normalize-vcf-with-bcftools

Normalize a VCF with bcftools norm before annotation or ClinVar/gnomAD matching - split multiallelic sites into biallelic records, atomize MNPs into SNPs, then left-align and trim indels against the reference FASTA of the same build - writing an indexed normalized.vcf.gz and a JSON of record counts before and after. Use when a VCF not known to be normalized (especially an indel-heavy one) will be matched against ClinVar, gnomAD or dbSNP, compared between callers or loaded into PLINK, or when a known pathogenic indel comes back as not in ClinVar. In AiScientist, the offline annotate_variants path already normalizes, so do not plan it as a separate step there.

★ 0