Claude Cursor Skill

clinvar-annotation

Guide for annotating ENCODE regulatory variants with ClinVar clinical significance. Use when users need to check if variants in ENCODE peaks have clinical associations, find pathogenic variants in regulatory regions, or assess variant clinical impact. Trigger on: ClinVar, clinica

LLM Mart · 0 points · 0 views 0 listing impressions 0 install-command copies
Virus-scanned Reviewed automatically before listing.

Full trust report

Download ammawla-encode-toolkit-plugin_skills_clinvar-annotation-36836c8.zip · 12 KB
Part of ammawla/encode-toolkit — 90 skills

Install

skills CLI npx skills add https://github.com/ammawla/encode-toolkit/tree/main/plugin/skills/clinvar-annotation
Claude Code claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install ammawla-encode-toolkit@llmmart
Git git clone https://github.com/ammawla/encode-toolkit.git

The skills CLI installs just this skill, for any of its supported agents. Claude Code installs the whole ammawla/encode-toolkit collection as a plugin from our marketplace. Git is the plain clone.

Skill manifest

When to Use

  • User wants to check if variants in ENCODE regulatory peaks have clinical significance in ClinVar
  • User asks about "ClinVar", "pathogenic variants", "clinical significance", or "variant classification"
  • User needs to annotate ENCODE-derived regulatory variants with disease associations
  • User wants to find clinically relevant variants within enhancers, promoters, or open chromatin regions
  • Example queries: "check ClinVar for variants in my ATAC-seq peaks", "find pathogenic variants in pancreas enhancers", "annotate regulatory variants with clinical significance"

Annotating ENCODE Regulatory Variants with ClinVar Clinical Significance

Cross-reference ENCODE functional genomic elements with ClinVar clinical variant classifications to identify pathogenic variants in regulatory regions and understand non-coding disease mechanisms.

Scientific Rationale

The question: "Do any clinically significant variants fall within my ENCODE regulatory elements, and can ENCODE data explain their pathogenic mechanism?"

ClinVar is NCBI's public archive of variant-disease associations, aggregating submissions from clinical laboratories, research groups, and expert panels. Most ClinVar annotations focus on coding variants, but a growing number of non-coding variants are being classified. ENCODE provides the functional context to explain WHY a non-coding variant is pathogenic — by showing that it disrupts an active enhancer, promoter, or insulator in disease-relevant tissue.

This bidirectional integration serves two use cases:

  1. Forward: Start from ENCODE peaks, find clinically significant variants within them
  2. Reverse: Start from ClinVar pathogenic variants, use ENCODE to explain their mechanism

The Non-Coding Variant Challenge

  • ~90% of GWAS-associated variants are in non-coding regions (Maurano et al. 2012)
  • ClinVar increasingly includes non-coding variants, but most lack mechanistic annotation
  • ENCODE regulatory annotations provide the "why" behind non-coding pathogenicity
  • A variant classified as VUS (variant of uncertain significance) may be reclassified with ENCODE functional evidence

Key Literature

  • Landrum et al. 2018 "ClinVar: improving access to variant interpretations and supporting evidence" (Nucleic Acids Research, ~2,000 citations). Describes the ClinVar database architecture, submission standards, and the star-rating review system for variant classifications. DOI: 10.1093/nar/gkx1153
  • Riggs et al. 2020 "Technical standards for the interpretation and reporting of constitutional copy-number variants: a joint consensus recommendation of the ACMG and ClinGen" (Genetics in Medicine, ~500 citations). Framework for interpreting structural variants, relevant when ENCODE elements overlap CNVs. DOI: 10.1038/s41436-019-0686-8
  • Richards et al. 2015 "Standards and guidelines for the interpretation of sequence variants: ACMG/AMP joint consensus recommendation" (Genetics in Medicine, ~12,000 citations). The ACMG variant classification framework (pathogenic through benign). ENCODE functional data can provide evidence for PS3/BS3 (functional studies) criteria. DOI: 10.1038/gim.2015.30
  • ENCODE Project Consortium 2020 (Nature, ~1,656 citations). Registry of 926,535 human cCREs — the functional annotation layer for interpreting non-coding ClinVar variants. DOI: 10.1038/s41586-020-2493-4

ClinVar Clinical Significance Categories

Classification Meaning ENCODE Relevance
Pathogenic Causes disease If in regulatory region, ENCODE explains mechanism
Likely pathogenic Strong evidence for disease causation ENCODE data may upgrade to pathogenic
Uncertain significance (VUS) Not enough evidence to classify ENCODE functional data may help resolve
Likely benign Strong evidence against pathogenicity —
Benign Does not cause disease —
Conflicting interpretations Labs disagree on classification ENCODE data may resolve conflict
Risk factor Increases disease risk May overlap ENCODE regulatory elements

ClinVar Star Ratings

Stars Review Status Confidence
0 No assertion criteria Very low — treat with caution
1 Single submitter with criteria Low-moderate
2 Multiple submitters, no conflict Moderate
3 Expert panel reviewed High
4 Practice guideline Highest

Always check star ratings. A 0-star "pathogenic" classification has very different reliability than a 3-star classification.

NCBI E-utilities API Reference

Base URL: https://eutils.ncbi.nlm.nih.gov/entrez/eutils/

No authentication required for low-volume use. Rate limit: 3 requests/second without API key, 10/second with NCBI API key.

Key Endpoints

Endpoint Purpose Example
esearch.fcgi?db=clinvar&term=... Search ClinVar Search by gene, variant, condition
efetch.fcgi?db=clinvar&id=... Fetch full record Get complete variant details
esummary.fcgi?db=clinvar&id=... Summary record Get classification, review status
elink.fcgi?db=clinvar&dbfrom=... Cross-database links Link to PubMed, Gene, etc.

ClinVar VCF Downloads

For bulk intersection with ENCODE peaks, download the ClinVar VCF:

  • GRCh38: https://ftp.ncbi.nlm.nih.gov/pub/clinvar/vcf_GRCh38/clinvar.vcf.gz
  • GRCh37: https://ftp.ncbi.nlm.nih.gov/pub/clinvar/vcf_GRCh37/clinvar.vcf.gz

Updated monthly on the first Thursday.

Step 1: Define the Scope

Determine which direction the analysis runs:

Forward: ENCODE Peaks to ClinVar Variants

Starting from ENCODE regulatory elements, find clinically significant variants within them.

# Get ENCODE peaks for target tissue
encode_search_experiments(
    assay_title="Histone ChIP-seq",
    target="H3K27ac",
    organ="pancreas",
    biosample_type="tissue"
)

encode_list_files(
    experiment_accession="ENCSR...",
    file_format="bed",
    output_type="IDR thresholded peaks",
    assembly="GRCh38"
)

Reverse: ClinVar Variants to ENCODE Context

Starting from ClinVar pathogenic variants, determine if they overlap ENCODE regulatory elements.

import requests

# Search ClinVar for pathogenic variants in a gene
url = "https://eutils.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi"
params = {
    "db": "clinvar",
    "term": "INS[gene] AND pathogenic[clinical significance]",
    "retmax": 50,
    "retmode": "json"
}
response = requests.get(url, params=params)
result = response.json()
variant_ids = result["esearchresult"]["idlist"]

Step 2: Query ClinVar via E-utilities

Search for Variants by Gene

import requests
import time

def search_clinvar(gene_symbol, significance="pathogenic"):
    """Search ClinVar for variants in a gene with given clinical significance."""
    url = "https://eutils.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi"
    term = f"{gene_symbol}[gene] AND {significance}[clinical significance]"
    params = {
        "db": "clinvar",
        "term": term,
        "retmax": 100,
        "retmode": "json"
    }
    response = requests.get(url, params=params)
    time.sleep(0.34)  # Rate limit: 3/sec
    return response.json()["esearchresult"]["idlist"]

Get Variant Details

def get_clinvar_summary(variant_ids):
    """Get summary for ClinVar variant IDs."""
    url = "https://eutils.ncbi.nlm.nih.gov/entrez/eutils/esummary.fcgi"
    params = {
        "db": "clinvar",
        "id": ",".join(variant_ids[:20]),  # Max 20 per request
        "retmode": "json"
    }
    response = requests.get(url, params=params)
    time.sleep(0.34)
    return response.json()["result"]

Search by Genomic Region

# Search for ClinVar variants in a specific genomic region (GRCh38)
term = "11[chromosome] AND 2159000:2162000[chrpos38] AND pathogenic[clinical significance]"

Step 3: Intersect ClinVar with ENCODE Peaks

Using bedtools (Command Line)

# Download ClinVar VCF (GRCh38)
wget https://ftp.ncbi.nlm.nih.gov/pub/clinvar/vcf_GRCh38/clinvar.vcf.gz
wget https://ftp.ncbi.nlm.nih.gov/pub/clinvar/vcf_GRCh38/clinvar.vcf.gz.tbi

# Filter to pathogenic/likely pathogenic only
bcftools view -i 'INFO/CLNSIG~"Pathogenic" || INFO/CLNSIG~"Likely_pathogenic"' \
    clinvar.vcf.gz | \
    bcftools query -f '%CHROM\t%POS0\t%END\t%ID\t%INFO/CLNSIG\t%INFO/CLNDN\n' \
    > clinvar_pathogenic.bed

# Intersect with ENCODE peaks
# NOTE: ClinVar VCF is 1-based, BED is 0-based — bcftools query with %POS0 handles this
bedtools intersect \
    -a clinvar_pathogenic.bed \
    -b encode_h3k27ac_peaks.bed \
    -wa -wb \
    > clinvar_in_encode_enhancers.bed

Using Python

import pysam

# Open ClinVar VCF
vcf = pysam.VariantFile("clinvar.vcf.gz")

# Define ENCODE peak region (0-based)
chrom, start, end = "chr11", 2159000, 2162000

# Find ClinVar variants in region
for record in vcf.fetch(chrom, start, end):
    clnsig = record.info.get("CLNSIG", [])
    clndn = record.info.get("CLNDN", [])
    print(f"{record.chrom}:{record.pos} {record.ref}>{record.alts} "
          f"Significance: {clnsig} Condition: {clndn}")

Step 4: Classify the Regulatory Impact

For each ClinVar variant overlapping an ENCODE element, assess the regulatory impact:

Impact Classification Framework

ClinVar Variant in... ENCODE Context Interpretation
Active enhancer (H3K27ac+) Tissue-specific, near disease gene High impact — variant may disrupt enhancer
Active promoter (H3K4me3+) At TSS of disease gene High impact — variant may affect transcription initiation
CTCF binding site TAD boundary High impact — may disrupt chromatin insulation
Open chromatin only (ATAC+) No histone marks Moderate — accessible but function unclear
TF binding site Specific TF known for disease gene High impact — may disrupt TF binding
No ENCODE overlap Not in regulatory element Mechanism may be coding, splicing, or untested tissue

ACMG Evidence Integration

ENCODE functional data can support ACMG criteria for variant classification:

ACMG Criterion How ENCODE Data Contributes
PS3 (Functional studies) ENCODE shows variant disrupts active regulatory element
PM1 (Critical domain) Variant in a regulatory element active in disease tissue
PP3 (Computational evidence) Multiple ENCODE annotations converge on regulatory disruption
BS3 (No functional impact) ENCODE shows region is inactive in all relevant tissues

Step 5: Report Findings

Per-Variant Summary Table

Variant ClinVar ID Classification Stars Condition ENCODE Overlap Tissue Active Impact
chr11:2160994 A>G VCV000012345 Pathogenic 3 Neonatal diabetes H3K27ac enhancer Pancreas High
chr7:87654321 C>T VCV000067890 VUS 1 Cystic fibrosis ATAC-seq peak Lung Moderate

Summary Statistics

Report:

  • Total ClinVar variants in region/gene
  • Number overlapping ENCODE regulatory elements (by element type)
  • Breakdown by clinical significance
  • Star rating distribution
  • Tissues with ENCODE data used

Step 6: Log Provenance

encode_log_derived_file(
    file_path="/path/to/clinvar_encode_intersection.tsv",
    source_accessions=["ENCSR...", "ENCSR..."],
    description="Intersection of ClinVar pathogenic variants with ENCODE H3K27ac and ATAC-seq peaks in pancreas",
    file_type="variant_annotation",
    tool_used="bedtools intersect + ClinVar VCF (2024-01 release)",
    parameters="GRCh38, pathogenic+likely_pathogenic, IDR thresholded peaks"
)

encode_link_reference(
    experiment_accession="ENCSR...",
    reference_type="other",
    reference_id="ClinVar:VCV000012345",
    description="Pathogenic variant for neonatal diabetes overlapping pancreas enhancer"
)

Pitfalls & Edge Cases

  • ClinVar classifications change over time: A variant classified as VUS today may be reclassified as pathogenic tomorrow. Always record the ClinVar version/date when annotating variants. Re-check classifications before publication.
  • Star rating indicates review quality: ClinVar uses a 0-4 star system for assertion confidence. Single-submitter entries (1 star) may conflict with expert panel reviews (3-4 stars). Always prefer higher star ratings.
  • Coordinate system mismatch: ClinVar uses 1-based coordinates while BED files are 0-based. Off-by-one errors when intersecting ClinVar with ENCODE peaks are extremely common. Always convert before comparison.
  • Regulatory variants are underrepresented: ClinVar is heavily biased toward coding and splice-site variants. Absence of a regulatory variant in ClinVar does NOT mean it is benign — it likely has not been assessed.
  • Multiple classifications for the same variant: Different submitters may classify the same variant differently (one says pathogenic, another says benign). Check the "conflicting interpretations" flag and review individual submissions.
  • GRCh37 vs GRCh38 in ClinVar: ClinVar provides coordinates in both assemblies but some older submissions only have GRCh37. Always specify the assembly when downloading and verify coordinate consistency.

Walkthrough: Annotating ENCODE Regulatory Variants with Clinical Significance

Goal: Cross-reference variants in ENCODE-defined regulatory elements with ClinVar clinical significance to identify non-coding variants with known disease associations. Context: Most GWAS hits fall in non-coding regions. ENCODE maps the regulatory landscape; ClinVar provides clinical interpretation.

Step 1: Find regulatory element experiments

encode_search_experiments(assay_title="ATAC-seq", organ="heart", organism="Homo sapiens")

Expected output:

{
  "results": [
    {"accession": "ENCSR789HRT", "assay_title": "ATAC-seq", "biosample_summary": "heart left ventricle", "status": "released"}
  ],
  "total": 18,
  "limit": 25,
  "offset": 0,
  "has_more": false,
  "next_offset": null
}

Step 2: Download peak files for regulatory regions

encode_list_files(experiment_accession="ENCSR789HRT", file_format="bed", output_type="IDR thresholded peaks", assembly="GRCh38")

Expected output (a JSON array of file records; fields abridged):

[
  {"accession": "ENCFF101ATK", "output_type": "IDR thresholded peaks", "file_format": "bed", "file_type": "bed narrowPeak", "file_size_human": "0.8 MB"}
]

Step 3: Query ClinVar for variants in peaks

Using ClinVar E-utilities (via skill guidance):

GET https://eutils.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi?db=clinvar&term=chr1[chr]+AND+10000:20000[chrpos]+AND+pathogenic[clnsig]

Expected response:

{
  "esearchresult": {
    "count": "3",
    "idlist": ["12345", "67890", "11111"]
  }
}

Step 4: Interpret clinical significance in regulatory context

For each ClinVar variant in an ENCODE peak:

  • Pathogenic/Likely pathogenic in a heart ATAC-seq peak = high-confidence disease-regulatory variant
  • VUS (Variant of Uncertain Significance) in an active enhancer = candidate for functional validation
  • Benign in an open chromatin region = regulatory region tolerates this variant

Interpretation: Non-coding pathogenic variants in heart-specific open chromatin suggest regulatory disruption of cardiac gene expression. These are candidates for CRISPR validation.

Integration with downstream skills

  • ENCODE peaks from regulatory-elements define the regions to query in ClinVar
  • Clinical variants feed into variant-annotation for comprehensive annotation
  • Pathogenic regulatory variants inform disease-research for mechanism studies
  • Population frequencies from gnomad-variants contextualize ClinVar findings

Code Examples

1. Find ENCODE regulatory data matching ClinVar tissue

encode_get_facets(assay_title="ATAC-seq", organism="Homo sapiens")

Expected output (facet field names are the top-level keys):

{
  "biosample_ontology.organ_slims": [
    {"term": "brain", "count": 32},
    {"term": "heart", "count": 18}
  ]
}

2. Get experiment details for quality check

encode_get_experiment(accession="ENCSR789HRT")

Expected output (fields abridged):

{
  "accession": "ENCSR789HRT",
  "assay_title": "ATAC-seq",
  "biosample_summary": "heart left ventricle",
  "bio_replicate_count": 2,
  "status": "released",
  "audit_error_count": 0,
  "audit_not_compliant_count": 0,
  "audit_warning_count": 0,
  "audit_internal_action_count": 1
}

3. Track experiments used for clinical annotation

encode_track_experiment(accession="ENCSR789HRT", notes="Heart ATAC-seq for ClinVar regulatory variant annotation")

Expected output (the notes you pass are stored, not echoed back; read them with encode_list_tracked):

{
  "tracking": {"accession": "ENCSR789HRT", "action": "tracked"},
  "publications_found": 0,
  "publications": [],
  "pipelines_found": 1,
  "pipelines": [
    {"title": "ATAC-seq (replicated)", "version": "2.2.1", "software": [{"name": "bowtie2", "version": "2.3.4.3"}], "status": "released"}
  ]
}

Integration

This skill produces... Feed into... Purpose
Clinical variant annotations variant-annotation Comprehensive variant annotation with clinical significance
Pathogenic regulatory variants disease-research Connect non-coding variants to disease mechanisms
ClinVar gene-disease associations peak-annotation Prioritize peaks near clinically relevant genes
Variant pathogenicity scores gwas-catalog Overlay GWAS hits with ClinVar clinical evidence
Regulatory variant coordinates gnomad-variants Add population frequency context to clinical variants
Tissue-specific clinical variants gtex-expression Check expression of genes near pathogenic regulatory variants
Clinical regulatory elements regulatory-elements Classify ClinVar-annotated elements by regulatory function

Presenting Results

When reporting ClinVar annotation results:

  • Variant table: Present a table with columns: variant_id (rsID or HGVS), clinical_significance, review_status, star_rating (0-4), condition(s), and whether the variant overlaps an ENCODE peak
  • Always report: ClinVar release date used, genome assembly (must be GRCh38 for ENCODE compatibility), total variants queried, and number with ClinVar entries vs no entry
  • Key fields to include: Number of pathogenic/likely pathogenic variants in regulatory regions, number of VUS that overlap active enhancers or promoters, and the breakdown by clinical significance category
  • Context to provide: Note that absence from ClinVar does not imply benign status (especially for non-coding variants), and that ClinVar classifications change monthly as new evidence accumulates
  • Star rating guidance: Emphasize that 0-1 star variants have limited review and should be interpreted cautiously; 2+ stars indicate multiple submitters with concordant interpretation
  • Next steps: Suggest gnomad-variants for population frequency context, or variant-annotation for a full ENCODE-based regulatory variant prioritization workflow

Related Skills

  • variant-annotation — Full ENCODE variant annotation workflow with prioritization scoring
  • gwas-catalog — GWAS variants in ENCODE peaks (population-level associations)
  • gnomad-variants — Population frequency context for ClinVar variants
  • disease-research — Disease-focused ENCODE analysis workflows
  • cross-reference — Linking ENCODE experiments to ClinVar and other databases
  • regulatory-elements — Characterizing the regulatory elements disrupted by variants
  • publication-trust — Verify literature claims backing analytical decisions

For the request: "$ARGUMENTS"

Files (encode-toolkit)
  • references
    • literature.md 11.5 KB
      # ClinVar Annotation — Literature References
      
      **Last updated:** 2026-03-07
      **Purpose:** Reference catalog for the clinvar-annotation skill — key papers informing variant clinical significance classification, curation standards, and database resources for clinical genomics.
      
      ---
      
      ## Database Resources
      
      ---
      
      ### Landrum et al. 2018 — ClinVar: improving access to variant interpretations
      
      - **Citation:** Landrum MJ, Lee JM, Benson M, Brown GR, Chao C, Chitipiralla
        S, Gu B, Hart J, Hoffman D, Jang W, et al. ClinVar: improving access to
        variant interpretations and supporting evidence. Nucleic Acids Research,
        46(D1):D1062-D1067, 2018.
      - **DOI:** [10.1093/nar/gkx1153](https://doi.org/10.1093/nar/gkx1153)
      - **PMID:** 29165669 | **PMC:** PMC5753237
      - **Citations:** ~2,000
      - **Key findings:** Described the ClinVar database infrastructure for
        aggregating variant-disease interpretations submitted by clinical
        laboratories, research groups, expert panels, and professional societies.
        ClinVar uses a star-based review status system reflecting evidence quality:
        0 stars (single submitter, no assertion criteria provided), 1 star (single
        submitter with criteria), 2 stars (multiple submitters with no conflicts), 3
        stars (reviewed by expert panel), and 4 stars (practice guideline).
        Approximately 12% of variants with multiple submissions have conflicting
        interpretations, highlighting the inherent difficulty of variant
        classification and the importance of checking review status rather than
        relying on a single interpretation. The database tracks interpretation
        changes over time through versioned submissions, enabling laboratories to
        monitor whether their classifications have been superseded by newer evidence
        — a critical feature for clinical genomics where variant reclassification
        can alter patient management.
      
      ---
      
      ### Harrison et al. 2021 — ClinVar 2021: public archive of variant interpretations
      
      - **Citation:** Harrison SM, Biesecker LG, Rehm HL. ClinVar as a resource to
        track and share variant interpretations. Current Protocols, 1(12):e315,
        2021.
      - **DOI:** [10.1002/cpz1.315](https://doi.org/10.1002/cpz1.315)
      - **PMID:** 34964606 | **PMC:** PMC8858745
      - **Citations:** ~500
      - **Key findings:** Documented ClinVar's growth to >1.7 million unique
        variants with >2.3 million submitted interpretations as of 2021, with
        submission rates accelerating as clinical next-generation sequencing becomes
        standard of care. Detailed the variant aggregation algorithm that assigns an
        overall "review status" and "aggregate classification" when multiple
        submitters report on the same variant, automatically flagging conflicting
        interpretations for attention. Provided practical guidance for integrating
        ClinVar into variant annotation pipelines, including the critical
        distinction between GRCh37 and GRCh38 coordinate systems (variants must be
        queried in the correct assembly), the importance of checking submission
        dates (older submissions may use outdated classification criteria), and the
        use of ClinVar's XML or VCF downloads for high-throughput annotation. Also
        documented the E-utilities API (esearch/efetch with db=clinvar) and the
        Variation Services API for programmatic access.
      
      ---
      
      ## Classification Standards
      
      ---
      
      ### Richards et al. 2015 — ACMG/AMP standards for variant interpretation
      
      - **Citation:** Richards S, Aziz N, Bale S, Bick D, Das S, Gastier-Foster J,
        Grody WW, Hegde M, Lyon E, Spector E, Voelkerding K, Rehm HL, ACMG
        Laboratory Quality Assurance Committee. Standards and guidelines for the
        interpretation of sequence variants: a joint consensus recommendation of the
        American College of Medical Genetics and Genomics and the Association for
        Molecular Pathology. Genetics in Medicine, 17(5):405-424, 2015.
      - **DOI:** [10.1038/gim.2015.30](https://doi.org/10.1038/gim.2015.30)
      - **PMID:** 25741868 | **PMC:** PMC4544753
      - **Citations:** ~8,000
      - **Key findings:** Established the five-tier classification system used
        universally in clinical genetics: pathogenic (P), likely pathogenic (LP),
        variant of uncertain significance (VUS), likely benign (LB), and benign (B).
        Defined 28 weighted evidence criteria organized by strength — very strong
        (PVS1: null variant in a gene where LoF is a known disease mechanism),
        strong (PS1-PS4), moderate (PM1-PM6), and supporting (PP1-PP5) for
        pathogenicity, with corresponding benign criteria (BA1, BS1-BS4, BP1-BP7).
        These criteria are combined using a semi-quantitative Bayesian-inspired
        framework: pathogenic requires either 1 very strong + 1 strong, 2 strong, 1
        strong + 3 supporting, or other defined combinations. These guidelines are
        the foundation of virtually all ClinVar submissions, though they were
        designed primarily for rare Mendelian disease variants and require
        adaptation for complex disease, pharmacogenomic, somatic cancer, and
        regulatory variants relevant to ENCODE.
      
      ---
      
      ### Nykamp et al. 2017 — Sherloc: comprehensive variant classification framework
      
      - **Citation:** Nykamp K, Anderson M, Powers M, Garcia J, Herber B, Kim YH,
        Ferber M, Lebo M, Seidman C, Seidman J, et al. Sherloc: a comprehensive
        refinement of the ACMG-AMP variant classification criteria. Genetics in
        Medicine, 19(10):1105-1117, 2017.
      - **DOI:** [10.1038/gim.2017.37](https://doi.org/10.1038/gim.2017.37)
      - **PMID:** 28492532 | **PMC:** PMC5632834
      - **Citations:** ~600
      - **Key findings:** Sherloc (Semiquantitative, Hierarchical Evidence-based
        Rules for Locus interpretation) refined the ACMG/AMP criteria by assigning
        explicit numerical point values to each evidence type, enabling transparent
        quantitative combination rather than the original qualitative counting
        rules. Subdivided several broad ACMG categories into more granular tiers —
        for example, splitting functional evidence (PS3) into tiers based on assay
        validation level: well-validated functional assays in established cell
        models receive more points than reporter assays or computational
        predictions. Demonstrated that quantitative scoring reduces inter-analyst
        variability from ~80% concordance with standard ACMG to >90% concordance
        with Sherloc, directly addressing the "conflicting interpretations" problem
        in ClinVar. The framework is particularly valuable for ClinVar submitters
        because it produces transparent, auditable classification logic where the
        contribution of each evidence type to the final classification can be traced
        and reviewed.
      
      ---
      
      ### Plon et al. 2008 — IARC classification system for sequence variants
      
      - **Citation:** Plon SE, Eccles DM, Easton D, Foulkes WD, Genuardi M,
        Greenblatt MS, Hogervorst FB, Hoogerbrugge N, Lancaster JM, Nathanson KL, et
        al. Sequence variant classification and reporting: recommendations for
        improving the interpretation of cancer susceptibility genetic test results.
        Human Mutation, 29(11):1282-1291, 2008.
      - **DOI:** [10.1002/humu.20880](https://doi.org/10.1002/humu.20880)
      - **PMID:** 18951446 | **PMC:** PMC3075918
      - **Citations:** ~1,200
      - **Key findings:** Established the IARC five-class system for classifying
        variants in cancer susceptibility genes with explicit posterior probability
        thresholds: Class 5 (definitely pathogenic, >0.99 posterior probability),
        Class 4 (likely pathogenic, 0.95-0.99), Class 3 (uncertain, 0.05-0.949),
        Class 2 (likely not pathogenic/little clinical significance, 0.001-0.049),
        Class 1 (not pathogenic/no clinical significance, <0.001). The probability
        thresholds were derived from formal clinical decision theory, balancing the
        consequences of false-positive classification (unnecessary prophylactic
        surgery, surveillance, psychological burden) against false-negative
        classification (missed cancer prevention opportunities). This framework
        preceded and directly influenced the ACMG/AMP 2015 guidelines, establishing
        two critical principles: (1) variant classification is inherently
        probabilistic, not binary, and (2) "uncertain" is a legitimate and important
        classification reflecting genuine epistemic uncertainty rather than
        analytical failure. The IARC system remains the standard for hereditary
        cancer gene variant classification in ClinVar, applied by expert panels for
        BRCA1/2, MMR genes, and TP53.
      
      ---
      
      ## Curation Infrastructure
      
      ---
      
      ### Rehm et al. 2015 — ClinGen: authoritative central resource for clinical genomics
      
      - **Citation:** Rehm HL, Berg JS, Brooks LD, Bustamante CD, Evans JP, Landrum
        MJ, Ledbetter DH, Maglott DR, Martin CL, Nussbaum RL, et al. ClinGen — the
        Clinical Genome Resource. New England Journal of Medicine,
        372(23):2235-2242, 2015.
      - **DOI:** [10.1056/NEJMsr1406261](https://doi.org/10.1056/NEJMsr1406261)
      - **PMID:** 26014595 | **PMC:** PMC4474187
      - **Citations:** ~1,500
      - **Key findings:** Introduced the Clinical Genome Resource (ClinGen) as an
        NIH-funded initiative to build an authoritative resource defining the
        clinical relevance of genes and variants for precision medicine. ClinGen
        operates through two types of expert panels: Gene Curation Expert Panels
        (GCEPs) that assess gene-disease validity on a scale from Definitive to
        Disputed using a semi-quantitative scoring matrix, and Variant Curation
        Expert Panels (VCEPs) that apply ACMG/AMP criteria with gene-specific
        modifications. Gene-disease validity assessments systematically evaluate
        genetic evidence (case-level variant data, segregation studies, case-control
        statistics) and experimental evidence (functional assays, animal models,
        rescue experiments). ClinGen expert panel reviews represent the highest tier
        of variant curation (4-star review status in ClinVar) and are increasingly
        recognized as the reference standard by clinical laboratories — when a
        ClinGen VCEP publishes a variant classification, it supersedes individual
        laboratory submissions.
      
      ---
      
      ### Riggs et al. 2020 — ClinGen CNV classification framework
      
      - **Citation:** Riggs ER, Andersen EF, Cherry AM, Kantarci S, Kearney H, Patel
        A, Raca G, Ritter DI, South ST, Thorland EC, et al. Technical standards for
        the interpretation and reporting of constitutional copy-number variants: a
        joint consensus recommendation of the American College of Medical Genetics
        and Genomics (ACMG) and the Clinical Genome Resource (ClinGen). Genetics in
        Medicine, 22(2):245-257, 2020.
      - **DOI:** [10.1038/s41436-019-0686-8](https://doi.org/10.1038/s41436-019-0686-8)
      - **PMID:** 31690835 | **PMC:** PMC7313390
      - **Citations:** ~1,000
      - **Key findings:** Extended the ACMG/AMP variant interpretation framework to
        copy number variants (CNVs), addressing a critical gap since the 2015
        guidelines were designed primarily for sequence variants (SNVs, small
        indels). Introduced a quantitative scoring system with evidence categories
        specific to CNVs: genomic content (number of protein-coding genes
        encompassed, presence of known haploinsufficiency or triplosensitivity
        genes), overlap with established pathogenic/benign CNV regions, and clinical
        evidence (published case reports, segregation data, de novo occurrence). The
        framework distinguishes between deletions and duplications, recognizing that
        haploinsufficiency and triplosensitivity have fundamentally different
        pathogenic mechanisms and evidence requirements. ClinGen dosage sensitivity
        curation groups apply these standards to evaluate genes and genomic regions
        for copy number sensitivity, directly informing ClinVar CNV classifications
        and enabling ENCODE regulatory element annotations to be interpreted in the
        context of CNV pathogenicity — a regulatory enhancer deletion encompassing a
        dosage-sensitive gene is more likely pathogenic.
      
      ---
      
  • SKILL.md 20.3 KB
    ---
    name: clinvar-annotation
    description: "Guide for annotating ENCODE regulatory variants with ClinVar clinical significance. Use when users need to check if variants in ENCODE peaks have clinical associations, find pathogenic variants in regulatory regions, or assess variant clinical impact. Trigger on: ClinVar, clinical significance, pathogenic variant, variant classification, clinical variant, disease variant, VUS, benign, likely pathogenic."
    ---
    
    ## When to Use
    
    - User wants to check if variants in ENCODE regulatory peaks have clinical significance in ClinVar
    - User asks about "ClinVar", "pathogenic variants", "clinical significance", or "variant classification"
    - User needs to annotate ENCODE-derived regulatory variants with disease associations
    - User wants to find clinically relevant variants within enhancers, promoters, or open chromatin regions
    - Example queries: "check ClinVar for variants in my ATAC-seq peaks", "find pathogenic variants in pancreas enhancers", "annotate regulatory variants with clinical significance"
    
    # Annotating ENCODE Regulatory Variants with ClinVar Clinical Significance
    
    Cross-reference ENCODE functional genomic elements with ClinVar clinical variant classifications to identify pathogenic variants in regulatory regions and understand non-coding disease mechanisms.
    
    ## Scientific Rationale
    
    **The question**: "Do any clinically significant variants fall within my ENCODE regulatory elements, and can ENCODE data explain their pathogenic mechanism?"
    
    ClinVar is NCBI's public archive of variant-disease associations, aggregating submissions from clinical laboratories, research groups, and expert panels. Most ClinVar annotations focus on coding variants, but a growing number of non-coding variants are being classified. ENCODE provides the functional context to explain WHY a non-coding variant is pathogenic — by showing that it disrupts an active enhancer, promoter, or insulator in disease-relevant tissue.
    
    This bidirectional integration serves two use cases:
    1. **Forward**: Start from ENCODE peaks, find clinically significant variants within them
    2. **Reverse**: Start from ClinVar pathogenic variants, use ENCODE to explain their mechanism
    
    ### The Non-Coding Variant Challenge
    
    - ~90% of GWAS-associated variants are in non-coding regions (Maurano et al. 2012)
    - ClinVar increasingly includes non-coding variants, but most lack mechanistic annotation
    - ENCODE regulatory annotations provide the "why" behind non-coding pathogenicity
    - A variant classified as VUS (variant of uncertain significance) may be reclassified with ENCODE functional evidence
    
    ## Key Literature
    
    - **Landrum et al. 2018** "ClinVar: improving access to variant interpretations and supporting evidence" (Nucleic Acids Research, ~2,000 citations). Describes the ClinVar database architecture, submission standards, and the star-rating review system for variant classifications. [DOI: 10.1093/nar/gkx1153](https://doi.org/10.1093/nar/gkx1153)
    - **Riggs et al. 2020** "Technical standards for the interpretation and reporting of constitutional copy-number variants: a joint consensus recommendation of the ACMG and ClinGen" (Genetics in Medicine, ~500 citations). Framework for interpreting structural variants, relevant when ENCODE elements overlap CNVs. [DOI: 10.1038/s41436-019-0686-8](https://doi.org/10.1038/s41436-019-0686-8)
    - **Richards et al. 2015** "Standards and guidelines for the interpretation of sequence variants: ACMG/AMP joint consensus recommendation" (Genetics in Medicine, ~12,000 citations). The ACMG variant classification framework (pathogenic through benign). ENCODE functional data can provide evidence for PS3/BS3 (functional studies) criteria. [DOI: 10.1038/gim.2015.30](https://doi.org/10.1038/gim.2015.30)
    - **ENCODE Project Consortium 2020** (Nature, ~1,656 citations). Registry of 926,535 human cCREs — the functional annotation layer for interpreting non-coding ClinVar variants. [DOI: 10.1038/s41586-020-2493-4](https://doi.org/10.1038/s41586-020-2493-4)
    
    ## ClinVar Clinical Significance Categories
    
    | Classification | Meaning | ENCODE Relevance |
    |---------------|---------|-----------------|
    | **Pathogenic** | Causes disease | If in regulatory region, ENCODE explains mechanism |
    | **Likely pathogenic** | Strong evidence for disease causation | ENCODE data may upgrade to pathogenic |
    | **Uncertain significance (VUS)** | Not enough evidence to classify | ENCODE functional data may help resolve |
    | **Likely benign** | Strong evidence against pathogenicity | — |
    | **Benign** | Does not cause disease | — |
    | **Conflicting interpretations** | Labs disagree on classification | ENCODE data may resolve conflict |
    | **Risk factor** | Increases disease risk | May overlap ENCODE regulatory elements |
    
    ### ClinVar Star Ratings
    
    | Stars | Review Status | Confidence |
    |-------|-------------|-----------|
    | 0 | No assertion criteria | Very low — treat with caution |
    | 1 | Single submitter with criteria | Low-moderate |
    | 2 | Multiple submitters, no conflict | Moderate |
    | 3 | Expert panel reviewed | High |
    | 4 | Practice guideline | Highest |
    
    **Always check star ratings.** A 0-star "pathogenic" classification has very different reliability than a 3-star classification.
    
    ## NCBI E-utilities API Reference
    
    **Base URL**: `https://eutils.ncbi.nlm.nih.gov/entrez/eutils/`
    
    No authentication required for low-volume use. Rate limit: 3 requests/second without API key, 10/second with NCBI API key.
    
    ### Key Endpoints
    
    | Endpoint | Purpose | Example |
    |---------|---------|---------|
    | `esearch.fcgi?db=clinvar&term=...` | Search ClinVar | Search by gene, variant, condition |
    | `efetch.fcgi?db=clinvar&id=...` | Fetch full record | Get complete variant details |
    | `esummary.fcgi?db=clinvar&id=...` | Summary record | Get classification, review status |
    | `elink.fcgi?db=clinvar&dbfrom=...` | Cross-database links | Link to PubMed, Gene, etc. |
    
    ### ClinVar VCF Downloads
    
    For bulk intersection with ENCODE peaks, download the ClinVar VCF:
    - GRCh38: `https://ftp.ncbi.nlm.nih.gov/pub/clinvar/vcf_GRCh38/clinvar.vcf.gz`
    - GRCh37: `https://ftp.ncbi.nlm.nih.gov/pub/clinvar/vcf_GRCh37/clinvar.vcf.gz`
    
    Updated monthly on the first Thursday.
    
    ## Step 1: Define the Scope
    
    Determine which direction the analysis runs:
    
    ### Forward: ENCODE Peaks to ClinVar Variants
    
    Starting from ENCODE regulatory elements, find clinically significant variants within them.
    
    ```
    # Get ENCODE peaks for target tissue
    encode_search_experiments(
        assay_title="Histone ChIP-seq",
        target="H3K27ac",
        organ="pancreas",
        biosample_type="tissue"
    )
    
    encode_list_files(
        experiment_accession="ENCSR...",
        file_format="bed",
        output_type="IDR thresholded peaks",
        assembly="GRCh38"
    )
    ```
    
    ### Reverse: ClinVar Variants to ENCODE Context
    
    Starting from ClinVar pathogenic variants, determine if they overlap ENCODE regulatory elements.
    
    ```python
    import requests
    
    # Search ClinVar for pathogenic variants in a gene
    url = "https://eutils.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi"
    params = {
        "db": "clinvar",
        "term": "INS[gene] AND pathogenic[clinical significance]",
        "retmax": 50,
        "retmode": "json"
    }
    response = requests.get(url, params=params)
    result = response.json()
    variant_ids = result["esearchresult"]["idlist"]
    ```
    
    ## Step 2: Query ClinVar via E-utilities
    
    ### Search for Variants by Gene
    
    ```python
    import requests
    import time
    
    def search_clinvar(gene_symbol, significance="pathogenic"):
        """Search ClinVar for variants in a gene with given clinical significance."""
        url = "https://eutils.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi"
        term = f"{gene_symbol}[gene] AND {significance}[clinical significance]"
        params = {
            "db": "clinvar",
            "term": term,
            "retmax": 100,
            "retmode": "json"
        }
        response = requests.get(url, params=params)
        time.sleep(0.34)  # Rate limit: 3/sec
        return response.json()["esearchresult"]["idlist"]
    ```
    
    ### Get Variant Details
    
    ```python
    def get_clinvar_summary(variant_ids):
        """Get summary for ClinVar variant IDs."""
        url = "https://eutils.ncbi.nlm.nih.gov/entrez/eutils/esummary.fcgi"
        params = {
            "db": "clinvar",
            "id": ",".join(variant_ids[:20]),  # Max 20 per request
            "retmode": "json"
        }
        response = requests.get(url, params=params)
        time.sleep(0.34)
        return response.json()["result"]
    ```
    
    ### Search by Genomic Region
    
    ```python
    # Search for ClinVar variants in a specific genomic region (GRCh38)
    term = "11[chromosome] AND 2159000:2162000[chrpos38] AND pathogenic[clinical significance]"
    ```
    
    ## Step 3: Intersect ClinVar with ENCODE Peaks
    
    ### Using bedtools (Command Line)
    
    ```bash
    # Download ClinVar VCF (GRCh38)
    wget https://ftp.ncbi.nlm.nih.gov/pub/clinvar/vcf_GRCh38/clinvar.vcf.gz
    wget https://ftp.ncbi.nlm.nih.gov/pub/clinvar/vcf_GRCh38/clinvar.vcf.gz.tbi
    
    # Filter to pathogenic/likely pathogenic only
    bcftools view -i 'INFO/CLNSIG~"Pathogenic" || INFO/CLNSIG~"Likely_pathogenic"' \
        clinvar.vcf.gz | \
        bcftools query -f '%CHROM\t%POS0\t%END\t%ID\t%INFO/CLNSIG\t%INFO/CLNDN\n' \
        > clinvar_pathogenic.bed
    
    # Intersect with ENCODE peaks
    # NOTE: ClinVar VCF is 1-based, BED is 0-based — bcftools query with %POS0 handles this
    bedtools intersect \
        -a clinvar_pathogenic.bed \
        -b encode_h3k27ac_peaks.bed \
        -wa -wb \
        > clinvar_in_encode_enhancers.bed
    ```
    
    ### Using Python
    
    ```python
    import pysam
    
    # Open ClinVar VCF
    vcf = pysam.VariantFile("clinvar.vcf.gz")
    
    # Define ENCODE peak region (0-based)
    chrom, start, end = "chr11", 2159000, 2162000
    
    # Find ClinVar variants in region
    for record in vcf.fetch(chrom, start, end):
        clnsig = record.info.get("CLNSIG", [])
        clndn = record.info.get("CLNDN", [])
        print(f"{record.chrom}:{record.pos} {record.ref}>{record.alts} "
              f"Significance: {clnsig} Condition: {clndn}")
    ```
    
    ## Step 4: Classify the Regulatory Impact
    
    For each ClinVar variant overlapping an ENCODE element, assess the regulatory impact:
    
    ### Impact Classification Framework
    
    | ClinVar Variant in... | ENCODE Context | Interpretation |
    |----------------------|---------------|----------------|
    | Active enhancer (H3K27ac+) | Tissue-specific, near disease gene | High impact — variant may disrupt enhancer |
    | Active promoter (H3K4me3+) | At TSS of disease gene | High impact — variant may affect transcription initiation |
    | CTCF binding site | TAD boundary | High impact — may disrupt chromatin insulation |
    | Open chromatin only (ATAC+) | No histone marks | Moderate — accessible but function unclear |
    | TF binding site | Specific TF known for disease gene | High impact — may disrupt TF binding |
    | No ENCODE overlap | Not in regulatory element | Mechanism may be coding, splicing, or untested tissue |
    
    ### ACMG Evidence Integration
    
    ENCODE functional data can support ACMG criteria for variant classification:
    
    | ACMG Criterion | How ENCODE Data Contributes |
    |---------------|----------------------------|
    | PS3 (Functional studies) | ENCODE shows variant disrupts active regulatory element |
    | PM1 (Critical domain) | Variant in a regulatory element active in disease tissue |
    | PP3 (Computational evidence) | Multiple ENCODE annotations converge on regulatory disruption |
    | BS3 (No functional impact) | ENCODE shows region is inactive in all relevant tissues |
    
    ## Step 5: Report Findings
    
    ### Per-Variant Summary Table
    
    | Variant | ClinVar ID | Classification | Stars | Condition | ENCODE Overlap | Tissue Active | Impact |
    |---------|-----------|---------------|-------|----------|---------------|--------------|--------|
    | chr11:2160994 A>G | VCV000012345 | Pathogenic | 3 | Neonatal diabetes | H3K27ac enhancer | Pancreas | High |
    | chr7:87654321 C>T | VCV000067890 | VUS | 1 | Cystic fibrosis | ATAC-seq peak | Lung | Moderate |
    
    ### Summary Statistics
    
    Report:
    - Total ClinVar variants in region/gene
    - Number overlapping ENCODE regulatory elements (by element type)
    - Breakdown by clinical significance
    - Star rating distribution
    - Tissues with ENCODE data used
    
    ## Step 6: Log Provenance
    
    ```
    encode_log_derived_file(
        file_path="/path/to/clinvar_encode_intersection.tsv",
        source_accessions=["ENCSR...", "ENCSR..."],
        description="Intersection of ClinVar pathogenic variants with ENCODE H3K27ac and ATAC-seq peaks in pancreas",
        file_type="variant_annotation",
        tool_used="bedtools intersect + ClinVar VCF (2024-01 release)",
        parameters="GRCh38, pathogenic+likely_pathogenic, IDR thresholded peaks"
    )
    
    encode_link_reference(
        experiment_accession="ENCSR...",
        reference_type="other",
        reference_id="ClinVar:VCV000012345",
        description="Pathogenic variant for neonatal diabetes overlapping pancreas enhancer"
    )
    ```
    
    ## Pitfalls & Edge Cases
    
    - **ClinVar classifications change over time**: A variant classified as VUS today may be reclassified as pathogenic tomorrow. Always record the ClinVar version/date when annotating variants. Re-check classifications before publication.
    - **Star rating indicates review quality**: ClinVar uses a 0-4 star system for assertion confidence. Single-submitter entries (1 star) may conflict with expert panel reviews (3-4 stars). Always prefer higher star ratings.
    - **Coordinate system mismatch**: ClinVar uses 1-based coordinates while BED files are 0-based. Off-by-one errors when intersecting ClinVar with ENCODE peaks are extremely common. Always convert before comparison.
    - **Regulatory variants are underrepresented**: ClinVar is heavily biased toward coding and splice-site variants. Absence of a regulatory variant in ClinVar does NOT mean it is benign — it likely has not been assessed.
    - **Multiple classifications for the same variant**: Different submitters may classify the same variant differently (one says pathogenic, another says benign). Check the "conflicting interpretations" flag and review individual submissions.
    - **GRCh37 vs GRCh38 in ClinVar**: ClinVar provides coordinates in both assemblies but some older submissions only have GRCh37. Always specify the assembly when downloading and verify coordinate consistency.
    
    ## Walkthrough: Annotating ENCODE Regulatory Variants with Clinical Significance
    
    **Goal**: Cross-reference variants in ENCODE-defined regulatory elements with ClinVar clinical significance to identify non-coding variants with known disease associations.
    **Context**: Most GWAS hits fall in non-coding regions. ENCODE maps the regulatory landscape; ClinVar provides clinical interpretation.
    
    ### Step 1: Find regulatory element experiments
    
    ```
    encode_search_experiments(assay_title="ATAC-seq", organ="heart", organism="Homo sapiens")
    ```
    
    Expected output:
    ```json
    {
      "results": [
        {"accession": "ENCSR789HRT", "assay_title": "ATAC-seq", "biosample_summary": "heart left ventricle", "status": "released"}
      ],
      "total": 18,
      "limit": 25,
      "offset": 0,
      "has_more": false,
      "next_offset": null
    }
    ```
    
    ### Step 2: Download peak files for regulatory regions
    
    ```
    encode_list_files(experiment_accession="ENCSR789HRT", file_format="bed", output_type="IDR thresholded peaks", assembly="GRCh38")
    ```
    
    Expected output (a JSON array of file records; fields abridged):
    ```json
    [
      {"accession": "ENCFF101ATK", "output_type": "IDR thresholded peaks", "file_format": "bed", "file_type": "bed narrowPeak", "file_size_human": "0.8 MB"}
    ]
    ```
    
    ### Step 3: Query ClinVar for variants in peaks
    
    Using ClinVar E-utilities (via skill guidance):
    ```
    GET https://eutils.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi?db=clinvar&term=chr1[chr]+AND+10000:20000[chrpos]+AND+pathogenic[clnsig]
    ```
    
    Expected response:
    ```json
    {
      "esearchresult": {
        "count": "3",
        "idlist": ["12345", "67890", "11111"]
      }
    }
    ```
    
    ### Step 4: Interpret clinical significance in regulatory context
    
    For each ClinVar variant in an ENCODE peak:
    - **Pathogenic/Likely pathogenic** in a heart ATAC-seq peak = high-confidence disease-regulatory variant
    - **VUS (Variant of Uncertain Significance)** in an active enhancer = candidate for functional validation
    - **Benign** in an open chromatin region = regulatory region tolerates this variant
    
    **Interpretation**: Non-coding pathogenic variants in heart-specific open chromatin suggest regulatory disruption of cardiac gene expression. These are candidates for CRISPR validation.
    
    ### Integration with downstream skills
    - ENCODE peaks from **regulatory-elements** define the regions to query in ClinVar
    - Clinical variants feed into **variant-annotation** for comprehensive annotation
    - Pathogenic regulatory variants inform **disease-research** for mechanism studies
    - Population frequencies from **gnomad-variants** contextualize ClinVar findings
    
    ## Code Examples
    
    ### 1. Find ENCODE regulatory data matching ClinVar tissue
    ```
    encode_get_facets(assay_title="ATAC-seq", organism="Homo sapiens")
    ```
    
    Expected output (facet field names are the top-level keys):
    ```json
    {
      "biosample_ontology.organ_slims": [
        {"term": "brain", "count": 32},
        {"term": "heart", "count": 18}
      ]
    }
    ```
    
    ### 2. Get experiment details for quality check
    ```
    encode_get_experiment(accession="ENCSR789HRT")
    ```
    
    Expected output (fields abridged):
    ```json
    {
      "accession": "ENCSR789HRT",
      "assay_title": "ATAC-seq",
      "biosample_summary": "heart left ventricle",
      "bio_replicate_count": 2,
      "status": "released",
      "audit_error_count": 0,
      "audit_not_compliant_count": 0,
      "audit_warning_count": 0,
      "audit_internal_action_count": 1
    }
    ```
    
    ### 3. Track experiments used for clinical annotation
    ```
    encode_track_experiment(accession="ENCSR789HRT", notes="Heart ATAC-seq for ClinVar regulatory variant annotation")
    ```
    
    Expected output (the `notes` you pass are stored, not echoed back; read them with `encode_list_tracked`):
    ```json
    {
      "tracking": {"accession": "ENCSR789HRT", "action": "tracked"},
      "publications_found": 0,
      "publications": [],
      "pipelines_found": 1,
      "pipelines": [
        {"title": "ATAC-seq (replicated)", "version": "2.2.1", "software": [{"name": "bowtie2", "version": "2.3.4.3"}], "status": "released"}
      ]
    }
    ```
    
    ## Integration
    
    | This skill produces... | Feed into... | Purpose |
    |---|---|---|
    | Clinical variant annotations | **variant-annotation** | Comprehensive variant annotation with clinical significance |
    | Pathogenic regulatory variants | **disease-research** | Connect non-coding variants to disease mechanisms |
    | ClinVar gene-disease associations | **peak-annotation** | Prioritize peaks near clinically relevant genes |
    | Variant pathogenicity scores | **gwas-catalog** | Overlay GWAS hits with ClinVar clinical evidence |
    | Regulatory variant coordinates | **gnomad-variants** | Add population frequency context to clinical variants |
    | Tissue-specific clinical variants | **gtex-expression** | Check expression of genes near pathogenic regulatory variants |
    | Clinical regulatory elements | **regulatory-elements** | Classify ClinVar-annotated elements by regulatory function |
    
    ## Presenting Results
    
    When reporting ClinVar annotation results:
    
    - **Variant table**: Present a table with columns: variant_id (rsID or HGVS), clinical_significance, review_status, star_rating (0-4), condition(s), and whether the variant overlaps an ENCODE peak
    - **Always report**: ClinVar release date used, genome assembly (must be GRCh38 for ENCODE compatibility), total variants queried, and number with ClinVar entries vs no entry
    - **Key fields to include**: Number of pathogenic/likely pathogenic variants in regulatory regions, number of VUS that overlap active enhancers or promoters, and the breakdown by clinical significance category
    - **Context to provide**: Note that absence from ClinVar does not imply benign status (especially for non-coding variants), and that ClinVar classifications change monthly as new evidence accumulates
    - **Star rating guidance**: Emphasize that 0-1 star variants have limited review and should be interpreted cautiously; 2+ stars indicate multiple submitters with concordant interpretation
    - **Next steps**: Suggest `gnomad-variants` for population frequency context, or `variant-annotation` for a full ENCODE-based regulatory variant prioritization workflow
    
    ## Related Skills
    
    - `variant-annotation` — Full ENCODE variant annotation workflow with prioritization scoring
    - `gwas-catalog` — GWAS variants in ENCODE peaks (population-level associations)
    - `gnomad-variants` — Population frequency context for ClinVar variants
    - `disease-research` — Disease-focused ENCODE analysis workflows
    - `cross-reference` — Linking ENCODE experiments to ClinVar and other databases
    - `regulatory-elements` — Characterizing the regulatory elements disrupted by variants
    - `publication-trust` — Verify literature claims backing analytical decisions
    
    ## For the request: "$ARGUMENTS"
    

Comments (0)

Sign in to join the conversation.

No comments yet.

Reviews (0)

No reviews yet.

Related