Emedgene
Illumina Connected Software
  • Get Started with Emedgene
    • Get started with Emedgene
    • How can Emedgene help you solve a case?
  • Emedgene analyze manual
    • Getting around the platform
      • Top navigation panel
      • Emedgene Applications menu
      • Dashboard
      • Settings
      • User roles
      • Help
      • Okta identity management
    • Managing data storage
      • Manage data storages
      • Manage Azure Blob data storage
      • Manage S3 credentials
      • Manage BaseSpace storage
      • Manage GCS storage (V37.0+)
      • Bring Your Own Bucket
      • Bring Your Own Key
    • Cases tab
      • Cases tab
      • Cases table
      • Case status
      • Browse and select cases
      • Case details
    • Creating a single case
      • Add a new case
      • Select sample type
      • Create a family tree
      • Family tree legend
      • Add a sample
      • Supported Variant callers
      • Adding patient info for the proband
      • Adding patient info for the non-proband samples
      • Secondary findings
      • Labeling a case
      • Gene list
      • Supported parental ethnicities
    • Creating multiple cases
      • Batch case upload from platform
      • CSV format requirements
      • Batch case upload via CLI
    • Reviewing a case
      • Individual case page
      • Individual case page: Top bar
      • Individual case page: Top bar
      • Candidates tab
      • Most Likely Candidates and Candidates
      • Genome Overview
      • Analysis tools tab
      • Variant table columns
      • Variant table
      • Variant search
      • Multiselection of variants and bulk actions (34.0+)
      • Download variants
      • Manually add variants to a delivered case
      • Filters/Presets panel
      • Filters
      • Presets
      • Preset groups
      • Variant Type Filters
      • Variant Effect Filters
      • Quality Filters
      • Polymorphism Filters
      • Gene Filters
      • Phenomatch Filters
      • Inheritance Filters
      • Zygosity Filters
      • User Filters
      • Evidence page
      • Phenotypic match strength
      • Lab tab
      • Versions tab
      • Editing an existing case
      • Finalizing a case
      • Clinical Report
      • Reflex genetic testing
      • Variant zygosity notations
      • STR calling and interpretation
    • Variant page
      • Variant page
      • Variant page top bar
      • Variant tagging widget
      • Variant activity panel
      • Desktop apps panel
      • Clinical Significance section
      • Summary section
      • Quality section
      • Visualization section
      • Population Statistics section
      • Related Cases section
      • CNV overlap percentage
      • Evidence section
      • ACMG SNV Classification wizard
      • Logic behind ACMG classification of SNVs
      • ACMG CNV Classification wizard
      • Variant page sidebar (2.29+)
    • Variant visualization setup
      • Enabling visualization for a VCF case
      • Integration between emedgene and desktop IGV
      • Loading alignment files to your desktop IGV (32.0+)
    • Analyze Network
      • Analyze Network Setup
      • Network sharing configuration
      • Case subject consent for extended sharing
      • Public vs Private network
      • Create a network
      • Set network data sharing policy
      • Leave a network
      • Delete a network
    • Settings
      • My settings
      • Management
      • User Management
      • Network
      • Organization Settings (33.0+)
    • Integrations
      • API Beginner Guide
      • Advanced API Implementations
      • API Key Generation
      • BSSH Integration
      • ICA Integration
      • Webhook Integration
  • Emedgene Curate Manual
    • Curate overview
      • Curate overview
      • Emedgene Applications menu
      • Curate navigation panel
      • Genome assemblies supported by Curate
    • Curate Variants
      • Curate Variants overview
      • Curate Variant table
      • Curate Variant page
      • How to add a variant to Curate
      • Curate Variant annotations in the case
    • Curate Genes (2.28+)
      • Curate Genes overview
      • Curate Gene table
      • Curate Gene page
      • How to add a gene to Curate
    • Import Curate annotations to the case (30.0+)
      • Import Curate Variant annotations to the case (30.0+)
      • Import Curate Gene annotations to the case (30.0+)
  • Integrations
    • API Beginner Guide
  • Frequently Asked Questions
    • All FAQ
      • Which browser should I use with Emedgene?
      • Emedgene annotations and update frequency
      • How do I use developer tools to collect logs?
      • Can I analyze Illumina Complete Long Reads in Emedgene?
      • How do I prepare VCF files generated by DRAGEN MANTA to be used as input for Emedgene?
      • Source of gnomAD data for small variants on GRCh38
      • How are MNVs handled on the platform?
      • Support for gene lists with up to 10,000 genes
      • Genomic Regions by Case Type
      • How do I analyze mtDNA variants?
      • Can I use exome data for CNV detection?
      • How does joint calling work on Emedgene?
      • What is the required format for a BED file defining a kit?
      • Which reference genomes can I use?
      • How do I move between organizations?
      • How do I check the version of my environment?
      • "Failed to generate report". What should I do?
      • How do I prepare VCF files generated by Dragen STR (ExpansionHunter) to be used as input?
      • How does Emedgene Analyze prioritize transcripts?
      • How does Emedgene Analyze merge variants from different sources?
      • Performance issue troubleshooting
      • How does Emedgene calculate variant effect and severity ?
      • How to I prepare metrics files generated by DRAGEN to be used as input for Emedgene
      • How are timekeeping and log timestamps kept accurate and consistent?
  • Release Notes
    • Workbench & Pipeline Updates
      • New in Emedgene V37.0 (February 20, 2025)
        • V37 Patches
      • New in Emedgene V36.0 (October 8 2024)
        • V36 Patches
      • New in Emedgene V35.0 (May 22nd 2024)
        • V35 Patches
      • New in Emedgene V34.0 (January 28th 2024)
        • V34 Patches
      • More release notes
        • New in Emedgene V33.0 (September 6th 2023)
          • V33 Patches
        • New in Emedgene V32.0 (June 8th 2023)
          • New pipeline 32 (June 8th 2023)
          • V32 Patches
        • New in emedgene 31 (March 1st 2023)
        • New in emedgene 30 (January 8th 2023)
        • New in emedgene 2.29 (August 25 2022)
        • New pipeline 5.29 (May 1st 2022)
        • New in emedgene 2.28 (May 1 2022)
        • New in emedgene 2.27 (March 7, 2022)
        • New in emedgene 2.26 (Dec 14, 2021)
        • New in emedgene 2.24-2.25 (Aug 11, 2021)
        • New in emedgene 2.23 (Jun 15, 2021)
        • New in emedgene 2.19-2.22 (Apr 8, 2021)
        • New in emedgene 2.16-2.19 (Dec 7, 2020)
        • New in emedgene 2.12-2.16 (Oct 18, 2020)
    • Knowledgebase Updates
      • 2025
        • Variant Databases (March 30th 2025)
        • Zoidberg 77 (March 17th 2025)
        • Zoidberg 76 (February 3rd 2025)
        • Zoidberg 75 (January 6th 2025)
      • 2024
        • Variant Databases (December 8th 2024)
        • Zoidberg 74 (December 2nd 2024)
        • Zoidberg 73 (October 21th 2024)
        • Variant Databases (September 22nd 2024)
        • Zoidberg 72 (September 10th 2024)
        • Variant Databases (July 21st 2024)
        • Zoidberg 71 (July 24th 2024)
        • Zoidberg 70 (June 3rd 2024)
        • Zoidberg 69 (April 19th 2024)
        • Variant Databases (April 9th 2024)
        • Zoidberg 68 (March 18th 2024)
        • Variant Databases (February 5th 2024)
        • Zoidberg 67 (January 28th 2024)
        • Variant Databases (January 5th 2024)
      • 2023
        • Zoidberg 66 (December 24th 2023)
        • Variant Databases (December 3rd 2023)
        • Zoidberg 65 (November 21th 2023)
        • Variant Databases (November 5th 2023)
        • Zoidberg 64 (October 24th 2023)
        • Variant Databases (October 8th 2023)
        • Zoidberg 63 (September 18th 2023)
        • Variant Databases (September 5th 2023)
        • Zoidberg 62 (August 23th 2023)
        • Zoidberg 61 (August 16th 2023)
        • Variant Databases (August 6th 2023)
        • Zoidberg 60 (July 30th 2023)
        • Variant Databases (July 2nd 2023)
        • Zoidberg 59 (June 18th 2023)
        • Variant Databases (June 4th 2023)
          • Variant Databases (May 7th 2023)
        • Zoidberg 58 (May 21th 2023)
        • Zoidberg 57 (April 16th 2023)
        • Variant Databases (April 2nd 2023)
        • Zoidberg 56 (March 19th 2023)
        • Variant Databases (March 11th 2023)
        • Zoidberg 55 (February 19th 2023)
        • Zoidberg 54 (January 16th 2023)
    • Change log
      • Change log pipeline v34
      • Change log pipeline 31
      • Change log workbench 31
      • Change log pipeline 30
      • Change log workbench 30
      • Change log workbench 2.29
      • Change log pipeline 5.29
      • Change log workbench 2.28
  • Legal
    • Privacy, Security & Compliance
    • Release Policy
Powered by GitBook
On this page
  • API Introduction
  • Prerequisites
  • Authentication
  • API Reference
  • Creating Python requests from curl
  • Examples
  • Variant
  • Gene
  • Export
  • Notes

Was this helpful?

Export as PDF
  1. Integrations

API Beginner Guide

This guide provides instructions on using the Curate API to create, update, and search for variants and genes, and on exporting Curate data to a CSV.

PreviousIntegrationsNextAll FAQ

Last updated 23 hours ago

Was this helpful?

API Introduction

Operations from the Emedgene Curate's graphical user interface (GUI) can also be performed by using the Emedgene Curate's API.

Following are some basic examples of how to use Emedgene Curate's API with Python.

For instructions on using the API with other programming languages, please refer to their respective documentation.

Prerequisites

  • An installed copy of Python ()

  • The Python package installer, pip ()

  • The requests library installed (run pip install requests)

  • Each API call requires the user to have the corresponding role. See for more information.

Authentication

In order to perform a secure session with Emedgene's API servers you should first accomplish the authentication phase and retrieve the bearer token. To accomplish this, follow the Authentication steps .

API Reference

The different API commands can be found at https://<hostname>.emedgene.com/api/kms/apidoc/swagger or https://<hostname>.emg.illumina.com/api/kms/apidoc/swagger

It is useful to explore possible APIs and get an overview of the available parameters.

Creating Python requests from curl

Examples

Variant

Create a New Variant

To create a new variant, send a POST request with the required variant details.

Request Example (Python):

import requests

url = "https://<hostname>.emg.illumina.com/api/kms/variants/v2/variants"
headers = {
    "Authorization": "Bearer <your-auth-token>"
}
data = {
    "chromosome": "3",
    "start": 122004036,
    "ref": "T",
    "alt": "C",
    "human_reference": "GRCh38",
    "variant_type": "SNV"
}

response = requests.post(url, json=data, headers=headers)

Response Fields:

The API response includes multiple fields, but the key values needed for future updates are:

  • id: The unique identifier of the variant.

  • variant_interpretation_ids: A list of interpretation IDs associated with the variant.

These fields are required for updating the variant later.

Search for a Variant by chromosome position

To retrieve variant details by chromosome position, send a GET request.

Request Example (Python):

import requests

chromsome = <chr>
start = <pos>
ref = <ref>

url = f"https://<hostname>.emg.illumina.com/api/api/kms/variants/v2/variants/search"
headers = {
    "Authorization": "Bearer <your-auth-token>"
}
params = {
    "human_reference": ref,
    chromosome: chr,
    start: start,
    operator="AND"
}

response = requests.post(url, params=params, headers=headers)

Update an Existing Variant

To modify a variant, use the PATCH method with the variant ID and interpretation ID retrieved from the creation response.

Request Example (Python):

import requests

variant_id = <variant-id>  # Retrieved from the initial API response
interpretation_id = <interpretation-id>  # Retrieved from the initial API response

url = f"https://<hostname>.emg.illumina.com/api/kms/variants/v2/variants/{variant_id}/interpretations/{interpretation_id}"
headers = {
    "Authorization": "Bearer <your-auth-token>"
}
data = {
    "id": variant_id,
    "interpretationId": interpretation_id,
    "transcript": "NM_XXXXXX"  # The updated transcript value
}

response = requests.patch(url, json=data, headers=headers)

Delete a Variant

To delete a variant, use the DELETE method with the variant ID from the response of the create, update, or search API responses.

import requests

variant_id = <variant-id>  # Retrieved from the initial API response

url = f"https://<hostname>.emg.illumina.com/api/kms/variants/v2/variants/{variant_id}"
headers = {
    "Authorization": "Bearer <your-auth-token>"
}

response = requests.delete(url, headers=headers)

Gene

Create a New Gene

New genes can only be created using a valid HGNC ID.

Request Example (Python):

import requests

url = "https://<hostname>.emg.illumina.com/api/kms/genes/v1/genes"
headers = {
    "Authorization": "Bearer <your-auth-token>"
}
data = {"id": "EMG_GENE_HGNC:XXXXX"}  # Replace with the relevant HGNC ID

response = requests.post(url, json=data, headers=headers)

Response Fields:

The API response contains multiple fields, but the key ones required for future updates are:

  • id: The unique identifier of the gene.

  • gene_interpretations: A list of interpretation IDs associated with the gene.

Search for a Gene by HGNC ID

To retrieve gene details by HGNC ID, send a GET request.

Request Example (Python):

import requests

hgnc_id = <hgnc-id> 

url = f"https://<hostname>.emg.illumina.com/api/kms/genes/v1/genes/search"
headers = {
    "Authorization": "Bearer <your-auth-token>"
}
params = {"q": hgnc_id}    # q is the key name for HGNC ID

response = requests.post(url, params=params, headers=headers)

It is also possible to search by NCBI ID in the same way as searching by HGNC ID.

Update an Existing Gene

To modify a gene, use the PATCH method with the gene ID and interpretation ID retrieved from the creation or search response.

Request Example (Python):

import requests

gene_id = <gene-id>  # Retrieved from the initial API response
interpretation_id = <interpretation-id>  # Retrieved from the initial API response

url = f"https://<hostname>.emg.illumina.com/api/kms/genes/v1/genes/{gene_id}/interpretations/{interpretation_id}"
headers = {
    "Authorization": "Bearer <your-auth-token>"
}
data = {
    "gene_id": gene_id,
    "id": interpretation_id,
    "transcript_ref_sequence": "NM_XXXXXX"  # The updated transcript value
}

response = requests.patch(url, json=data, headers=headers)

Export

In order to export all curated variants or genes as a CSV file, use the following API endpoints:

  • Variants Export: /api/kms/export/v1/export/variants

  • Genes Export: /api/kms/export/v1/export/genes

Each request returns a pre-signed URL, which can be used to download the exported file directly from a browser. Since its generation, the URL is valid for 12 hours.

Note: The export is updated every 24 hours, so any changes made in Curate will be reflected in the following day's export.

Request Example (Python):

import requests

url = f"https://<hostname>.emg.illumina.com/api/kms/export/v1/export/variants"
headers = {
    "Authorization": "Bearer <your-auth-token>"
}

response = requests.get(url, headers=headers)

Response Structure:

{"url":"https://s3.amazonaws.com/..........."}

It's possible to download the file by pasting the response URL in the browser.

The variant CSV will provide the following fields:

  1. Variant Type

  2. Pathogenicity

  3. Chromosome

  4. Position

  5. End

  6. REF

  7. ALT

  8. Interpretation

  9. Notes

  10. Diseases (OMIM ID)

  11. Overlap %

The gene CSV will provide the following fields:

  1. Gene Name

  2. Group Type

  3. Chromosome (37)

  4. Start (37)

  5. End (37)

  6. Chromosome (38)

  7. Start (38)

  8. End (38)

  9. NCBI ID

  10. HGNC ID

  11. Strand

  12. Locus type

  13. Interpretation

  14. Note

  15. Transcript reference sequence

  16. Created epoch

The CSV format limits the number of characters per cell. Interpretations and notes exceeding 32,750 characters will be truncated.

Notes

  • Replace <hostname> with the correct API server hostname.

  • Replace <your-auth-token> with a valid authentication token.

  • Ensure IDs used in update requests match those received from the initial response.

The examples in the API Reference page use curl (Client URL), while Python uses requests. To convert from curl to Python follow the converstion steps .

https://www.python.org/
https://pip.pypa.io/
User roles
here
here