biocypher 0.10.0__py3-none-any.whl → 0.10.1__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/_metadata.py CHANGED
@@ -10,7 +10,7 @@ import pathlib
10
10
 
11
11
  import toml
12
12
 
13
- _VERSION = "0.10.0"
13
+ _VERSION = "0.10.1"
14
14
 
15
15
 
16
16
  def get_metadata():
@@ -1,10 +1,15 @@
1
- from typing import Any, Optional
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
 
@@ -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,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: biocypher
3
- Version: 0.10.0
3
+ Version: 0.10.1
4
4
  Summary: A unifying framework for biomedical research knowledge graphs
5
5
  Home-page: https://github.com/biocypher/biocypher
6
6
  License: MIT
@@ -81,7 +81,7 @@ Board](https://github.com/orgs/biocypher/projects/3/views/2).
81
81
 
82
82
  Install the package from PyPI using `pip install biocypher`. More comprehensive
83
83
  installation and configuration instructions can be found
84
- [here](https://biocypher.org/installation.html).
84
+ [here](https://biocypher.org/BioCypher/installation/).
85
85
 
86
86
  Exemplary usage of BioCypher to build a graph database is shown in our tutorial
87
87
  and the various pipelines we have created. You can find these on the [Components
@@ -11,7 +11,7 @@ biocypher/_deduplicate.py,sha256=rtglcaLRaVzNjLtaPwTGP8VvCM4PHYQ5CZ-cm32CrKQ,484
11
11
  biocypher/_get.py,sha256=_wUjhRjH2J6Qhq0Ndy3kdfaWhHDTT-dxyCvtuH36My4,14868
12
12
  biocypher/_logger.py,sha256=y9dh3SPJOCWXnkFSYSK7aj_-pB7zlAkNCf43Dp1lt74,2941
13
13
  biocypher/_mapping.py,sha256=ntspG2C_NaQODhWTBFk0CDvolkOCjtqlQ9E-NkJAuTg,9030
14
- biocypher/_metadata.py,sha256=m8xeGsUl8MT9Tdlh_KKcPCa8Pf8Tn84yUlsWkJoxi2M,1416
14
+ biocypher/_metadata.py,sha256=dz_VeWCq0wx6Cr1hCzscvEVPLSRY1F8Tecu2saeAhkg,1416
15
15
  biocypher/_misc.py,sha256=YzlY7zwa0mim9QFg9HwXErkJFIH3cvLrbgjF8tKOIT8,6353
16
16
  biocypher/_ontology.py,sha256=lipZxU3aj6zrTbBrJZmCW6IRCuz-KQG3AfbYCVq6aFE,33133
17
17
  biocypher/_translate.py,sha256=NKSM9lxNjNNbgQrK_24eWYh3B41TS7kjnSwjySnK3s0,16851
@@ -20,7 +20,7 @@ biocypher/output/connect/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZ
20
20
  biocypher/output/connect/_get_connector.py,sha256=Qimv3kTkXYkhJZRT6nq8mwIM2wORCnyqqHqF2IByuuc,1152
21
21
  biocypher/output/connect/_neo4j_driver.py,sha256=kXjOXW12wZFfEp7plAuo40bPSvOfd-i9m4YaXoMq-p0,12357
22
22
  biocypher/output/in_memory/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
23
- biocypher/output/in_memory/_airr.py,sha256=tOYww8eHaH4EOElRKFxwShlVW83tXx4xbv7ZfrInphg,20461
23
+ biocypher/output/in_memory/_airr.py,sha256=wOYg2x1WCs7DTImtdxNyyoCmjDUVg1Ovh29kzMOQ688,20671
24
24
  biocypher/output/in_memory/_get_in_memory_kg.py,sha256=NQ-AT8jgAvb-aTK7zsYrItvlDEow_Mfni5tKEJjwjx0,1256
25
25
  biocypher/output/in_memory/_in_memory_kg.py,sha256=BTBtqb2ZC_zxXdOJ59BQKUoGXZSpiaRG6VecjZGWCm0,3526
26
26
  biocypher/output/in_memory/_networkx.py,sha256=cSOSAreP7S3oeGT6noZ1kAIvSnkVnU3NUp1OY4yqzn0,1515
@@ -40,7 +40,7 @@ biocypher/output/write/relational/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeR
40
40
  biocypher/output/write/relational/_csv.py,sha256=m0BSQXts88Qu5AEvoIgnwRz54ia38g4VN3PaA3LCYM8,2807
41
41
  biocypher/output/write/relational/_postgresql.py,sha256=75iJvv-0ewSsQXhVeoYoGnmYQnKY_B4iItZV7DpEBto,12190
42
42
  biocypher/output/write/relational/_sqlite.py,sha256=BuGWOeeNA83lbUvjpkzqcR9_baWLsbfmLXBKe4O1EPE,2105
43
- biocypher-0.10.0.dist-info/LICENSE,sha256=oejgxuxyjSnyPw3YPloz6-dCBB_nYizJ4jDQnr-xZUU,1082
44
- biocypher-0.10.0.dist-info/METADATA,sha256=TAd1YjHL94Sdp0_aW0ag7Qkbr5cJOCm7zvc6DqvG_ko,10706
45
- biocypher-0.10.0.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
46
- biocypher-0.10.0.dist-info/RECORD,,
43
+ biocypher-0.10.1.dist-info/LICENSE,sha256=oejgxuxyjSnyPw3YPloz6-dCBB_nYizJ4jDQnr-xZUU,1082
44
+ biocypher-0.10.1.dist-info/METADATA,sha256=Pxq7NgLmZcVn5zrge_QpB0xozDZWrtghWm2RMuOWZGU,10712
45
+ biocypher-0.10.1.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
46
+ biocypher-0.10.1.dist-info/RECORD,,