Identify ID type (TogoID)
togoid_identifyIdResolve a bare accession or CURIE to the TogoID dataset key(s) it may belong to, returning ranked candidates for convertId; optionally verify them against TogoID conversion tables.
Instructions
Resolve a bare accession to the TogoID dataset key(s) it could belong to.
The inverse of getDataset: given an identifier like AEK21611 or P38398,
it returns the route key convertId expects. Plausible-sounding keys such as
ncbi_protein, entrez_gene and uniprotkb are not TogoID datasets, and
any call using one fails.
RETURNS a JSON string of a bare array, one object per input ID, each with
id and candidates (possibly empty). Each candidate carries dataset
(the key to put in a route), label, category, shape_matches_examples,
and pattern_collisions.
Candidates are ordered best-first on two pieces of evidence:
shape_matches_examples— whether the ID's character-class shape (AEK21611→L3D5) is one the dataset's own example IDs take. This is the main per-ID signal:insdc_cds's examples are allL3D5,insdc'sL1D5/L2D6, so a protein accession sorts above the gene-level dataset.pattern_collisions— how many other datasets' example IDs this dataset's pattern also matches, used to break ties. Low means a distinctive format (uniprot: ~10), high a catch-all (hgnc_symbol: over a thousand).
The order is evidence, not an answer: it puts the right dataset first for
about 82% of TogoID's published example IDs, and the rest cannot be told
apart by shape — a bare 672 is a well-formed ncbigene, pubmed, chebi and
homologene ID. category=, verify=True, or knowing where the ID came from
settles it. An empty candidates list means no registered dataset's pattern
matches, so TogoID cannot convert that ID.
VERIFY (verify=True) asks TogoID which of its conversion tables actually
contain the ID. Each candidate then also carries:
attested— "yes": TogoID holds the ID as this dataset in at least one table. "no": it holds it under no table for this dataset, so TogoID cannot convert it from this dataset. "unknown": TogoID did not answer in time (seeverify_note).pairs_with— datasets this ID shares a direct table with on this dataset's side (null when unknown); for a "yes" candidate these are single-hop convertId targets.
Candidates then sort yes, unknown, no. Verification rules out datasets
better than it picks one (a short number like 672 is present in a dozen),
and costs one lookup per ID, so it is off by default and limited to 10 IDs
per call. Pass the ID as written (GO:0005515, not 0005515): TogoID
resolves the prefix, and a bare ontology number is found nowhere.
A CURIE disambiguates far better than a bare accession:
insdc.cds:AEK21611 rather than AEK21611. A full IRI matches no
dataset's pattern; pass its accession or CURIE instead.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"ids": "<ids>"
},
"name": "togoid_identifyId"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | Yes | Identifiers to resolve. A list of strings, or a comma/whitespace separated string (e.g. "AEK21611,P38398"). | |
| verify | No | Check each candidate against TogoID's conversion tables and add `attested`/`pairs_with` (default False; at most 10 IDs). | |
| category | No | Optional filter on the dataset's category, matched case-insensitively — e.g. 'Gene', 'Protein', 'Compound', 'Transcript', 'Variant', 'Pathway', 'Phenotype'. Use it to break ties when you know what kind of thing the ID names. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |