From 8b93c2f8e0c3c9027b1557f7bff42c811a79f37a Mon Sep 17 00:00:00 2001 From: Sunny Sun <38218185+sunnyosun@users.noreply.github.com> Date: Thu, 1 Aug 2024 12:06:39 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=97=91=EF=B8=8F=20Deprecate=20from=5Fpubl?= =?UTF-8?q?ic?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lnschema_core/models.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lnschema_core/models.py b/lnschema_core/models.py index f039b296..f899e8d4 100644 --- a/lnschema_core/models.py +++ b/lnschema_core/models.py @@ -366,7 +366,7 @@ def add_synonym( Examples: >>> import bionty as bt - >>> bt.CellType.from_public(name="T cell").save() + >>> bt.CellType.from_source(name="T cell").save() >>> lookup = bt.CellType.lookup() >>> record = lookup.t_cell >>> record.synonyms @@ -389,7 +389,7 @@ def remove_synonym(self, synonym: str | ListLike): Examples: >>> import bionty as bt - >>> bt.CellType.from_public(name="T cell").save() + >>> bt.CellType.from_source(name="T cell").save() >>> lookup = bt.CellType.lookup() >>> record = lookup.t_cell >>> record.synonyms @@ -411,7 +411,7 @@ def set_abbr(self, value: str): Examples: >>> import bionty as bt - >>> bt.ExperimentalFactor.from_public(name="single-cell RNA sequencing").save() + >>> bt.ExperimentalFactor.from_source(name="single-cell RNA sequencing").save() >>> scrna = bt.ExperimentalFactor.filter(name="single-cell RNA sequencing").one() >>> scrna.abbr None @@ -454,7 +454,7 @@ def view_parents( Examples: >>> import bionty as bt - >>> bt.Tissue.from_public(name="subsegmental bronchus").save() + >>> bt.Tissue.from_source(name="subsegmental bronchus").save() >>> record = bt.Tissue.filter(name="respiratory tube").one() >>> record.view_parents() >>> tissue.view_parents(with_children=True) @@ -732,7 +732,7 @@ def lookup( Examples: >>> import bionty as bt >>> bt.settings.organism = "human" - >>> bt.Gene.from_public(symbol="ADGB-DT").save() + >>> bt.Gene.from_source(symbol="ADGB-DT").save() >>> lookup = bt.Gene.lookup() >>> lookup.adgb_dt >>> lookup_dict = lookup.dict()