biocypher 0.10.0__py3-none-any.whl → 0.11.0__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.
Potentially problematic release.
This version of biocypher might be problematic. Click here for more details.
- biocypher/__init__.py +8 -0
- biocypher/_graph.py +819 -0
- biocypher/_metadata.py +21 -8
- biocypher/_workflow.py +798 -0
- biocypher/output/in_memory/_airr.py +10 -2
- {biocypher-0.10.0.dist-info → biocypher-0.11.0.dist-info}/METADATA +23 -25
- {biocypher-0.10.0.dist-info → biocypher-0.11.0.dist-info}/RECORD +15 -13
- {biocypher-0.10.0.dist-info → biocypher-0.11.0.dist-info}/WHEEL +1 -1
- {biocypher-0.10.0.dist-info → biocypher-0.11.0.dist-info/licenses}/LICENSE +0 -0
|
@@ -1,10 +1,15 @@
|
|
|
1
|
-
from
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING, Any, Optional
|
|
2
4
|
|
|
3
5
|
from biocypher._create import BioCypherEdge, BioCypherNode
|
|
4
6
|
from biocypher._deduplicate import Deduplicator
|
|
5
7
|
from biocypher._logger import logger
|
|
6
8
|
from biocypher.output.in_memory._in_memory_kg import _InMemoryKG
|
|
7
9
|
|
|
10
|
+
if TYPE_CHECKING:
|
|
11
|
+
from scirpy.io import AirrCell
|
|
12
|
+
|
|
8
13
|
try:
|
|
9
14
|
from scirpy.io import AirrCell
|
|
10
15
|
|
|
@@ -74,7 +79,7 @@ class AirrKG(_InMemoryKG):
|
|
|
74
79
|
if not HAS_SCIRPY:
|
|
75
80
|
msg = (
|
|
76
81
|
"AirrCell module from scirpy not detected. "
|
|
77
|
-
"Install it with '
|
|
82
|
+
"Install it with 'uv add biocypher[scirpy]' or 'uv add scirpy'."
|
|
78
83
|
)
|
|
79
84
|
raise ImportError(msg)
|
|
80
85
|
|
|
@@ -354,6 +359,7 @@ class AirrKG(_InMemoryKG):
|
|
|
354
359
|
list: List of generated AIRR cells
|
|
355
360
|
|
|
356
361
|
"""
|
|
362
|
+
self._check_dependencies()
|
|
357
363
|
if not entities:
|
|
358
364
|
msg = "No entities provided for conversion."
|
|
359
365
|
raise ValueError(msg)
|
|
@@ -419,6 +425,7 @@ class AirrKG(_InMemoryKG):
|
|
|
419
425
|
paired: bool,
|
|
420
426
|
receptor_epitope_mapping: dict[str, set] | None = None,
|
|
421
427
|
) -> list[AirrCell]:
|
|
428
|
+
self._check_dependencies()
|
|
422
429
|
cell = AirrCell(cell_id=cell_id)
|
|
423
430
|
|
|
424
431
|
# Process both chains
|
|
@@ -464,6 +471,7 @@ class AirrKG(_InMemoryKG):
|
|
|
464
471
|
List of cells with metadata added
|
|
465
472
|
|
|
466
473
|
"""
|
|
474
|
+
self._check_dependencies()
|
|
467
475
|
cells = []
|
|
468
476
|
if not metadata_nodes:
|
|
469
477
|
cell["data_source"] = "BioCypher"
|
|
@@ -1,12 +1,16 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: biocypher
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.11.0
|
|
4
4
|
Summary: A unifying framework for biomedical research knowledge graphs
|
|
5
|
-
|
|
5
|
+
Project-URL: Homepage, https://biocypher.org
|
|
6
|
+
Project-URL: Documentation, https://biocypher.org
|
|
7
|
+
Project-URL: Repository, https://github.com/biocypher/biocypher
|
|
8
|
+
Project-URL: Issues, https://github.com/biocypher/biocypher/issues
|
|
9
|
+
Project-URL: Bug Tracker, https://github.com/biocypher/biocypher/issues
|
|
10
|
+
Author-email: Sebastian Lobentanzer <sebastian.lobentanzer@gmail.com>, Denes Turei <turei.denes@gmail.com>
|
|
6
11
|
License: MIT
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
Requires-Python: >=3.10,<4.0
|
|
12
|
+
License-File: LICENSE
|
|
13
|
+
Keywords: bioinformatics,biomedical-data,graph-database,knowledge-graph
|
|
10
14
|
Classifier: Development Status :: 3 - Alpha
|
|
11
15
|
Classifier: Intended Audience :: Developers
|
|
12
16
|
Classifier: Intended Audience :: Science/Research
|
|
@@ -14,25 +18,20 @@ Classifier: License :: OSI Approved :: MIT License
|
|
|
14
18
|
Classifier: Natural Language :: English
|
|
15
19
|
Classifier: Operating System :: OS Independent
|
|
16
20
|
Classifier: Programming Language :: Python
|
|
17
|
-
Classifier: Programming Language :: Python :: 3
|
|
18
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
19
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
20
|
-
Classifier: Programming Language :: Python :: 3.12
|
|
21
21
|
Classifier: Topic :: Scientific/Engineering :: Bio-Informatics
|
|
22
|
-
|
|
23
|
-
Requires-Dist: PyYAML (>=5.0)
|
|
22
|
+
Requires-Python: >=3.10
|
|
24
23
|
Requires-Dist: appdirs
|
|
25
|
-
Requires-Dist:
|
|
26
|
-
Requires-Dist: neo4j-utils
|
|
27
|
-
Requires-Dist: networkx
|
|
28
|
-
Requires-Dist: pandas
|
|
29
|
-
Requires-Dist: pooch
|
|
30
|
-
Requires-Dist:
|
|
31
|
-
Requires-Dist:
|
|
32
|
-
Requires-Dist: tqdm
|
|
33
|
-
Requires-Dist: treelib
|
|
34
|
-
|
|
35
|
-
|
|
24
|
+
Requires-Dist: more-itertools
|
|
25
|
+
Requires-Dist: neo4j-utils==0.0.7
|
|
26
|
+
Requires-Dist: networkx>=3.0
|
|
27
|
+
Requires-Dist: pandas>=2.0.1
|
|
28
|
+
Requires-Dist: pooch>=1.7.0
|
|
29
|
+
Requires-Dist: pyyaml>=5.0
|
|
30
|
+
Requires-Dist: rdflib>=6.2.0
|
|
31
|
+
Requires-Dist: tqdm>=4.65.0
|
|
32
|
+
Requires-Dist: treelib==1.6.4
|
|
33
|
+
Provides-Extra: scirpy
|
|
34
|
+
Requires-Dist: scirpy>=0.22.0; extra == 'scirpy'
|
|
36
35
|
Description-Content-Type: text/markdown
|
|
37
36
|
|
|
38
37
|
# BioCypher
|
|
@@ -81,7 +80,7 @@ Board](https://github.com/orgs/biocypher/projects/3/views/2).
|
|
|
81
80
|
|
|
82
81
|
Install the package from PyPI using `pip install biocypher`. More comprehensive
|
|
83
82
|
installation and configuration instructions can be found
|
|
84
|
-
[here](https://biocypher.org/installation
|
|
83
|
+
[here](https://biocypher.org/BioCypher/installation/).
|
|
85
84
|
|
|
86
85
|
Exemplary usage of BioCypher to build a graph database is shown in our tutorial
|
|
87
86
|
and the various pipelines we have created. You can find these on the [Components
|
|
@@ -114,4 +113,3 @@ as a preprint at https://arxiv.org/abs/2212.13543.
|
|
|
114
113
|
This project has received funding from the European Union’s Horizon 2020
|
|
115
114
|
research and innovation programme under grant agreement No 965193 for DECIDER
|
|
116
115
|
and No 116030 for TransQST.
|
|
117
|
-
|
|
@@ -1,26 +1,28 @@
|
|
|
1
|
-
biocypher/__init__.py,sha256
|
|
2
|
-
biocypher/_config/__init__.py,sha256=ku86JZaRrzW5NEz5EXsCRktFwxS0Yo2dwX4UuazdfA4,3416
|
|
3
|
-
biocypher/_config/biocypher_config.yaml,sha256=nrlwSW7YP8qTZYm-HvWdTCZy81jnd2FkIGWH8Se2MzI,3651
|
|
4
|
-
biocypher/_config/test_config.yaml,sha256=Np8jeS5_EP6HHOvMKb7B_Tkyqd5YaYlYz_DVsXypt-A,119
|
|
5
|
-
biocypher/_config/test_schema_config.yaml,sha256=D1600WgEj3iTXrumVU9LIivJHJO36iaxfkOgyam9zVU,3129
|
|
6
|
-
biocypher/_config/test_schema_config_disconnected.yaml,sha256=Qm8FLxEn2spHcyj_5F859KjcDvKSxNhxDvi4b4LLkvQ,68
|
|
7
|
-
biocypher/_config/test_schema_config_extended.yaml,sha256=wn3A76142hhjnImhMF6RODbCFESTJ2TtPvcFdIFsAT0,3309
|
|
1
|
+
biocypher/__init__.py,sha256=MsH0rhfqWSPY0ZJN_-fptOFYN4LeG14Fp17XoqxeOJU,992
|
|
8
2
|
biocypher/_core.py,sha256=lP5CC35oXPtfiFY3C-UxZev8p1nMg9E2E4qN5BD9BTg,27437
|
|
9
3
|
biocypher/_create.py,sha256=QsvXrwEQ8k0uNXvCG06UKejvw-QsJwzSaumrBjx9n1k,9884
|
|
10
4
|
biocypher/_deduplicate.py,sha256=rtglcaLRaVzNjLtaPwTGP8VvCM4PHYQ5CZ-cm32CrKQ,4840
|
|
11
5
|
biocypher/_get.py,sha256=_wUjhRjH2J6Qhq0Ndy3kdfaWhHDTT-dxyCvtuH36My4,14868
|
|
6
|
+
biocypher/_graph.py,sha256=YVC8N4SJqKL12Tkv6lmWqED2jp-dr9B9QCXGd5N-Umc,26650
|
|
12
7
|
biocypher/_logger.py,sha256=y9dh3SPJOCWXnkFSYSK7aj_-pB7zlAkNCf43Dp1lt74,2941
|
|
13
8
|
biocypher/_mapping.py,sha256=ntspG2C_NaQODhWTBFk0CDvolkOCjtqlQ9E-NkJAuTg,9030
|
|
14
|
-
biocypher/_metadata.py,sha256=
|
|
9
|
+
biocypher/_metadata.py,sha256=AqFD2kPyn8_KRZTlBGer2Ue6tsd0u3VtOhQMC96Z3-k,2047
|
|
15
10
|
biocypher/_misc.py,sha256=YzlY7zwa0mim9QFg9HwXErkJFIH3cvLrbgjF8tKOIT8,6353
|
|
16
11
|
biocypher/_ontology.py,sha256=lipZxU3aj6zrTbBrJZmCW6IRCuz-KQG3AfbYCVq6aFE,33133
|
|
17
12
|
biocypher/_translate.py,sha256=NKSM9lxNjNNbgQrK_24eWYh3B41TS7kjnSwjySnK3s0,16851
|
|
13
|
+
biocypher/_workflow.py,sha256=av22D_gj9osOczGYP86-wrrjmjG6PvWC0df_920Ff5s,27603
|
|
14
|
+
biocypher/_config/__init__.py,sha256=ku86JZaRrzW5NEz5EXsCRktFwxS0Yo2dwX4UuazdfA4,3416
|
|
15
|
+
biocypher/_config/biocypher_config.yaml,sha256=nrlwSW7YP8qTZYm-HvWdTCZy81jnd2FkIGWH8Se2MzI,3651
|
|
16
|
+
biocypher/_config/test_config.yaml,sha256=Np8jeS5_EP6HHOvMKb7B_Tkyqd5YaYlYz_DVsXypt-A,119
|
|
17
|
+
biocypher/_config/test_schema_config.yaml,sha256=D1600WgEj3iTXrumVU9LIivJHJO36iaxfkOgyam9zVU,3129
|
|
18
|
+
biocypher/_config/test_schema_config_disconnected.yaml,sha256=Qm8FLxEn2spHcyj_5F859KjcDvKSxNhxDvi4b4LLkvQ,68
|
|
19
|
+
biocypher/_config/test_schema_config_extended.yaml,sha256=wn3A76142hhjnImhMF6RODbCFESTJ2TtPvcFdIFsAT0,3309
|
|
18
20
|
biocypher/output/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
19
21
|
biocypher/output/connect/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
20
22
|
biocypher/output/connect/_get_connector.py,sha256=Qimv3kTkXYkhJZRT6nq8mwIM2wORCnyqqHqF2IByuuc,1152
|
|
21
23
|
biocypher/output/connect/_neo4j_driver.py,sha256=kXjOXW12wZFfEp7plAuo40bPSvOfd-i9m4YaXoMq-p0,12357
|
|
22
24
|
biocypher/output/in_memory/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
23
|
-
biocypher/output/in_memory/_airr.py,sha256=
|
|
25
|
+
biocypher/output/in_memory/_airr.py,sha256=nd_muSyo3aC9rY90_SWZmjuQQuKxga-FllM7XwJe0JY,20663
|
|
24
26
|
biocypher/output/in_memory/_get_in_memory_kg.py,sha256=NQ-AT8jgAvb-aTK7zsYrItvlDEow_Mfni5tKEJjwjx0,1256
|
|
25
27
|
biocypher/output/in_memory/_in_memory_kg.py,sha256=BTBtqb2ZC_zxXdOJ59BQKUoGXZSpiaRG6VecjZGWCm0,3526
|
|
26
28
|
biocypher/output/in_memory/_networkx.py,sha256=cSOSAreP7S3oeGT6noZ1kAIvSnkVnU3NUp1OY4yqzn0,1515
|
|
@@ -40,7 +42,7 @@ biocypher/output/write/relational/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeR
|
|
|
40
42
|
biocypher/output/write/relational/_csv.py,sha256=m0BSQXts88Qu5AEvoIgnwRz54ia38g4VN3PaA3LCYM8,2807
|
|
41
43
|
biocypher/output/write/relational/_postgresql.py,sha256=75iJvv-0ewSsQXhVeoYoGnmYQnKY_B4iItZV7DpEBto,12190
|
|
42
44
|
biocypher/output/write/relational/_sqlite.py,sha256=BuGWOeeNA83lbUvjpkzqcR9_baWLsbfmLXBKe4O1EPE,2105
|
|
43
|
-
biocypher-0.
|
|
44
|
-
biocypher-0.
|
|
45
|
-
biocypher-0.
|
|
46
|
-
biocypher-0.
|
|
45
|
+
biocypher-0.11.0.dist-info/METADATA,sha256=_zMd2fQMKTEZsePK-Y-AkApV43-ebtJ5Xx30XbNAKEo,10673
|
|
46
|
+
biocypher-0.11.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
47
|
+
biocypher-0.11.0.dist-info/licenses/LICENSE,sha256=oejgxuxyjSnyPw3YPloz6-dCBB_nYizJ4jDQnr-xZUU,1082
|
|
48
|
+
biocypher-0.11.0.dist-info/RECORD,,
|
|
File without changes
|