togoid_getRelation
Verify if a specific ID conversion route exists between two biological databases and retrieve the relationship details.
Instructions
Check if a specific ID conversion route exists and get its details.
Use this to verify that a particular source→target conversion is available before calling convertId. Also reveals the nature of the relationship (e.g., "encoded by", "has structure", "is target of").
Args: source: Source database key (e.g., 'uniprot', 'ncbigene', 'chembl_target') target: Target database key (e.g., 'pdb', 'ensembl_gene', 'hgnc')
Returns: List of relationship objects with: - forward: relationship label from source to target - reverse: relationship label from target to source - description: explanation of the link
Example: >>> getRelation('ncbigene', 'uniprot') # Shows: ncbigene → uniprot via "encoded by" relationship
>>> getRelation('uniprot', 'pdb')
# Shows: uniprot → pdb via "has structure" relationshipInput Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | ||
| target | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |