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 CHANGED
@@ -40,7 +40,7 @@ Modules & settings:
40
40
 
41
41
  """
42
42
 
43
- __version__ = "0.69.6" # denote a release candidate for 0.1.0 with 0.1rc1
43
+ __version__ = "0.69.7" # denote a release candidate for 0.1.0 with 0.1rc1
44
44
 
45
45
  import os as _os
46
46
 
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
- "Save the notebook, pass `i_saved_the_notebook=True`, and re-run this cell."
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 currently only works for collections of `AnnData` objects.
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
- For an example, see :meth:`~lamindb.Collection.mapped`.
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
- A similar data loader exists `here
55
- <https://github.com/Genentech/scimilarity>`__.
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 `h5ad` or `zrad` formats.
59
- label_keys: Columns of the ``.obs`` slot - the names of the metadata
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.6
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.11.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=VcBG2i-qatWgu0eGNmmXfcGz5YInNKYXovMB80wzqq0,2163
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=8lfJzRedTDCA_XXBUf4ECOevpPhVxKqMMj9qgVkmF8M,8672
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=e4P3AoykIMjD4_88BWbISWvKyWWTklwHl-_WLa72ZG4,16841
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.6.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
52
- lamindb-0.69.6.dist-info/WHEEL,sha256=EZbGkh7Ie4PoZfRQ8I0ZuP9VklN_TvcZ6DSE5Uar4z4,81
53
- lamindb-0.69.6.dist-info/METADATA,sha256=eH8bPo_rAfxl_e3fChr1gwMFLkt5-TqWELqNnuIFJp8,2856
54
- lamindb-0.69.6.dist-info/RECORD,,
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,,