TCT.node_annotator¶
This is a wrapper around the Node Annotator API.
API docs: https://annotator.transltr.io/
- TCT.node_annotator.URL = 'https://annotator.transltr.io/'¶
This is the root URL for the API.
- TCT.node_annotator.lookup_curies(curies: list[str], **kwargs)[source]¶
A wrapper around the curies API endpoint. Given a list of CURIEs, this returns a dictionary where each CURIE is mapped to a list of annotations.
- Parameters:
- curieslist[str]
A list of CURIEs to look up.
- **kwargs
Other arguments to curie. Some possible arguments: raw=true returns annotation fields in their original data structure before transformation, fields can be used to provide a comma-separated list of annotation fields you are interested in, and include_extra=true (default true) uses external APIs to provide additional annotations.
- Returns:
- A dictionary with keys as the input CURIEs and the values as dictionaries of annotations and their values.
Examples
>>> lookup_curies(['MESH:D014867']) >>> lookup_curies(['NCIT:C34373', 'NCBIGene:1756'])