Skip to content
This repository has been archived by the owner on Jan 2, 2025. It is now read-only.

Commit

Permalink
🗑️ Deprecate from_public
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnyosun committed Aug 1, 2024
1 parent dccca96 commit 8b93c2f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lnschema_core/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 8b93c2f

Please sign in to comment.