metahq-core 0.1.2__py3-none-any.whl → 1.0.0rc1__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.
- metahq_core/__init__.py +1 -1
- metahq_core/curations/annotation_converter.py +5 -5
- metahq_core/curations/annotations.py +361 -151
- metahq_core/curations/index.py +104 -43
- metahq_core/curations/labels.py +259 -128
- metahq_core/curations/propagator.py +62 -85
- metahq_core/export/__init__.py +0 -0
- metahq_core/export/annotations.py +125 -59
- metahq_core/export/labels.py +128 -70
- metahq_core/logger.py +11 -18
- metahq_core/query.py +346 -241
- metahq_core/{ontology/loader.py → relations_loader.py} +2 -1
- metahq_core/search.py +37 -14
- metahq_core/util/io.py +109 -46
- metahq_core/util/supported.py +16 -5
- {metahq_core-0.1.2.dist-info → metahq_core-1.0.0rc1.dist-info}/METADATA +13 -6
- metahq_core-1.0.0rc1.dist-info/RECORD +30 -0
- {metahq_core-0.1.2.dist-info → metahq_core-1.0.0rc1.dist-info}/WHEEL +1 -1
- metahq_core-1.0.0rc1.dist-info/licenses/LICENSE +28 -0
- metahq_core/ontology/base.py +0 -376
- metahq_core/ontology/graph.py +0 -252
- metahq_core-0.1.2.dist-info/RECORD +0 -30
- /metahq_core/{ontology → curations}/__init__.py +0 -0
metahq_core/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "0.1
|
|
1
|
+
__version__ = "1.0.0-rc.1"
|
|
@@ -17,10 +17,10 @@ import polars as pl
|
|
|
17
17
|
from metahq_core.curations.labels import Labels
|
|
18
18
|
from metahq_core.curations.propagator import Propagator, propagate_controls
|
|
19
19
|
from metahq_core.logger import setup_logger
|
|
20
|
-
from metahq_core.
|
|
20
|
+
from metahq_core.relations_loader import RelationsLoader
|
|
21
21
|
from metahq_core.util.helpers import merge_list_values
|
|
22
22
|
from metahq_core.util.progress import progress_wrapper
|
|
23
|
-
from metahq_core.util.supported import get_ontology_families
|
|
23
|
+
from metahq_core.util.supported import get_default_log_dir, get_ontology_families
|
|
24
24
|
|
|
25
25
|
if TYPE_CHECKING:
|
|
26
26
|
import logging
|
|
@@ -69,7 +69,7 @@ class AnnotationsConverter:
|
|
|
69
69
|
control_col="MONDO:0000000",
|
|
70
70
|
logger=None,
|
|
71
71
|
loglevel=20,
|
|
72
|
-
logdir=
|
|
72
|
+
logdir=get_default_log_dir(),
|
|
73
73
|
verbose=False,
|
|
74
74
|
):
|
|
75
75
|
self.anno: Annotations = anno
|
|
@@ -276,8 +276,8 @@ class AnnotationsConverter:
|
|
|
276
276
|
relatives=["ancestors", "descendants"],
|
|
277
277
|
verbose=self.verbose,
|
|
278
278
|
)
|
|
279
|
-
up_mat, cols, up_ids = propagator.propagate_up(
|
|
280
|
-
down_mat, _, _ = propagator.propagate_down(
|
|
279
|
+
up_mat, cols, up_ids = propagator.propagate_up()
|
|
280
|
+
down_mat, _, _ = propagator.propagate_down()
|
|
281
281
|
|
|
282
282
|
neg_mask = (up_mat == 0) & (down_mat == 0)
|
|
283
283
|
up_mat[neg_mask] = -1
|