open_umls_semantic_types

open_umls_semantic_types(version=None, *, api_key=None, force=False)[source]

Ensure and open a UMLS file from the given version.

Parameters:
  • version (Optional[str]) – The version of UMLS to ensure. If not given, is looked up with bioversions.

  • api_key (Optional[str]) – An API key. If not given, is looked up using pystow.get_config() with the umls module and api_key key.

  • force (bool) – Should the file be re-downloaded, even if it already exists?

Yields:

The file, which is used in the context manager.

This file contains the following columns:

CUI

Unique identifier of concept

TUI

Unique identifier of Semantic Type

STN

Semantic Type tree number

STY

Semantic Type. The valid values are defined in the Semantic Network.

ATUI

Unique identifier for attribute

CVF

Content View Flag. Bit field used to flag rows included in Content View.