Skip to content

Commit e2e2255

Browse files
authored
πŸ”– Relase db 1.2.0 (#216)
* πŸ”– Relase db 1.2.0 * πŸ’š Fix build * ♻️ Fix references
1 parent a16be9f commit e2e2255

7 files changed

+28
-37
lines changed

β€Ždocs/arc-virtual-cell-atlas.ipynb

+1-2
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,6 @@
244244
"metadata": {},
245245
"outputs": [],
246246
"source": [
247-
"cell_lines = bt.CellLine.lookup()\n",
248247
"drugs = wl.Compound.lookup()\n",
249248
"\n",
250249
"artifacts_a549_piroxicam = collection.artifacts.filter(\n",
@@ -324,7 +323,7 @@
324323
"metadata": {},
325324
"outputs": [],
326325
"source": [
327-
"filter_expr = (pc.field(\"cell_name\") == cell_lines.a549.name) & (\n",
326+
"filter_expr = (pc.field(\"cell_name\") == \"A549\") & (\n",
328327
" pc.field(\"drug\") == drugs.piroxicam.name\n",
329328
")\n",
330329
"df = dataset.scanner(filter=filter_expr).to_table().to_pandas()\n",

β€Ždocs/changelog/2025.md

+15
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,21 @@
1414
.. role:: small
1515
```
1616

17+
## 2025-03-09 {small}`db 1.2.0`
18+
19+
- ✨ Introduce `Artifact.from_spatialdata()` and re-factor validation of `spatialdata` stores [PR](https://github.com/laminlabs/lamindb/pull/2461) [@Zethson](https://github.com/Zethson)
20+
- ✨ Enable `ln.track(project="My project")` to auto-link entities to projects [PR](https://github.com/laminlabs/lamindb/pull/2529) [@falexwolf](https://github.com/falexwolf)
21+
- ✨ Add `.load()` for artifacts holding `SpatialData` objects [PR](https://github.com/laminlabs/lamindb/pull/2532) [@Zethson](https://github.com/Zethson)
22+
- 🎨 When re-creating an `Artifact`, link subsequent runs instead of updating `.run` and linking previous runs [PR](https://github.com/laminlabs/lamindb/pull/2515) [@falexwolf](https://github.com/falexwolf)
23+
- 🚸 Introduce `.slots` in `Schema`, `Curator`, and `FeatureManager` to access schemas and curators by dataset slot [PR](https://github.com/laminlabs/lamindb/pull/2530) [@sunnyosun](https://github.com/sunnyosun)
24+
- πŸ—οΈ Re-structure internal API away from monkey-patching Django models [PR](https://github.com/laminlabs/lamindb/pull/2516) [@falexwolf](https://github.com/falexwolf)
25+
- πŸ› Fix passing a path manually when no path found by `nbproject` [PR](https://github.com/laminlabs/lamindb/pull/2537) [@Koncopd](https://github.com/Koncopd)
26+
- 🩹 Do not overwrite `._state_db` of models when the current instance is passed to `.using` [PR](https://github.com/laminlabs/lamindb/pull/2534) [@Koncopd](https://github.com/Koncopd)
27+
- πŸ”Š Do not show track warning for read-only connections [PR](https://github.com/laminlabs/lamindb/pull/2527) [@Koncopd](https://github.com/Koncopd)
28+
- 🚸 Raise `NotImplementedError` in `Artifact.load()` if there is no loader [PR](https://github.com/laminlabs/lamindb/pull/2514) [@Koncopd](https://github.com/Koncopd)
29+
- ✨ Support R2 [PR](https://github.com/laminlabs/lamindb-setup/pull/979) [@Koncopd](https://github.com/Koncopd)
30+
- ✨ Allow to use `Artifact.open()` and `Artifact.load()` for `.gz` files [PR](https://github.com/laminlabs/lamindb/pull/2506) [@Koncopd](https://github.com/Koncopd)
31+
1732
## 2025-02-27 {small}`db 1.1.1`
1833

1934
- 🚸 Make the `obs` and `var` `DataFrameCurator` objects accessible via `AnnDataCurator.slots` [PR](https://github.com/laminlabs/lamindb/pull/2505) [@sunnyosun](https://github.com/sunnyosun)

β€Ždocs/changelog/soon/lamindb.md

-23
Original file line numberDiff line numberDiff line change
@@ -1,23 +0,0 @@
1-
- 🚸 Do not evaluate filter on feature annotations in `.df(features=True`) [PR](https://github.com/laminlabs/lamindb/pull/2542) [@falexwolf](https://github.com/falexwolf)
2-
- ⬆️ Upgrade nbproject [PR](https://github.com/laminlabs/lamindb/pull/2541) [@Koncopd](https://github.com/Koncopd)
3-
- πŸ› Fix passing a path manually when no path found by `nbproject` [PR](https://github.com/laminlabs/lamindb/pull/2537) [@Koncopd](https://github.com/Koncopd)
4-
- ✨ Add `.load()` for artifacts holding `SpatialData` objects [PR](https://github.com/laminlabs/lamindb/pull/2532) [@Zethson](https://github.com/Zethson)
5-
- 🩹 Do not overwrite `._state_db` of models when the current instance is passed to `.using` [PR](https://github.com/laminlabs/lamindb/pull/2534) [@Koncopd](https://github.com/Koncopd)
6-
- ✨ Read fine_grained_access column from the instances table [PR](https://github.com/laminlabs/lamindb-setup/pull/983) [@Koncopd](https://github.com/Koncopd)
7-
- 🚸 Introduce `.slots` in `Schema`, `Curator`, and `FeatureManager` to access schemas and curators by dataset slot [PR](https://github.com/laminlabs/lamindb/pull/2530) [@sunnyosun](https://github.com/sunnyosun)
8-
- ⬆️ Bump django to >= 5.1 [PR](https://github.com/laminlabs/lamindb-setup/pull/982) [@Koncopd](https://github.com/Koncopd)
9-
- ✨ Enable `ln.track(project="My project")` to auto-link entities to projects [PR](https://github.com/laminlabs/lamindb/pull/2529) [@falexwolf](https://github.com/falexwolf)
10-
- πŸ’š Fix CI [PR](https://github.com/laminlabs/lamindb-setup/pull/981) [@Koncopd](https://github.com/Koncopd)
11-
- ⬆️ Upgrade Bionty [PR](https://github.com/laminlabs/lamindb/pull/2518) [@Zethson](https://github.com/Zethson)
12-
- ♻️ Refactor internals of legacy feature logic in `Collection` [PR](https://github.com/laminlabs/lamindb/pull/2528) [@falexwolf](https://github.com/falexwolf)
13-
- 🚸 Ignore Dask legacy DataFrame warning [PR](https://github.com/laminlabs/lamindb/pull/2525) [@Zethson](https://github.com/Zethson)
14-
- πŸ”Š Do not show track warning for read-only connections [PR](https://github.com/laminlabs/lamindb/pull/2527) [@Koncopd](https://github.com/Koncopd)
15-
- ♻️ Re-export link models [PR](https://github.com/laminlabs/lamindb/pull/2523) [@falexwolf](https://github.com/falexwolf)
16-
- βœ… Test fine-grained permissions [PR](https://github.com/laminlabs/lamindb/pull/2512) [@Koncopd](https://github.com/Koncopd)
17-
- πŸ—οΈ Re-structure internal API away from monkey-patching Django models [PR](https://github.com/laminlabs/lamindb/pull/2516) [@falexwolf](https://github.com/falexwolf)
18-
- ✨ Prepare for permission management [PR](https://github.com/laminlabs/lamindb-setup/pull/974) [@Koncopd](https://github.com/Koncopd)
19-
- ✨ Introduce `Artifact.from_spatialdata()` and re-factor validation of `spatialdata` stores [PR](https://github.com/laminlabs/lamindb/pull/2461) [@Zethson](https://github.com/Zethson)
20-
- 🎨 When re-creating an `Artifact`, link subsequent runs instead of updating `.run` and linking previous runs [PR](https://github.com/laminlabs/lamindb/pull/2515) [@falexwolf](https://github.com/falexwolf)
21-
- 🚸 Raise `NotImplementedError` in `Artifact.load()` if there is no loader [PR](https://github.com/laminlabs/lamindb/pull/2514) [@Koncopd](https://github.com/Koncopd)
22-
- ✨ Support R2 [PR](https://github.com/laminlabs/lamindb-setup/pull/979) [@Koncopd](https://github.com/Koncopd)
23-
- ✨ Allow to use `Artifact.open()` and `Artifact.load()` for `.gz` files [PR](https://github.com/laminlabs/lamindb/pull/2506) [@Koncopd](https://github.com/Koncopd)

β€Ždocs/glossary.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ observation
3030
record
3131
A record is a data structure that consists in a sequence of typed [fields](https://en.wikipedia.org/wiki/Field_(computer_science)) that hold values [[Wikipedia](https://en.wikipedia.org/wiki/Record_(computer_science))].
3232
33-
In LaminDB, a metadata record is modeled as a {class}`~lamindb.core.Record`.
33+
In LaminDB, a metadata record is modeled as a {class}`~lamindb.models.Record`.
3434
3535
sample
3636
In biology, a sample is an instance or part of a biological system.

β€Ždocs/includes/features-lamindb.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ The following detailed specs are for the Python package `lamindb`. For the analo
44

55
**Manage data & metadata with a unified API (β€œlakehouse”).**
66

7-
- Query & search across data & metadata: {class}`~lamindb.core.Record.filter`, {class}`~lamindb.core.Record.search`
8-
- Model entities as an {term}`ORM` which their own registry: {class}`~lamindb.core.Record`
7+
- Query & search across data & metadata: {class}`~lamindb.models.Record.filter`, {class}`~lamindb.models.Record.search`
8+
- Model entities as an {term}`ORM` which their own registry: {class}`~lamindb.models.Record`
99
- Model files and folders as datasets & models via one class: {class}`~lamindb.Artifact`
1010
- Slice large array stores: {class}`~lamindb.Artifact.open` β†’ [guide](cellxgene)
1111
- Cache & load artifacts: {class}`~lamindb.Artifact.cache`, {class}`~lamindb.Artifact.load`
@@ -32,9 +32,9 @@ The following detailed specs are for the Python package `lamindb`. For the analo
3232

3333
**Validate, standardize & annotate.**
3434

35-
- Validate & standardize metadata: {class}`~lamindb.core.CanCurate.validate`, {class}`~lamindb.core.CanCurate.standardize`.
35+
- Validate & standardize metadata: {class}`~lamindb.models.CanCurate.validate`, {class}`~lamindb.models.CanCurate.standardize`.
3636
- High-level curation flow including annotation: {class}`~lamindb.Curator`
37-
- Inspect validation failures: {class}`~lamindb.core.CanCurate.inspect`
37+
- Inspect validation failures: {class}`~lamindb.models.CanCurate.inspect`
3838

3939
**Organize and share data across a mesh of LaminDB instances.**
4040

β€Ždocs/introduction.ipynb

+4-4
Original file line numberDiff line numberDiff line change
@@ -524,9 +524,9 @@
524524
"cell_type": "markdown",
525525
"metadata": {},
526526
"source": [
527-
"LaminDB's central classes are registries that store records ({class}`~lamindb.core.Record` objects).\n",
527+
"LaminDB's central classes are registries that store records ({class}`~lamindb.models.Record` objects).\n",
528528
"\n",
529-
"The easiest way to see the latest records for a registry is to call the _class method_ {class}`~lamindb.core.Record.df`."
529+
"The easiest way to see the latest records for a registry is to call the _class method_ {class}`~lamindb.models.Record.df`."
530530
]
531531
},
532532
{
@@ -568,7 +568,7 @@
568568
"source": [
569569
"### Query & search\n",
570570
"\n",
571-
"You can write arbitrary relational queries using the class methods {class}`~lamindb.core.Record.get` and {class}`~lamindb.core.Record.filter`.\n",
571+
"You can write arbitrary relational queries using the class methods {class}`~lamindb.models.Record.get` and {class}`~lamindb.models.Record.filter`.\n",
572572
"The syntax for it is Django's query syntax."
573573
]
574574
},
@@ -597,7 +597,7 @@
597597
"cell_type": "markdown",
598598
"metadata": {},
599599
"source": [
600-
"The class methods {class}`~lamindb.core.Record.search` and {class}`~lamindb.core.Record.lookup` help with approximate matches."
600+
"The class methods {class}`~lamindb.models.Record.search` and {class}`~lamindb.models.Record.lookup` help with approximate matches."
601601
]
602602
},
603603
{

β€Ždocs/tutorial.ipynb

+3-3
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@
314314
"cell_type": "markdown",
315315
"metadata": {},
316316
"source": [
317-
"We can get an overview of all artifacts in the database by calling {meth}`~lamindb.core.Record.df`:"
317+
"We can get an overview of all artifacts in the database by calling {meth}`~lamindb.models.Record.df`:"
318318
]
319319
},
320320
{
@@ -606,9 +606,9 @@
606606
"source": [
607607
"```{note}\n",
608608
"\n",
609-
"You can look up, filter & search any registry ({class}`~lamindb.core.Record`).\n",
609+
"You can look up, filter & search any registry ({class}`~lamindb.models.Record`).\n",
610610
"\n",
611-
"You can chain {meth}`~lamindb.core.Record.filter` statements and {meth}`~lamindb.core.QuerySet.search`: `ln.Artifact.filter(suffix=\".jpg\").search(\"my image\")`\n",
611+
"You can chain {meth}`~lamindb.models.Record.filter` statements and {meth}`~lamindb.core.QuerySet.search`: `ln.Artifact.filter(suffix=\".jpg\").search(\"my image\")`\n",
612612
"\n",
613613
"An empty filter returns the entire registry: `ln.Artifact.filter()`\n",
614614
"```"

0 commit comments

Comments
Β (0)