Core Endpoints
A. GET Endpoints
| Endpoint | Description | Example(s) |
|---|---|---|
/srvc | Summary of entity types and counts | |
/{sbjType}/subjects | All subject-alias mappings for the subject IDs given | /cgAllele/subjects?ids=a,b,c |
/{sbjType}/aliases | All subject-alias mappings for the alias IDs given | /cgAllele/aliases?ids=x,y,z |
/{sbjType}/subjects/{aliasType} | All subject-aliases of a specific alias type for the subject IDs given | /cgAllele/subjects/allelePgroup?ids=a,b,c |
/{sbjType}/aliases/{aliasType} | All subject-aliases of a specific alias type for the alias IDs given | /cgAllele/aliases/allelePgroup?ids=x,y,z |
/{sbjType}/aliases/{aliasType}/{aliasId} | All subject-aliases for a specific alias ID | /cgAllele/aliases/allelePgroup/B*07:02P |
/{sbjType}/id/{sbjId} | Info about a specific subject entity | /cgAllele/id/CAHLA718817741 |
/{sbjType}/id/{sbjId}/alias | All the aliases for a speciic subject | /cgAllele/id/CAHLA718817741/alias |
/{sbjType}/id/{sbjId}/alias/{aliasType} | All the aliases of a specific alias type for a specific subject | /cgAllele/id/CAHLA718817741/alias/imgtAcc |
/{sbjType}/id/{sbjId}/alias/{aliasType}/{aliasId} | A subject-alias mapping only if a link exists | /cgAllele/id/CAHLA718817741/alias/imgtAcc/HLA30689 |
A.1 Modifiers
Below is a list of possible query parameters. Depending on the endpoint or combination of parameters, some may not be applicable, and thus have no effect.
| Modifier | Possible values | Description | Example(s) |
|---|---|---|---|
detail | min, low, med (default), high, max | low/min: Only identifier-level info med: IRIs included high/max: All detail, including any created metadata | /cgAllele/id/CASV4220344313/alias/nist?detail=low/genomicLocation/id/GL4116168699/alias?detail=high |
respFormat | json (default), tsv, plain, yaml | json: JSONtsv: Tab-delimited columns (downloadable file) plain: Same content as tsv, but renderable by the browser yaml: YAML | /cgAllele/id/CASV4220344313/alias?respFormat=plain |
ids | Comma-separated list of IDs to query. Number of IDs is under a smaller limit than if a payload were used (see "Batch GETs") | /cgAllele/subjects?ids=CASV4221740749,CASV4220344313,CASV4221741935/cgAllele/aliases?ids=CHG3_Ill_Krunchall_15451,INS_10_73724 | |
pg | Positive integer | Page number to retrieve | /cgAllele/subjects?pg=5&pgSize=10 |
pgSize | Positive integer <= 1000 | Number of records per page | /genomicLocation/aliases?pg=5&pgSize=10 |
A.2 Fields in API response
| Field | Description | Example(s) |
|---|---|---|
sbjId | Subject entity ID | "sbjId": "CASV4220344313" |
sbjIri | Subject entity resource identifier | "sbjIri": "https://ldh.clinicalgenome.org/ldh-alias/cgAllele/id/CAHLA1449529499" |
alias | Alias info | "alias": { "nist": [...], "gnomadSv2": [...] } |
aliasId | Alias entity ID | "aliasId": "DEL_1_1" |
aliasIri | Alias entity resource identifier | "aliasIri": "https://ldh.clinicalgenome.org/ldh-alias/cgAllele/id/CAHLA1449529499/alias/imgtAcc/HLA40478" |
info | Additional info about an entity | "info": { "iri": { "api": [ "https://www.ebi.ac.uk/cgi-bin/ipd/api/allele/HLA00001" ] } } |
created | Entity creation date. | "created": "2025-01-02T15:27:07.300Z" |
creator | Entity creator. | "creator": "cgLdhAdministrator" |
A.3 Example responses
A.3.1 JSON
For illustrative purposes, all are at the detail level of med.
json5
// Response data of GET `/cgAllele/id/CASV4220344313`
{
"alias": {
"gnomadSv2": [
{
"aliasId": "INS_10_73724",
"aliasIri": "https://ldh.clinicalgenome.org/ldh-alias/cgAllele/id/CASV4220344313/alias/gnomadSv2/INS_10_73724",
"info": {
"iri": {
"ui": [
"https://gnomad.broadinstitute.org/variant/INS_10_73724?dataset=gnomad_sv_r2_1"
]
}
}
},
{
"aliasId": "INS_10_73725",
"aliasIri": "https://ldh.clinicalgenome.org/ldh-alias/cgAllele/id/CASV4220344313/alias/gnomadSv2/INS_10_73725",
"info": {
"iri": {
"ui": [
"https://gnomad.broadinstitute.org/variant/INS_10_73725?dataset=gnomad_sv_r2_1"
]
}
}
}
],
"nist": [
{
"aliasId": "HG3_Ill_Krunchall_15451",
"aliasIri": "https://ldh.clinicalgenome.org/ldh-alias/cgAllele/id/CASV4220344313/alias/nist/HG3_Ill_Krunchall_15451"
}
]
}
}json5
// Response data of GET `/cgAllele/id/CASV4220344313/alias/gnomadSv2`
{
"alias": {
"gnomadSv2": [
{
"aliasId": "INS_10_73724",
"aliasIri": "https://ldh.clinicalgenome.org/ldh-alias/cgAllele/id/CASV4220344313/alias/gnomadSv2/INS_10_73724",
"info": {
"iri": {
"ui": [
"https://gnomad.broadinstitute.org/variant/INS_10_73724?dataset=gnomad_sv_r2_1"
]
}
}
},
{
"aliasId": "INS_10_73725",
"aliasIri": "https://ldh.clinicalgenome.org/ldh-alias/cgAllele/id/CASV4220344313/alias/gnomadSv2/INS_10_73725",
"info": {
"iri": {
"ui": [
"https://gnomad.broadinstitute.org/variant/INS_10_73725?dataset=gnomad_sv_r2_1"
]
}
}
}
]
}
}json5
// Response data of GET `/cgAllele/id/CASV4220344313/alias/gnomadSv2/INS_10_73725`
{
"alias": {
"gnomadSv2": [
{
"aliasId": "INS_10_73725",
"aliasIri": "https://ldh.clinicalgenome.org/ldh-alias/cgAllele/id/CASV4220344313/alias/gnomadSv2/INS_10_73725",
"info": {
"iri": {
"ui": [
"https://gnomad.broadinstitute.org/variant/INS_10_73725?dataset=gnomad_sv_r2_1"
]
}
}
}
]
}
}A.3.2 TSV
The columns, in order, are sbjId, aliasType, and aliasId.
The detail modifier is not relevant when requesting tab-delimited payloads. If metadata is needed, request JSON responses instead.
CASV4220344313 nist HG3_Ill_Krunchall_15451
CASV4220344313 gnomadSv2 INS_10_73724
CASV4220344313 gnomadSv2 INS_10_73725CASV4220344313 gnomadSv2 INS_10_73724
CASV4220344313 gnomadSv2 INS_10_73725CASV4220344313 gnomadSv2 INS_10_73725A.4 Batch GETs
Data on multiple subject-aliases can be retrieved using the following endpoints:
/{sbjType}/subjects/{sbjType}/subjects/{aliasType}/{sbjType}/aliases/{sbjType}/aliases/{aliasType}
Either the ids modifier (see "Modifiers") can be used, or a payload can be sent.
- A JSON payload (
application/json) should be an array of ID strings. - A plain-text payload (
text/plain) should have each ID on a separate line, without any quotes.
An example request and response are provided below.
bash
curl -X GET \
-H "Content-Type: text/plain" --data-binary @tmp.txt \
"https://${HOST}/ldh-alias/cgAllele/subjects?respFormat=tsv"CAHLA718817118
CAHLA718817125
CAHLA718817133CAHLA718817118 alleleGgroup A*01:01:01G
CAHLA718817118 allelePgroup A*01:01P
CAHLA718817118 imgtAcc HLA00001
CAHLA718817125 alleleGgroup A*01:01:01G
CAHLA718817125 imgtAcc HLA02169
CAHLA718817133 alleleGgroup A*01:01:01G
CAHLA718817133 allelePgroup A*01:01P
CAHLA718817133 imgtAcc HLA15760