pyobo 0.12.12__py3-none-any.whl → 0.12.13__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pyobo/sources/chebi.py +1 -4
- pyobo/struct/struct_utils.py +2 -0
- pyobo/struct/typedef.py +19 -0
- pyobo/version.py +1 -1
- {pyobo-0.12.12.dist-info → pyobo-0.12.13.dist-info}/METADATA +1 -1
- {pyobo-0.12.12.dist-info → pyobo-0.12.13.dist-info}/RECORD +9 -9
- {pyobo-0.12.12.dist-info → pyobo-0.12.13.dist-info}/WHEEL +1 -1
- {pyobo-0.12.12.dist-info → pyobo-0.12.13.dist-info}/entry_points.txt +0 -0
- {pyobo-0.12.12.dist-info → pyobo-0.12.13.dist-info}/licenses/LICENSE +0 -0
pyobo/sources/chebi.py
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
from collections.abc import Mapping
|
|
4
4
|
|
|
5
5
|
from ..api import get_filtered_properties_mapping, get_filtered_relations_df
|
|
6
|
-
from ..struct import
|
|
6
|
+
from ..struct.typedef import has_role
|
|
7
7
|
from ..utils.io import multisetdict
|
|
8
8
|
|
|
9
9
|
__all__ = [
|
|
@@ -28,9 +28,6 @@ def get_chebi_smiles_id_mapping() -> Mapping[str, str]:
|
|
|
28
28
|
return {v: k for k, v in get_chebi_id_smiles_mapping().items()}
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
has_role = TypeDef(reference=Reference(prefix="chebi", identifier="has_role"))
|
|
32
|
-
|
|
33
|
-
|
|
34
31
|
def get_chebi_role_to_children() -> Mapping[str, set[tuple[str, str]]]:
|
|
35
32
|
"""Get the ChEBI role to children mapping."""
|
|
36
33
|
df = get_filtered_relations_df("chebi", relation=has_role)
|
pyobo/struct/struct_utils.py
CHANGED
|
@@ -1020,6 +1020,8 @@ def _format_obo_trailing_modifiers(
|
|
|
1020
1020
|
right = f'"{obo_escape_slim(value)}"'
|
|
1021
1021
|
else:
|
|
1022
1022
|
right = value
|
|
1023
|
+
case _:
|
|
1024
|
+
raise TypeError(f"invalid prop value: {type(prop.value)} - {prop.value}")
|
|
1023
1025
|
modifiers.append((left, right))
|
|
1024
1026
|
inner = ", ".join(f"{key}={value}" for key, value in modifiers)
|
|
1025
1027
|
return " {" + inner + "}"
|
pyobo/struct/typedef.py
CHANGED
|
@@ -18,6 +18,7 @@ __all__ = [
|
|
|
18
18
|
"contributes_to_condition",
|
|
19
19
|
"default_typedefs",
|
|
20
20
|
"derives_from_organism",
|
|
21
|
+
"directly_regulates_activity_of",
|
|
21
22
|
"editor_note",
|
|
22
23
|
"enables",
|
|
23
24
|
"ends",
|
|
@@ -46,15 +47,20 @@ __all__ = [
|
|
|
46
47
|
"has_successor",
|
|
47
48
|
"has_taxonomy_rank",
|
|
48
49
|
"is_a",
|
|
50
|
+
"is_agonist_of",
|
|
51
|
+
"is_antagonist_of",
|
|
52
|
+
"is_inverse_agonist_of",
|
|
49
53
|
"located_in",
|
|
50
54
|
"mapping_has_confidence",
|
|
51
55
|
"mapping_has_justification",
|
|
52
56
|
"match_typedefs",
|
|
53
57
|
"member_of",
|
|
54
58
|
"narrow_match",
|
|
59
|
+
"negatively_regulates",
|
|
55
60
|
"orthologous",
|
|
56
61
|
"part_of",
|
|
57
62
|
"participates_in",
|
|
63
|
+
"positively_regulates",
|
|
58
64
|
"related_match",
|
|
59
65
|
"role_of",
|
|
60
66
|
"see_also",
|
|
@@ -267,6 +273,19 @@ has_functional_parent = TypeDef(
|
|
|
267
273
|
reference=Reference(prefix="ro", identifier="0018038", name="has functional parent"),
|
|
268
274
|
)
|
|
269
275
|
|
|
276
|
+
positively_regulates = TypeDef(
|
|
277
|
+
Reference(prefix="RO", identifier="0002213", name="positively regulates")
|
|
278
|
+
)
|
|
279
|
+
negatively_regulates = TypeDef(
|
|
280
|
+
Reference(prefix="RO", identifier="0002212", name="negatively regulates")
|
|
281
|
+
)
|
|
282
|
+
is_agonist_of = TypeDef.from_triple("RO", "0018027", "is agonist of")
|
|
283
|
+
is_inverse_agonist_of = TypeDef.from_triple("RO", "0018028", "is inverse agonist of")
|
|
284
|
+
is_antagonist_of = TypeDef.from_triple("RO", "0018029", "is antagonist of")
|
|
285
|
+
directly_regulates_activity_of = TypeDef.from_triple(
|
|
286
|
+
"RO", "0002448", "directly regulates activity of"
|
|
287
|
+
)
|
|
288
|
+
|
|
270
289
|
is_mentioned_by = TypeDef(
|
|
271
290
|
reference=v.is_mentioned_by,
|
|
272
291
|
is_metadata_tag=True,
|
pyobo/version.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pyobo
|
|
3
|
-
Version: 0.12.
|
|
3
|
+
Version: 0.12.13
|
|
4
4
|
Summary: A python package for handling and generating OBO
|
|
5
5
|
Keywords: snekpack,cookiecutter,ontologies,biomedical ontologies,life sciences,natural sciences,bioinformatics,cheminformatics,Open Biomedical Ontologies,OBO
|
|
6
6
|
Author: Charles Tapley Hoyt
|
|
@@ -59,7 +59,7 @@ pyobo/sources/bigg/bigg_reaction.py,sha256=45SIIae32GtDxzL_gpF7p1TKVfh6t3UgHpF4f
|
|
|
59
59
|
pyobo/sources/biogrid.py,sha256=dYl6Pt3YpND2cvTl5LIAekWyJpclf7R1JvFJUT9XH9A,3297
|
|
60
60
|
pyobo/sources/ccle.py,sha256=Fn1tY1YHHyZj6mlqg8ISMGUYG4o6W5MeeO7l_KlLmos,2924
|
|
61
61
|
pyobo/sources/cgnc.py,sha256=XlwqqjJc7B97352-AgaRo8lazXnKf__JVV4ldfGJl1Q,2299
|
|
62
|
-
pyobo/sources/chebi.py,sha256
|
|
62
|
+
pyobo/sources/chebi.py,sha256=1ESngeNgenO4DwMD0YFgRIQx6LLndqT0JS4lLhQTRCk,1119
|
|
63
63
|
pyobo/sources/chembl/__init__.py,sha256=mfqYGDIjoUj66ooq2AUvzX2DLFheSdSsvwyKt9pLonY,414
|
|
64
64
|
pyobo/sources/chembl/chembl_cell.py,sha256=q-O7wJyOT2bjtqN5-0d2gEkJr0R-ULKHvt6843j8gVA,2669
|
|
65
65
|
pyobo/sources/chembl/chembl_compound.py,sha256=Ds9axuT1uO-9L3lQnEpr_8JdWo-mDNWJv9hTWG9WXsk,1888
|
|
@@ -192,8 +192,8 @@ pyobo/struct/obograph/reader.py,sha256=264yVeD8a3jGx9EaGUZVxFbSQ_pwQ_6ckVw9S8wiJ
|
|
|
192
192
|
pyobo/struct/obograph/utils.py,sha256=je0kSkC24MU9pWRHq1_K-J5jWhjWESY6NI3TpZqvZ_Q,1516
|
|
193
193
|
pyobo/struct/reference.py,sha256=qgwTa-0VIoDklQ7LjlYH-mf2WG0_uO7KlHt0PSBail4,11744
|
|
194
194
|
pyobo/struct/struct.py,sha256=-JaApTZ7e50bRJ2dXPdAVuJ0ElIVJIJ-HHRsVdaiMxM,96291
|
|
195
|
-
pyobo/struct/struct_utils.py,sha256=
|
|
196
|
-
pyobo/struct/typedef.py,sha256=
|
|
195
|
+
pyobo/struct/struct_utils.py,sha256=VFC82fgphTs7sBSNGn53sv2WMl7Ho9srALFq92bRFQQ,41021
|
|
196
|
+
pyobo/struct/typedef.py,sha256=LGDfJPAiTdp4PZPHUMgvhLsJrOZMIaGSBHA2oh8uCuU,14188
|
|
197
197
|
pyobo/struct/utils.py,sha256=zkpOE42JQIfkN0rc5qNENK03VIKmkf_57tHojMJK71Y,906
|
|
198
198
|
pyobo/struct/vocabulary.py,sha256=wY_wlV17NyoPQZMiCkf72GL4bIB9gwTHIoMlx7W8Cf4,5375
|
|
199
199
|
pyobo/utils/__init__.py,sha256=CANSY8vGq_6v8rWhWRIdnk-Wo5LA2R9Wjg1nqbWqLOw,17
|
|
@@ -203,9 +203,9 @@ pyobo/utils/iter.py,sha256=rYRbbaFJHxMaE0yU-rQZoCagYIrtev09uY0mxFkf5zY,1524
|
|
|
203
203
|
pyobo/utils/misc.py,sha256=499pencyDqW9_xm0H0Cq0FhOw0MoNoq-9IVQTKh-eaE,7992
|
|
204
204
|
pyobo/utils/ndex_utils.py,sha256=EokCWS00Wrk_4y8ldeQuUyaaC6yNzBg3DagUl-J2czY,2326
|
|
205
205
|
pyobo/utils/path.py,sha256=snV58UHxHO6GI2QPPE46ssR4RWozaw83V59sS_I9BY8,4109
|
|
206
|
-
pyobo/version.py,sha256
|
|
207
|
-
pyobo-0.12.
|
|
208
|
-
pyobo-0.12.
|
|
209
|
-
pyobo-0.12.
|
|
210
|
-
pyobo-0.12.
|
|
211
|
-
pyobo-0.12.
|
|
206
|
+
pyobo/version.py,sha256=-3azDhk7QGSEF_6hXZvXJhIqE9utObgNlX9avQrhAtI,927
|
|
207
|
+
pyobo-0.12.13.dist-info/licenses/LICENSE,sha256=QcgJZKGxlW5BwBNnCBL8VZLVtRvXs81Ch9lJRQSIpJg,1076
|
|
208
|
+
pyobo-0.12.13.dist-info/WHEEL,sha256=YUH1mBqsx8Dh2cQG2rlcuRYUhJddG9iClegy4IgnHik,79
|
|
209
|
+
pyobo-0.12.13.dist-info/entry_points.txt,sha256=ANgzvuwF_9_1ipCoxJtbBM6A4i2Mkt39gMPzQO6hvGs,42
|
|
210
|
+
pyobo-0.12.13.dist-info/METADATA,sha256=RiVfL9jxKk1n8rRSTO4BdCbWMLDZOJF_Qb_ZJU94u_s,22783
|
|
211
|
+
pyobo-0.12.13.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|