lamindb 0.69.6__py3-none-any.whl → 0.69.7__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.
- lamindb/__init__.py +1 -1
- lamindb/_finish.py +1 -1
- lamindb/core/_mapped_collection.py +16 -7
- {lamindb-0.69.6.dist-info → lamindb-0.69.7.dist-info}/METADATA +3 -2
- {lamindb-0.69.6.dist-info → lamindb-0.69.7.dist-info}/RECORD +7 -7
- {lamindb-0.69.6.dist-info → lamindb-0.69.7.dist-info}/LICENSE +0 -0
- {lamindb-0.69.6.dist-info → lamindb-0.69.7.dist-info}/WHEEL +0 -0
lamindb/__init__.py
CHANGED
lamindb/_finish.py
CHANGED
@@ -34,7 +34,7 @@ def finish(i_saved_the_notebook: bool = False):
|
|
34
34
|
|
35
35
|
if not i_saved_the_notebook and not ln_setup._TESTING:
|
36
36
|
logger.error(
|
37
|
-
"
|
37
|
+
"Please save the notebook, pass `i_saved_the_notebook=True`, and re-run this cell."
|
38
38
|
)
|
39
39
|
return None
|
40
40
|
notebook_content = read_notebook(run_context.path) # type: ignore
|
@@ -45,19 +45,28 @@ class _Connect:
|
|
45
45
|
class MappedCollection:
|
46
46
|
"""Map-style collection for use in data loaders.
|
47
47
|
|
48
|
-
This
|
48
|
+
This class virtually concatenates `AnnData` arrays as a `pytorch map-style dataset
|
49
|
+
<https://pytorch.org/docs/stable/data.html#map-style-datasets>`__.
|
49
50
|
|
50
|
-
|
51
|
+
If your `AnnData` collection is in the cloud, move them into a local cache
|
52
|
+
first for faster access.
|
51
53
|
|
52
54
|
.. note::
|
53
55
|
|
54
|
-
|
55
|
-
|
56
|
+
For a guide, see :doc:`docs:scrna5`.
|
57
|
+
|
58
|
+
For more convenient use within :class:`~lamindb.core.MappedCollection`,
|
59
|
+
see :meth:`~lamindb.Collection.mapped`.
|
60
|
+
|
61
|
+
This currently only works for collections of `AnnData` objects.
|
62
|
+
|
63
|
+
The implementation was influenced by the `SCimilarity
|
64
|
+
<https://github.com/Genentech/scimilarity>`__ data loader.
|
65
|
+
|
56
66
|
|
57
67
|
Args:
|
58
|
-
path_list: A list of paths to `AnnData` objects stored in
|
59
|
-
label_keys: Columns of the ``.obs`` slot
|
60
|
-
features storing labels.
|
68
|
+
path_list: A list of paths to `AnnData` objects stored in `.h5ad` or `.zarr` formats.
|
69
|
+
label_keys: Columns of the ``.obs`` slot that store labels.
|
61
70
|
join: `"inner"` or `"outer"` virtual joins. If ``None`` is passed,
|
62
71
|
does not join.
|
63
72
|
encode_labels: Encode labels into integers.
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: lamindb
|
3
|
-
Version: 0.69.
|
3
|
+
Version: 0.69.7
|
4
4
|
Summary: A data framework for biology.
|
5
5
|
Author-email: Lamin Labs <open-source@lamin.ai>
|
6
6
|
Requires-Python: >=3.8
|
@@ -12,12 +12,13 @@ Classifier: Programming Language :: Python :: 3.11
|
|
12
12
|
Requires-Dist: lnschema_core==0.64.4
|
13
13
|
Requires-Dist: lamindb_setup==0.68.4
|
14
14
|
Requires-Dist: lamin_utils==0.13.1
|
15
|
-
Requires-Dist: lamin_cli==0.
|
15
|
+
Requires-Dist: lamin_cli==0.12.0
|
16
16
|
Requires-Dist: rapidfuzz
|
17
17
|
Requires-Dist: pyarrow
|
18
18
|
Requires-Dist: typing_extensions!=4.6.0
|
19
19
|
Requires-Dist: python-dateutil
|
20
20
|
Requires-Dist: anndata>=0.8.0,<0.10.6
|
21
|
+
Requires-Dist: scipy<1.13.0rc1
|
21
22
|
Requires-Dist: fsspec
|
22
23
|
Requires-Dist: pandas
|
23
24
|
Requires-Dist: graphviz
|
@@ -1,4 +1,4 @@
|
|
1
|
-
lamindb/__init__.py,sha256=
|
1
|
+
lamindb/__init__.py,sha256=areEfsBBfhAkUcjShkBTCquB5iBRUmTwb_Ycmz4E3tk,2163
|
2
2
|
lamindb/_annotate.py,sha256=mM-GCej7i9eUH0cU5AcxWZ916k8NRI41WF84dfjJfu4,29955
|
3
3
|
lamindb/_artifact.py,sha256=RV36tcHMZ6wH6u65jOAQ_H4rfmFiIzZmAr8IY7kFhm0,35817
|
4
4
|
lamindb/_can_validate.py,sha256=w7lrUGTWldpvwaRiXBRrjfU_ZRidA7CooOu_r5MbocY,14569
|
@@ -6,7 +6,7 @@ lamindb/_collection.py,sha256=SdNNhhMh2O4q0hG4Hf_y1bcwcbkMF_sqk6MIYc-hLZo,14525
|
|
6
6
|
lamindb/_feature.py,sha256=ahRv87q1tcRLQ0UM5FA3KtcMQvIjW__fZq1yAdRAV7s,6728
|
7
7
|
lamindb/_feature_set.py,sha256=G_Ss6mKh4D0Eji-xSfLRbKVFXwgUE82YOqIUmkV0CAA,8767
|
8
8
|
lamindb/_filter.py,sha256=_PjyQWQBR3ohDAvJbR3hMvZ-2p2GvzFxLfKGC-gPnHI,1320
|
9
|
-
lamindb/_finish.py,sha256=
|
9
|
+
lamindb/_finish.py,sha256=XXJb44gKuj-9trEqjgAa_wm2FvuTr0uveWwFbY0ywl0,8679
|
10
10
|
lamindb/_from_values.py,sha256=Ei11ml77Q1xubVekt2C4-mbox2-qnC7kP18B-LhCdSc,11886
|
11
11
|
lamindb/_is_versioned.py,sha256=DXp5t-1DwErpqqMc9eb08kpQPCHOC2fNzaozMoBunR4,1337
|
12
12
|
lamindb/_parents.py,sha256=pTDsW8HjQ_txFbPKrBU0WjjtCNH6sx2LASUuGWpJuYE,14742
|
@@ -24,7 +24,7 @@ lamindb/core/__init__.py,sha256=Mw4sI-xgnMXNsu84oYFQBZOF8mxxxhp6-e3BjTQqjlA,1131
|
|
24
24
|
lamindb/core/_data.py,sha256=SCyUjS9bL7MMqyZTJl8PxnNtLKL7eNiUcLvmwFrqP-k,17260
|
25
25
|
lamindb/core/_feature_manager.py,sha256=_Bicjal2DQbpl6tR7p5o7Alb9rq0XYzAxrF_bV9sTjE,13894
|
26
26
|
lamindb/core/_label_manager.py,sha256=zrWDSd2AkR6fKsGDxLSWqHC9fz9BcGlavPZEh92Wzjg,9063
|
27
|
-
lamindb/core/_mapped_collection.py,sha256=
|
27
|
+
lamindb/core/_mapped_collection.py,sha256=8meS0hiXa3CKmg7TG2Lej6pcI4YQXHMJyDQMxOBqm_E,17215
|
28
28
|
lamindb/core/_run_context.py,sha256=EK0lFJWx32NY2FdqFR1YozR9zioC-BjA394nPu-KwLQ,17510
|
29
29
|
lamindb/core/_settings.py,sha256=kHL5e20dWKSbf7mJOAddvS7SQBrr1D0ZTeG_5sj5RpY,5735
|
30
30
|
lamindb/core/_sync_git.py,sha256=Bn_ofx2ynaw6etmskgEUNW8n7LDJs-7r2aB41BgCvdA,3928
|
@@ -48,7 +48,7 @@ lamindb/integrations/__init__.py,sha256=aH2PmO2m4-vwIifMYTB0Fyyr_gZWtVnV71jT0tVW
|
|
48
48
|
lamindb/integrations/_vitessce.py,sha256=n85g8YRP8Y2sfU5DPJdbU84BGPrTfU3Dg2jStdmBBRI,1637
|
49
49
|
lamindb/setup/__init__.py,sha256=OwZpZzPDv5lPPGXZP7-zK6UdO4FHvvuBh439yZvIp3A,410
|
50
50
|
lamindb/setup/core/__init__.py,sha256=LqIIvJNcONxkqjbnP6CUaP4d45Lbd6TSMAcXFp4C7_8,231
|
51
|
-
lamindb-0.69.
|
52
|
-
lamindb-0.69.
|
53
|
-
lamindb-0.69.
|
54
|
-
lamindb-0.69.
|
51
|
+
lamindb-0.69.7.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
52
|
+
lamindb-0.69.7.dist-info/WHEEL,sha256=EZbGkh7Ie4PoZfRQ8I0ZuP9VklN_TvcZ6DSE5Uar4z4,81
|
53
|
+
lamindb-0.69.7.dist-info/METADATA,sha256=35W5tzc2RHeY7REqSwzIgC1B2EqoAUncIVlg2rHVhsA,2887
|
54
|
+
lamindb-0.69.7.dist-info/RECORD,,
|
File without changes
|
File without changes
|