# Search for an SNP variant with full annotations (v2)

Searches for an SNP variant and returns comprehensive annotation data.
**Version 2 Improvements:**
This endpoint provides detailed variant information including:
- Genomic annotations (transcripts, gene, effect, HGVS notations)
- Population frequencies (gnomAD aggregated and max subpopulation)
- Pathogenicity predictions (SIFT, PolyPhen2, REVEL, SpliceAI, etc.)
- Clinical evidences (ClinVar submissions, UniProt)
- ACMG classification with rule assessments

**Supported Search Formats:**
- **HGVS notation**: `NM_000546.5:c.215C>G`
- **Chromosomal location**: `chr17-7577120-C-G`
- **rsID**: `rs28934576`

**Response includes:**
- Basic variant data (chromosome, position, ref, alt)
- Transcript annotations (Ensembl and RefSeq)
- Frequency data from gnomAD
- Pathogenicity prediction scores
- ClinVar submission summary
- Automated ACMG classification
- Direct link to the variant in Franklin

Endpoint: GET /v2/search/snp/
Version: 96
Security: bearerAuth

## Security:

  - `bearerAuth` (unknown)
    http bearer JWT

## Query parameters:

  - `search_text` (string, required)
    The variant search text. Supports multiple formats:
- HGVS c. notation (e.g., `NM_000546.5:c.215C>G`)
- Chromosomal location (e.g., `chr17-7577120-C-G`)
- rsID (e.g., `rs28934576`)

  - `reference_version` (string)
    The reference genome version to use for the search.
Defaults to HG19 if not specified.

## Response 200:

  - `200` (unknown)
    SNP variant found with annotations

## Response 200 fields (application/json):

  - `variant` (object)
    Basic variant information

  - `variant.chromosome` (string)
    Chromosome name
    Example: chr17

  - `variant.start_position` (integer)
    1-based start position
    Example: 7577120

  - `variant.end_position` (integer)
    End position
    Example: 7577120

  - `variant.ref` (string)
    Reference allele
    Example: C

  - `variant.alt` (string)
    Alternative allele
    Example: G

  - `variant.variation_type` (string)
    Type of variation
    Example: SNP

  - `annotations` (object)
    Variant annotation data including transcripts, frequencies, predictions, and clinical evidences

  - `annotations.transcripts` (array)
    Transcript annotations (Ensembl and RefSeq)

  - `annotations.transcripts.transcript_type` (string)
    Transcript database source
    Enum: "ENSEMBL", "REFSEQ"

  - `annotations.transcripts.gene` (string)
    Gene symbol
    Example: TP53

  - `annotations.transcripts.region` (string)
    Genomic region
    Example: EXONIC

  - `annotations.transcripts.effect` (string)
    Variant effect on transcript
    Example: MISSENSE

  - `annotations.transcripts.transcript` (string)
    Transcript identifier
    Example: NM_000546.6

  - `annotations.transcripts.hgvc_c` (string)
    HGVS coding notation
    Example: c.215C>G

  - `annotations.transcripts.hgvc_p` (string)
    HGVS protein notation
    Example: p.Pro72Arg

  - `annotations.transcripts.transcripts_count` (integer)
    Number of transcripts affected
    Example: 15

  - `annotations.transcripts.exon_number` (integer)
    Exon number
    Example: 4

  - `annotations.transcripts.transcript_exon_count` (integer)
    Total exon count in transcript
    Example: 11

  - `annotations.transcripts.closest_exon` (integer)
    Closest exon (for intronic variants)
    Example: null

  - `annotations.transcripts.closest_distance_to_exon` (integer)
    Distance to closest exon (for intronic variants)
    Example: null

  - `annotations.transcripts.genes_hgnc` (object)
    HGNC gene information

  - `annotations.transcripts.genes_hgnc.gene_name` (string)
    Gene symbol
    Example: TP53

  - `annotations.transcripts.genes_hgnc.hgnc_id` (string)
    HGNC identifier
    Example: 11998

  - `annotations.frequencies` (object)
    Population frequency data

  - `annotations.frequencies.aggregated_frequency` (number)
    Aggregated population frequency
    Example: 0.3257

  - `annotations.frequencies.max_gnomad_frequency` (number)
    Maximum gnomAD subpopulation frequency (populations with >2000 individuals)
    Example: 0.4012

  - `annotations.predictions` (object)
    Pathogenicity prediction scores

  - `annotations.predictions.dbsnp` (string)
    dbSNP identifier
    Example: rs1042522

  - `annotations.predictions.aggregated_predictions` (number)
    Aggregated pathogenicity prediction (0-1, higher = more damaging)
    Example: 0.23

  - `annotations.predictions.sift` (number)
    SIFT score (lower = more damaging)
    Example: 0.42

  - `annotations.predictions.polyphen2` (number)
    PolyPhen-2 score (higher = more damaging)
    Example: 0.005

  - `annotations.predictions.ma` (number)
    MutationAssessor score
    Example: 0.795

  - `annotations.predictions.gerp` (number)
    GERP++ conservation score
    Example: 5.06

  - `annotations.predictions.fathmm` (number)
    FATHMM score
    Example: 3.34

  - `annotations.predictions.fitcons` (number)
    fitCons integrated score
    Example: 0.577

  - `annotations.predictions.genocanyon` (number)
    GenoCanyon score
    Example: 0.999

  - `annotations.predictions.ada` (number)
    ADA splice score
    Example: null

  - `annotations.predictions.mt` (number)
    MutationTaster score
    Example: null

  - `annotations.predictions.splice_ai` (number)
    SpliceAI score (max of exome and genome)
    Example: 0.01

  - `annotations.predictions.ncer` (number)
    ncER non-coding essentiality score
    Example: null

  - `annotations.predictions.revel` (number)
    REVEL score (ensemble method)
    Example: 0.158

  - `annotations.predictions.metalr` (number)
    MetaLR score
    Example: 0.093

  - `annotations.clinical_evidences` (object)
    Clinical evidence from ClinVar and UniProt

  - `annotations.clinical_evidences.clinvar` (object)
    ClinVar submission summary

  - `annotations.clinical_evidences.clinvar.variant_link` (string)
    Link to ClinVar entry
    Example: null

  - `annotations.clinical_evidences.clinvar.submissions_by_classification` (array)
    Count of submissions by classification level

  - `annotations.clinical_evidences.clinvar.submissions_by_classification.level` (string)
    Classification level
    Example: BENIGN

  - `annotations.clinical_evidences.clinvar.submissions_by_classification.count` (integer)
    Number of submissions with this classification
    Example: 3

  - `annotations.clinical_evidences.uniprot` (object)
    UniProt data

  - `annotations.clinical_evidences.uniprot.uniprot_id` (string)
    UniProt identifier
    Example: P04637

  - `annotations.clinical_evidences.uniprot.variant_link` (string)
    Link to UniProt variant entry
    Example: https://www.uniprot.org/uniprotkb/P04637

  - `classification` (object)
    ACMG/AMP variant classification

  - `classification.acmg_classification` (string)
    ACMG classification
    Enum: "PATHOGENIC", "LIKELY_PATHOGENIC", "VUS", "LIKELY_BENIGN", "BENIGN"

  - `classification.acmg_rules` (array)
    ACMG rule assessments

  - `classification.acmg_rules.name` (string)
    Rule identifier
    Example: BA1

  - `classification.acmg_rules.is_met` (boolean)
    Whether the rule criteria are met
    Example: true

  - `classification.acmg_rules.influence` (string)
    Rule influence on classification
    Enum: "BENIGN_STANDALONE", "BENIGN_STRONG", "BENIGN_SUPPORTING", "PATHOGENIC_VERY_STRONG", "PATHOGENIC_STRONG", "PATHOGENIC_MODERATE", "PATHOGENIC_SUPPORTING"

  - `classification.acmg_rules.weight` (integer)
    Rule weight (deprecated)
    Example: null

  - `classification.oncogenic_classification` (string)
    Oncogenic classification (for somatic variants)
    Example: null

  - `classification.oncogenic_rules` (array)
    Oncogenic rule assessments

  - `classification.classification_tags` (array)
    User-applied classification tags for the variant
    Example: ["Artifact","So Far Low Quality"]

  - `variant_franklin_link` (string)
    URL to view variant in Franklin
    Example: https://franklin.genoox.com/clinical-db/variant/snp/chr17-7577120-C-G

## Response 400:

  - `400` (unknown)
    Bad request - invalid search text or variant not found.

Common causes:
- Malformed variant notation
- Invalid chromosomal coordinates
- Variant not found in the database
- Search text could not be parsed

## Response 400 fields (application/json):

  - `error` (string, required)
    Error type
    Example: Not Found

  - `message` (string, required)
    Human-readable error description
    Example: Analysis with ID 12345 was not found

## Response 401:

  - `401` (unknown)
    Authentication failed - invalid or missing token

## Response 401 fields (application/json):

  - `error` (string, required)
    Error type
    Example: Not Found

  - `message` (string, required)
    Human-readable error description
    Example: Analysis with ID 12345 was not found

## Response 429:

  - `429` (unknown)
    Rate limit exceeded

## Response 429 fields (application/json):

  - `error` (string, required)
    Error type
    Example: Not Found

  - `message` (string, required)
    Human-readable error description
    Example: Analysis with ID 12345 was not found

## Response 429 headers (application/json):

  - `Retry-After` (integer)
    Number of seconds to wait before retrying

