From 74b8e62766f607d3407dba6a9578afc8e940ce27 Mon Sep 17 00:00:00 2001 From: Charles Tapley Hoyt Date: Sat, 23 Nov 2024 09:32:41 +0100 Subject: [PATCH] Update xrefs.py --- src/pyobo/api/xrefs.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pyobo/api/xrefs.py b/src/pyobo/api/xrefs.py index 707c741b..87ee6a26 100644 --- a/src/pyobo/api/xrefs.py +++ b/src/pyobo/api/xrefs.py @@ -1,6 +1,7 @@ """High-level API for synonyms.""" import logging +import warnings from collections.abc import Mapping from functools import lru_cache @@ -83,6 +84,8 @@ def get_xrefs_df( prefix: str, *, use_tqdm: bool = False, **kwargs: Unpack[GetOntologyKwargs] ) -> pd.DataFrame: """Get all xrefs.""" + warnings.warn("use pyobo.get_sssom_df instead of pyobo.get_xrefs_df", DeprecationWarning, stacklevel=2) + version = get_version_from_kwargs(prefix, kwargs) path = prefix_cache_join(prefix, name="xrefs.tsv", version=version)