# Get analysis workbench variants

Retrieves variants from an analysis workbench (variants selected for review).
The workbench contains variants that have been flagged for clinical review,
either automatically based on filtering criteria or manually by users.
**Response includes:**
- SNP variants with full annotations, sample data, and classifications
- SV (structural variant) variants if present
- Workbench inclusion status
- Phenotype associations
- Priority scores

**Note:** This endpoint returns only variants that are in the workbench.
For all variants in an analysis, use `/v2/analysis/variants/snp` or `/v2/analysis/variants/sv`.

Endpoint: GET /v1_2/analysis/workbench
Version: 96
Security: bearerAuth

## Security:

  - `bearerAuth` (unknown)
    http bearer JWT

## Query parameters:

  - `analysis_id` (string, required)
    The analysis (case) ID to retrieve workbench variants from

## Response 200:

  - `200` (unknown)
    Workbench variants retrieved successfully

## Response 200 fields (application/json):

  - `snp_variants` (array)
    SNP variants in the workbench

  - `snp_variants.variant` (object)
    Basic variant information

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

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

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

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

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

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

  - `snp_variants.sample_data` (object)
    Sample-level data for an SNP variant

  - `snp_variants.sample_data.confidence_level` (string)
    Variant call confidence level
    Enum: "HIGH", "MEDIUM", "LOW"

  - `snp_variants.sample_data.depth` (integer)
    Total read depth at this position
    Example: 45

  - `snp_variants.sample_data.depth_ref` (integer)
    Read depth supporting reference allele
    Example: 22

  - `snp_variants.sample_data.depth_alt` (integer)
    Read depth supporting alternative allele
    Example: 23

  - `snp_variants.sample_data.mapping_quality` (number)
    Average mapping quality of reads
    Example: 60

  - `snp_variants.sample_data.vaf` (number)
    Variant allele frequency (0-1)
    Example: 0.51

  - `snp_variants.sample_data.quality` (number)
    Variant call quality score
    Example: 99

  - `snp_variants.sample_data.zygosity` (string)
    Genotype zygosity
    Enum: "HOMOZYGOUS", "HETEROZYGOUS", "HEMIZYGOUS"

  - `snp_variants.sample_data.gq` (number)
    Genotype quality score
    Example: 99

  - `snp_variants.sample_data.pl` (string)
    Phred-scaled likelihoods for genotypes
    Example: 0,99,999

  - `snp_variants.sample_data.family_inheritance_model` (string)
    Inheritance model (for family analyses)
    Enum: "DE_NOVO", "INHERITED_DOMINANT", "INHERITED_RECESSIVE", "COMPOUND_HETEROZYGOUS", "X_LINKED"

  - `snp_variants.sample_data.family_zygosities` (object)
    Zygosity information for family members

  - `snp_variants.sample_data.family_zygosities.mother_zygosity` (string)
    Mother's zygosity for this variant
    Enum: "HOMOZYGOUS", "HETEROZYGOUS", "HEMIZYGOUS", "WILDTYPE", "NO_CALL"

  - `snp_variants.sample_data.family_zygosities.father_zygosity` (string)
    Father's zygosity for this variant
    Enum: "HOMOZYGOUS", "HETEROZYGOUS", "HEMIZYGOUS", "WILDTYPE", "NO_CALL"

  - `snp_variants.sample_data.family_zygosities.other_members_zygosity` (array)
    Zygosity for other family members

  - `snp_variants.sample_data.family_zygosities.other_members_zygosity.relation` (string)
    Relationship to proband
    Example: sibling

  - `snp_variants.sample_data.family_zygosities.other_members_zygosity.zygosity` (string)
    Zygosity for this family member
    Enum: "HOMOZYGOUS", "HETEROZYGOUS", "HEMIZYGOUS", "WILDTYPE", "NO_CALL"

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  - `snp_variants.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"

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

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

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

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

  - `snp_variants.included_in_analysis_workbench` (boolean)
    Whether the variant is in the analysis workbench
    Example: true

  - `snp_variants.phenotypes` (array)
    Associated phenotypes
    Example: ["HP:0001250","HP:0002315"]

  - `snp_variants.priority` (object)
    Variant prioritization score

  - `snp_variants.priority.score` (number)
    Priority score (higher = more clinically relevant)
    Example: 0.85

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

  - `sv_variants` (array)
    Structural variants in the workbench

  - `sv_variants.variant` (object)
    Basic structural variant information

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

  - `sv_variants.variant.start_position` (integer)
    Start position (1-based)
    Example: 1000000

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

  - `sv_variants.variant.sv_type` (string)
    Structural variant type
    Enum: "DEL", "DUP", "INV", "INS", "CNV", "BND"

  - `sv_variants.variant.length` (integer)
    Length of the structural variant in base pairs
    Example: 1000000

  - `sv_variants.sample_data` (object)
    Sample-level data for a structural variant

  - `sv_variants.sample_data.confidence_level` (string)
    Variant call confidence level
    Enum: "HIGH", "MEDIUM", "LOW"

  - `sv_variants.sample_data.zygosity` (string)
    Genotype zygosity
    Enum: "HOMOZYGOUS", "HETEROZYGOUS", "HEMIZYGOUS"

  - `sv_variants.sample_data.copy_number` (number)
    Copy number (for CNVs)
    Example: 1

  - `sv_variants.annotations` (object)
    Annotation data for a structural variant

  - `sv_variants.annotations.transcripts` (array)
    Affected transcripts

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

  - `sv_variants.annotations.transcripts.genes` (array)
    Affected genes
    Example: ["BRCA1","NBR1"]

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

  - `sv_variants.annotations.transcripts.effect` (string)
    Variant effect
    Example: DELETION

  - `sv_variants.annotations.transcripts.transcript` (string)
    Primary transcript identifier
    Example: NM_007294.4

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

  - `sv_variants.annotations.transcripts.exon_number` (integer)
    Affected exon number
    Example: 10

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

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

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

  - `sv_variants.annotations.transcripts.gene_omim_ids` (array)
    OMIM IDs for affected genes
    Example: ["113705"]

  - `sv_variants.annotations.transcripts.genes_hgnc` (array)
    HGNC data for affected genes

  - `sv_variants.annotations.occurrences` (object)
    Population occurrence data for SVs

  - `sv_variants.annotations.occurrences.aggregated_occurrences` (integer)
    Total occurrences in population databases
    Example: 15

  - `sv_variants.classification` (object)
    Classification data for a structural variant

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

  - `sv_variants.classification.evidences` (array)
    Classification evidence/rules

  - `sv_variants.classification.evidences.name` (string)
    Evidence/rule name
    Example: 2A

  - `sv_variants.classification.evidences.score` (number)
    Evidence score
    Example: 0.9

  - `sv_variants.classification.evidences.is_met` (boolean)
    Whether the evidence criteria are met
    Example: true

  - `sv_variants.classification.evidences.sub_evidences` (array)
    Sub-evidences (nested criteria, max 2 levels deep)

  - `sv_variants.classification.evidences.sub_evidences.name` (string)
    Sub-evidence name
    Example: 2A-1

  - `sv_variants.classification.evidences.sub_evidences.score` (number)
    Sub-evidence score
    Example: 0.8

  - `sv_variants.classification.evidences.sub_evidences.is_met` (boolean)
    Whether the sub-evidence criteria are met
    Example: true

  - `sv_variants.classification.user_classification` (string)
    User-assigned classification (if different from automated)
    Example: PATHOGENIC

  - `sv_variants.classification.user_classification_is_draft` (boolean)
    Whether user classification is a draft
    Example: false

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

  - `sv_variants.included_in_analysis_workbench` (boolean)
    Whether the variant is in the analysis workbench
    Example: true

  - `sv_variants.phenotypes` (array)
    Associated phenotypes
    Example: ["HP:0001250"]

  - `sv_variants.variant_franklin_link` (string)
    URL to view variant in Franklin
    Example: https://franklin.genoox.com/clinical-db/variant/sv/chr1-1000000-2000000-DEL

  - `compound_snp_variants` (array)
    Compound heterozygous SNP variant pairs

  - `compound_snp_sv_variants` (array)
    Compound SNP/SV variant pairs

  - `case_details` (object)
    Case-level details returned with workbench variants

  - `case_details.panels` (array)
    Gene panels applied to this case

  - `case_details.panels.panel_id` (string)
    Panel identifier
    Example: panel-123

  - `case_details.panels.panel_name` (string)
    Panel display name
    Example: Hereditary Cancer Panel

  - `case_details.case_comments` (string)
    Comments on the case
    Example: Review completed, awaiting family studies

## Response 400:

  - `400` (unknown)
    Bad request - invalid analysis ID

## 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 404:

  - `404` (unknown)
    Resource not found

## Response 404 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

