# Get structural variants from an analysis

Retrieves structural variants (SVs) from an analysis with annotations.
Structural variants include:
- Deletions (DEL)
- Duplications (DUP)
- Inversions (INV)
- Insertions (INS)
- Copy number variants (CNV)
- Translocations

**Response includes for each variant:**
- Basic SV data (chromosome, start, end, type, length)
- Sample data (zygosity, copy number, confidence)
- Transcript annotations (affected genes, regions)
- Occurrence data (population frequencies)
- ACMG-SV classification
- User classification if available
- Family zygosity data (for family analyses)
- Link to view variant in Franklin

**Pagination:**
Results are paginated with default page size of 200.

Endpoint: GET /v2/analysis/variants/sv
Version: 96
Security: bearerAuth

## Security:

  - `bearerAuth` (unknown)
    http bearer JWT

## Query parameters:

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

  - `page_num` (integer)
    Page number (1-based)

  - `page_size` (integer)
    Number of variants per page

## Response 200:

  - `200` (unknown)
    Structural variants retrieved successfully

## Response 200 fields (application/json):

  - `variants` (array)
    List of structural variants

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

