# Get somatic analysis workbench variants with stats

Retrieves variants from a somatic (oncology) analysis workbench along with
somatic analysis statistics (biomarkers).
Extends the `/v1_2/somatic_analysis/workbench` endpoint by including somatic
stats such as TMB, MSI, HRD, MMR, and MET exon 14 skipping levels.
**Response includes:**
- All data from v1.2 somatic workbench (somatic SNP and SV variants)
- Somatic stats: TMB score/level, MSI score/level, HRD score/level, MMR level, MET exon 14 level

**Note:** Use this endpoint for oncology/cancer cases.
For germline cases, use `/v1_3/analysis/workbench`.

Endpoint: GET /v1_3/somatic_analysis/workbench
Version: 96
Security: bearerAuth

## Security:

  - `bearerAuth` (unknown)
    http bearer JWT

## Query parameters:

  - `analysis_id` (string, required)
    The somatic analysis (case) ID

## Response 200:

  - `200` (unknown)
    Somatic workbench variants and stats retrieved successfully

## Response 200 fields (application/json):

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

  - `snp_variants.chrom` (string)
    Chromosome
    Example: chr17

  - `snp_variants.start` (integer)
    Start position
    Example: 7577120

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

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

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

  - `snp_variants.vaf` (number)
    Variant allele frequency
    Example: 0.35

  - `snp_variants.depth` (integer)
    Total read depth
    Example: 150

  - `snp_variants.depth_ref` (integer)
    Reference allele depth
    Example: 98

  - `snp_variants.depth_alt` (integer)
    Alternative allele depth
    Example: 52

  - `snp_variants.confidence` (string)
    Variant call confidence level
    Example: HIGH

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

  - `snp_variants.pdot` (string)
    Protein notation (p.dot)
    Example: p.Arg248Gln

  - `snp_variants.cdot` (string)
    Coding DNA notation (c.dot)
    Example: c.743G>A

  - `snp_variants.hgvs_p_single_letter` (string)
    HGVS protein notation with single letter amino acids
    Example: p.R248Q

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

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

  - `snp_variants.impact` (string)
    Variant impact/effect
    Example: MISSENSE

  - `snp_variants.transcript` (string)
    Transcript ID
    Example: NM_000546.6

  - `snp_variants.exon` (integer)
    Exon number
    Example: 7

  - `snp_variants.acmg_classification` (string)
    ACMG germline classification
    Example: PATHOGENIC

  - `snp_variants.amp_tier` (string)
    AMP/ASCO/CAP tier classification
    Enum: "TIER_I", "TIER_II", "TIER_III", "TIER_IV"

  - `snp_variants.amp_sub_tier` (string)
    AMP tier sub-classification
    Enum: "A", "B", "C", "D"

  - `snp_variants.therapeutic_evidences_count` (integer)
    Number of therapeutic evidence entries
    Example: 5

  - `snp_variants.prognostic_evidences_count` (integer)
    Number of prognostic evidence entries
    Example: 2

  - `snp_variants.diagnostic_evidences_count` (integer)
    Number of diagnostic evidence entries
    Example: 1

  - `snp_variants.somatic_internal_frequency` (number)
    Internal somatic frequency in your organization
    Example: 0.02

  - `snp_variants.somatic_samples_count` (integer)
    Number of somatic samples with this variant
    Example: 3

  - `snp_variants.comment` (string)
    User comment on the variant
    Example: Confirmed hotspot mutation

  - `snp_variants.is_manual` (boolean)
    Whether this is a manually added variant
    Example: false

  - `snp_variants.is_in_report` (boolean)
    Whether the variant is included in the report
    Example: true

  - `snp_variants.user_somatic_interpretation` (object)
    User's somatic interpretation data

  - `snp_variants.user_somatic_interpretation.user_interpretation` (string)
    Somatic classification (e.g., TIER_I, TIER_II)
    Example: TIER_I

  - `snp_variants.user_somatic_interpretation.user_interpretation_sub_level` (string)
    Sub-level classification
    Example: A

  - `snp_variants.user_somatic_interpretation.user_interpretation_text` (string)
    Interpretation text/notes

  - `snp_variants.user_somatic_interpretation.user_interpretation_tags` (string)
    Interpretation tags

  - `snp_variants.user_somatic_interpretation.user_interpretation_custom_text` (string)
    Custom interpretation text

  - `snp_variants.user_somatic_interpretation.user_interpretation_custom_data` (string)
    Custom interpretation data (JSON)

  - `snp_variants.user_germline_interpretation` (object)
    User's germline interpretation data

  - `snp_variants.user_germline_interpretation.assessment` (string)
    ACMG classification assessment
    Example: PATHOGENIC

  - `snp_variants.user_germline_interpretation.user_interpretation` (string)
    User interpretation text

  - `snp_variants.custom_annotations` (object)
    Custom annotation key-value pairs

  - `snp_variants.extra_vcf_annotations` (object)
    Additional VCF annotations

  - `snp_variants.cosmic_data` (object)
    COSMIC database information

  - `snp_variants.cosmic_data.cosmic_id` (string)
    COSMIC identifier
    Example: COSM10758

  - `snp_variants.cosmic_data.total_samples_count` (integer)
    Total samples in COSMIC with this variant
    Example: 1500

  - `snp_variants.cosmic_data.total_tumor_count` (integer)
    Total tumor types with this variant
    Example: 25

  - `snp_variants.cosmic_data.alternation_samples_count` (integer)
    Samples with this specific alteration
    Example: 1200

  - `snp_variants.cosmic_data.alternation_tumor_count` (integer)
    Tumor types with this specific alteration
    Example: 20

  - `snp_variants.clinical_significance` (string)
    Clinical significance bin
    Example: Causal Variants

  - `sv_variants` (array)
    Somatic structural variants in the workbench

  - `sv_variants.chrom` (string)
    Chromosome
    Example: chr17

  - `sv_variants.pos` (integer)
    Position
    Example: 41196312

  - `sv_variants.sv_length` (integer)
    Length of the structural variant
    Example: 50000

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

  - `sv_variants.cipos` (object)
    Confidence interval for SV breakpoint

  - `sv_variants.cipos.start` (integer)
    Start of confidence interval
    Example: -50

  - `sv_variants.cipos.end` (integer)
    End of confidence interval
    Example: 50

  - `sv_variants.breakend_mate` (array)
    Breakend mate information (for translocations)

  - `sv_variants.breakend_mate.chrom` (string)
    Mate chromosome
    Example: chr2

  - `sv_variants.breakend_mate.start` (integer)
    Mate start position

  - `sv_variants.breakend_mate.end` (integer)
    Mate end position

  - `sv_variants.breakend_mate.bnd_num_in_fusion` (integer)
    Breakend number in fusion

  - `sv_variants.breakend_mate.genes` (array)
    Genes at mate location

  - `sv_variants.breakend_mate.mate_depth` (integer)
    Read depth at mate position

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

  - `sv_variants.confidence` (string)
    Variant call confidence
    Example: HIGH

  - `sv_variants.filter` (boolean)
    Whether variant passes filters
    Example: true

  - `sv_variants.quality` (number)
    Quality score
    Example: 99

  - `sv_variants.raw_copy_number` (number)
    Raw copy number before rounding
    Example: 0.95

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

  - `sv_variants.sv_classification` (string)
    SV classification
    Example: PATHOGENIC

  - `sv_variants.cytobands` (array)
    Cytoband locations
    Example: ["17q21.31"]

  - `sv_variants.cytobands_description` (string)
    Cytoband description
    Example: 17q21.31-q21.32

  - `sv_variants.custom_annotations` (object)
    Custom annotation key-value pairs

  - `sv_variants.extra_vcf_annotations` (object)
    Additional VCF annotations

  - `sv_variants.gdot` (string)
    Genomic HGVS notation
    Example: NC_000017.10:g.41196312_41246312del

  - `sv_variants.iscn_array_cyto` (string)
    ISCN notation for array CGH

  - `sv_variants.iscn_seq_cyto` (string)
    ISCN notation for sequencing

  - `sv_variants.somatic_classification` (string)
    Somatic classification
    Example: TIER_II

  - `sv_variants.somatic_classification_sub_level` (string)
    Somatic classification sub-level
    Example: B

  - `sv_variants.comment` (string)
    User comment

  - `sv_variants.is_manual` (boolean)
    Whether manually added

  - `sv_variants.is_in_report` (boolean)
    Whether included in report

  - `somatic_stats` (object)
    Somatic analysis statistics and biomarker levels

  - `somatic_stats.tmb_score` (number)
    Tumor mutational burden score
    Example: 12.5

  - `somatic_stats.tmb_level` (string)
    TMB level classification (LOW, HIGH, INTERMEDIATE)
    Example: HIGH

  - `somatic_stats.msi_score` (number)
    Microsatellite instability score
    Example: 25

  - `somatic_stats.msi_level` (string)
    MSI level classification (STABLE, LOW, HIGH)
    Example: HIGH

  - `somatic_stats.hrd_score` (number)
    Homologous recombination deficiency score
    Example: 42

  - `somatic_stats.hrd_level` (string)
    HRD level classification (POSITIVE, NEGATIVE)
    Example: POSITIVE

  - `somatic_stats.mmr_level` (string)
    Mismatch repair level

  - `somatic_stats.met_ex14_level` (string)
    MET exon 14 skipping level (SKIPPED, INCLUDED)

## Response 400:

  - `400` (unknown)
    Bad request - invalid analysis ID or not a somatic analysis

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

