normalize_parsed_curie

normalize_parsed_curie(prefix, identifier, *, use_preferred=False)[source]

Normalize a prefix/identifier pair.

Parameters:
  • prefix (str) – The prefix in the CURIE

  • identifier (str) – The identifier in the CURIE

  • use_preferred (bool) – If set to true, uses the “preferred prefix”, if available, instead of the canonicalized Bioregistry prefix.

Return type:

Union[Tuple[str, str], Tuple[None, None]]

Returns:

A normalized prefix/identifier pair, conforming to Bioregistry standards. This means no redundant prefixes or bananas, all lowercase.