Standardize metadata on-the-flyยถ
This use cases runs on a LaminDB instance with populated CellType
and Pathway
registries. Make sure you run the GO Ontology notebook before executing this use case.
Here, we demonstrate how to standardize the metadata on-the-fly during cell type annotation and pathway enrichment analysis using these two registries.
For more information, see:
!lamin load use-cases-registries
๐ก connected lamindb: testuser1/use-cases-registries
import lamindb as ln
import bionty as bt
from lamin_usecases import datasets as ds
import scanpy as sc
import matplotlib.pyplot as plt
import celltypist
import gseapy as gp
๐ก connected lamindb: testuser1/use-cases-registries
sc.settings.set_figure_params(dpi=50, facecolor="white")
ln.settings.transform.stem_uid = "hsPU1OENv0LS"
ln.settings.transform.version = "0"
ln.track()
๐ก notebook imports: bionty==0.44.2 celltypist==1.6.3 gseapy==1.1.3 lamin_usecases==0.0.1 lamindb==0.74.1 matplotlib==3.9.1 scanpy==1.10.1
๐ก saved: Transform(uid='hsPU1OENv0LS6K79', version='0', name='Standardize metadata on-the-fly', key='analysis-registries', type='notebook', created_by_id=1, updated_at='2024-07-21 16:18:13 UTC')
๐ก saved: Run(uid='ijF2MsC7gZT1w3DmIsiG', transform_id=1, created_by_id=1)
Run(uid='ijF2MsC7gZT1w3DmIsiG', started_at='2024-07-21 16:18:13 UTC', is_consecutive=True, transform_id=1, created_by_id=1)
An interferon-beta treated datasetยถ
A small peripheral blood mononuclear cell dataset that is split into control and stimulated groups. The stimulated group was treated with interferon beta.
Letโs load the dataset and perform some preprocessing:
adata = ds.anndata_seurat_ifnb(preprocess=False, populate_registries=True)
adata
AnnData object with n_obs ร n_vars = 13999 ร 9941
obs: 'stim'
var: 'symbol'
sc.pp.normalize_total(adata, target_sum=1e4)
sc.pp.log1p(adata)
sc.pp.highly_variable_genes(adata, n_top_genes=2000)
sc.pp.pca(adata, n_comps=20)
sc.pp.neighbors(adata, n_pcs=10)
sc.tl.umap(adata)
/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/tqdm/auto.py:21: TqdmWarning: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html
from .autonotebook import tqdm as notebook_tqdm
Analysis: cell type annotation using CellTypistยถ
model = celltypist.models.Model.load(model="Immune_All_Low.pkl")
Show code cell output
๐ No available models. Downloading...
๐ Retrieving model list from server https://celltypist.cog.sanger.ac.uk/models/models.json
๐ Total models in list: 50
๐ Storing models in /home/runner/.celltypist/data/models
๐พ Downloading model [1/50]: Immune_All_Low.pkl
๐พ Downloading model [2/50]: Immune_All_High.pkl
๐พ Downloading model [3/50]: Adult_COVID19_PBMC.pkl
๐พ Downloading model [4/50]: Adult_CynomolgusMacaque_Hippocampus.pkl
๐พ Downloading model [5/50]: Adult_Human_PancreaticIslet.pkl
๐พ Downloading model [6/50]: Adult_Human_Skin.pkl
๐พ Downloading model [7/50]: Adult_Mouse_Gut.pkl
๐พ Downloading model [8/50]: Adult_Mouse_OlfactoryBulb.pkl
๐พ Downloading model [9/50]: Adult_Pig_Hippocampus.pkl
๐พ Downloading model [10/50]: Adult_RhesusMacaque_Hippocampus.pkl
๐พ Downloading model [11/50]: Autopsy_COVID19_Lung.pkl
๐พ Downloading model [12/50]: COVID19_HumanChallenge_Blood.pkl
๐พ Downloading model [13/50]: COVID19_Immune_Landscape.pkl
๐พ Downloading model [14/50]: Cells_Adult_Breast.pkl
๐พ Downloading model [15/50]: Cells_Fetal_Lung.pkl
๐พ Downloading model [16/50]: Cells_Human_Tonsil.pkl
๐พ Downloading model [17/50]: Cells_Intestinal_Tract.pkl
๐พ Downloading model [18/50]: Cells_Lung_Airway.pkl
๐พ Downloading model [19/50]: Developing_Human_Brain.pkl
๐พ Downloading model [20/50]: Developing_Human_Gonads.pkl
๐พ Downloading model [21/50]: Developing_Human_Hippocampus.pkl
๐พ Downloading model [22/50]: Developing_Human_Organs.pkl
๐พ Downloading model [23/50]: Developing_Human_Thymus.pkl
๐พ Downloading model [24/50]: Developing_Mouse_Brain.pkl
๐พ Downloading model [25/50]: Developing_Mouse_Hippocampus.pkl
๐พ Downloading model [26/50]: Fetal_Human_AdrenalGlands.pkl
๐พ Downloading model [27/50]: Fetal_Human_Pancreas.pkl
๐พ Downloading model [28/50]: Fetal_Human_Pituitary.pkl
๐พ Downloading model [29/50]: Fetal_Human_Retina.pkl
๐พ Downloading model [30/50]: Fetal_Human_Skin.pkl
๐พ Downloading model [31/50]: Healthy_Adult_Heart.pkl
๐พ Downloading model [32/50]: Healthy_COVID19_PBMC.pkl
๐พ Downloading model [33/50]: Healthy_Human_Liver.pkl
๐พ Downloading model [34/50]: Healthy_Mouse_Liver.pkl
๐พ Downloading model [35/50]: Human_AdultAged_Hippocampus.pkl
๐พ Downloading model [36/50]: Human_Colorectal_Cancer.pkl
๐พ Downloading model [37/50]: Human_Developmental_Retina.pkl
๐พ Downloading model [38/50]: Human_Embryonic_YolkSac.pkl
๐พ Downloading model [39/50]: Human_IPF_Lung.pkl
๐พ Downloading model [40/50]: Human_Longitudinal_Hippocampus.pkl
๐พ Downloading model [41/50]: Human_Lung_Atlas.pkl
๐พ Downloading model [42/50]: Human_PF_Lung.pkl
๐พ Downloading model [43/50]: Human_Placenta_Decidua.pkl
๐พ Downloading model [44/50]: Lethal_COVID19_Lung.pkl
๐พ Downloading model [45/50]: Mouse_Dentate_Gyrus.pkl
๐พ Downloading model [46/50]: Mouse_Isocortex_Hippocampus.pkl
๐พ Downloading model [47/50]: Mouse_Postnatal_DentateGyrus.pkl
๐พ Downloading model [48/50]: Mouse_Whole_Brain.pkl
๐พ Downloading model [49/50]: Nuclei_Lung_Airway.pkl
๐พ Downloading model [50/50]: Pan_Fetal_Human.pkl
predictions = celltypist.annotate(
adata, model="Immune_All_Low.pkl", majority_voting=True
)
adata.obs["cell_type_celltypist"] = predictions.predicted_labels.majority_voting
๐ฌ Input data has 13999 cells and 9941 genes
๐ Matching reference genes in the model
๐งฌ 3697 features used for prediction
โ๏ธ Scaling input data
๐๏ธ Predicting labels
โ
Prediction done!
๐ Detected a neighborhood graph in the input object, will run over-clustering on the basis of it
โ๏ธ Over-clustering input data with resolution set to 10
๐ณ๏ธ Majority voting the predictions
โ
Majority voting done!
adata.obs["cell_type_celltypist"] = bt.CellType.standardize(
adata.obs["cell_type_celltypist"]
)
Analysis: Pathway enrichment analysis using Enrichrยถ
This analysis is based on the GSEApy scRNA-seq Example.
First, we compute differentially expressed genes using a Wilcoxon test between stimulated and control cells.
# compute differentially expressed genes
sc.tl.rank_genes_groups(
adata,
groupby="stim",
use_raw=False,
method="wilcoxon",
groups=["STIM"],
reference="CTRL",
)
rank_genes_groups_df = sc.get.rank_genes_groups_df(adata, "STIM")
rank_genes_groups_df.head()
names | scores | logfoldchanges | pvals | pvals_adj | |
---|---|---|---|---|---|
0 | ISG15 | 99.456802 | 7.132765 | 0.0 | 0.0 |
1 | ISG20 | 96.736519 | 5.074226 | 0.0 | 0.0 |
2 | IFI6 | 94.973305 | 5.828854 | 0.0 | 0.0 |
3 | IFIT3 | 92.482574 | 7.432471 | 0.0 | 0.0 |
4 | IFIT1 | 90.699089 | 8.053552 | 0.0 | 0.0 |
Next, we filter out up/down-regulated differentially expressed gene sets:
degs_up = rank_genes_groups_df[
(rank_genes_groups_df["logfoldchanges"] > 0)
& (rank_genes_groups_df["pvals_adj"] < 0.05)
]
degs_dw = rank_genes_groups_df[
(rank_genes_groups_df["logfoldchanges"] < 0)
& (rank_genes_groups_df["pvals_adj"] < 0.05)
]
degs_up.shape, degs_dw.shape
((541, 5), (937, 5))
Run pathway enrichment analysis on DEGs and plot top 10 pathways:
enr_up = gp.enrichr(degs_up.names, gene_sets="GO_Biological_Process_2023").res2d
gp.dotplot(enr_up, figsize=(2, 3), title="Up", cmap=plt.cm.autumn_r);
Annotate & save datasetยถ
gRegister new features and labels (check out more details here):
new_features = ln.Feature.from_df(adata.obs)
ln.save(new_features)
new_labels = [ln.ULabel(name=i) for i in adata.obs["stim"].unique()]
ln.save(new_labels)
features = ln.Feature.lookup()
Register dataset using a Artifact object:
artifact = ln.Artifact.from_anndata(
adata,
description="seurat_ifnb_activated_Bcells",
)
artifact.save()
Artifact(uid='InJAFdn29RywdK3hS4Jm', description='seurat_ifnb_activated_Bcells', suffix='.h5ad', type='dataset', accessor='AnnData', size=214988431, hash='yUWKZxiol26bVZg0K6csSe', hash_type='sha1-fl', visibility=1, key_is_virtual=True, created_by_id=1, storage_id=1, transform_id=1, run_id=1, updated_at='2024-07-21 16:21:36 UTC')
artifact.features._add_set_from_anndata(
var_field=bt.Gene.symbol,
organism="human", # optionally, globally set organism via bt.settings.organism = "human"
)
Link cell type labelsยถ
cell_type_records = bt.CellType.from_values(adata.obs["cell_type_celltypist"])
artifact.labels.add(cell_type_records, features.cell_type_celltypist)
Link stimulation labels:
stim_records = ln.ULabel.from_values(adata.obs["stim"])
artifact.labels.add(stim_records, features.stim)
Link pathway labelsยถ
Letโs enable tracking of the current notebook as the transform of this artifact:
We further create two feature sets for degs_up
and degs_dw
which we can later associate with the associated pathways:
degs_up_featureset = ln.FeatureSet.from_values(
degs_up.names,
bt.Gene.symbol,
name="Up-regulated DEGs STIM vs CTRL",
type="category",
organism=( # optionally, globally set organism via bt.settings.organism = "human"
"human"
),
)
degs_dw_featureset = ln.FeatureSet.from_values(
degs_dw.names,
bt.Gene.symbol,
name="Down-regulated DEGs STIM vs CTRL",
type="category",
organism=( # optionally, globally set organism via bt.settings.organism = "human"
"human"
),
)
# Link feature sets to artifact
artifact.features.add_feature_set(degs_up_featureset, slot="STIM-up-DEGs")
artifact.features.add_feature_set(degs_dw_featureset, slot="STIM-down-DEGs")
Link the top 10 pathways to the corresponding differentially expressed genes:
def parse_ontology_id_from_enrichr_results(key):
"""Parse out the ontology id.
"ATF6-mediated Unfolded Protein Response (GO:0036500)" -> ("GO:0036500", "ATF6-mediated Unfolded Protein Response")
"""
id = key.split(" ")[-1].replace("(", "").replace(")", "")
name = key.replace(f" ({id})", "")
return (id, name)
# get ontology ids for the top 10 pathways
enr_up_top10 = [
pw_id[0]
for pw_id in enr_up.head(10).Term.apply(parse_ontology_id_from_enrichr_results)
]
enr_dw_top10 = [
pw_id[0]
for pw_id in enr_dw.head(10).Term.apply(parse_ontology_id_from_enrichr_results)
]
# get pathway records
enr_up_top10_pathways = bt.Pathway.from_values(enr_up_top10, bt.Pathway.ontology_id)
enr_dw_top10_pathways = bt.Pathway.from_values(enr_dw_top10, bt.Pathway.ontology_id)
Associate the pathways to the differentially expressed genes:
degs_up_featureset.pathways.set(enr_up_top10_pathways)
degs_dw_featureset.pathways.set(enr_dw_top10_pathways)
degs_up_featureset.pathways.list("name")
['defense response to symbiont',
'response to type II interferon',
'defense response to virus',
'negative regulation of viral genome replication',
'cellular response to cytokine stimulus',
'positive regulation of cytokine production',
'response to interferon-beta',
'negative regulation of viral process',
'response to cytokine',
'regulation of viral genome replication']
Querying metadataยถ
artifact.describe()
Artifact(uid='InJAFdn29RywdK3hS4Jm', description='seurat_ifnb_activated_Bcells', suffix='.h5ad', type='dataset', accessor='AnnData', size=214988431, hash='yUWKZxiol26bVZg0K6csSe', hash_type='sha1-fl', visibility=1, key_is_virtual=True, updated_at='2024-07-21 16:21:38 UTC')
Provenance
.created_by = 'testuser1'
.storage = '/home/runner/work/lamin-usecases/lamin-usecases/docs/use-cases-registries'
.transform = 'Standardize metadata on-the-fly'
.run = '2024-07-21 16:18:13 UTC'
Labels
.cell_types = 'effector memory CD8-positive, alpha-beta T cell', 'B cell', 'effector memory CD4-positive, alpha-beta T cell', 'dendritic cell, human', 'macrophage', 'natural killer cell', 'mast cell', 'classical monocyte', 'non-classical monocyte', 'plasmacytoid dendritic cell', ...
.ulabels = 'STIM', 'CTRL'
Features
'cell_type_celltypist' = 'effector memory CD8-positive, alpha-beta T cell', 'B cell', 'effector memory CD4-positive, alpha-beta T cell', 'dendritic cell, human', 'macrophage', 'natural killer cell', 'mast cell', 'classical monocyte', 'non-classical monocyte', 'plasmacytoid dendritic cell', ...
'stim' = 'STIM', 'CTRL'
Feature sets
'var' = 'CENPC', 'RPL27A', 'SBF1', 'RAC1', 'TAX1BP1', 'FAM13B', 'NELL2', 'METTL6', 'ST8SIA1', 'SFXN2', 'KIF2A', 'PPP1CB', 'HINFP', 'TAOK3', 'GNG7', 'PHAF1', 'FXYD1', 'H1-10', 'MRPL21', 'GKAP1'
'obs' = 'stim', 'cell_type_celltypist'
'STIM-up-DEGs' = 'SCLT1', 'CGAS', 'CCND3', 'PRKX', 'SCIMP', 'EBAG9', 'CGGBP1', 'C1GALT1', 'ACSL1', 'ASCL2', 'EVL', 'FAS', 'TAPBP', 'CTSC', 'NASP', 'MSR1'
'STIM-down-DEGs' = 'RAC1', 'ARHGAP9', 'TAOK3', 'HDAC1', 'MAD2L2', 'G6PD', 'TMEM138', 'MRPL28', 'ATP5MG', 'AP2S1', 'GADD45GIP1', 'RPL10', 'RASAL3', 'VSIR', 'JUN', 'ARL3', 'CD63', 'MDH2', 'NDUFA13', 'ARPC2'
Querying cell typesยถ
Querying for cell types contains โB cellโ in the name:
bt.CellType.filter(name__contains="B cell").df().head()
uid | name | ontology_id | abbr | synonyms | description | public_source_id | run_id | created_by_id | updated_at | |
---|---|---|---|---|---|---|---|---|---|---|
id | ||||||||||
1 | ryEtgi1y | B cell | CL:0000236 | None | B cells|Cycling B cells|B-lymphocyte|B lymphoc... | A Lymphocyte Of B Lineage That Is Capable Of B... | 29 | None | 1 | 2024-07-21 16:18:05.860827+00:00 |
2 | 2EhFTUoZ | follicular B cell | CL:0000843 | None | follicular B-cell|Follicular B cells|Fo B-cell... | A Resting Mature B Cell That Has The Phenotype... | 29 | None | 1 | 2024-07-21 16:18:05.665646+00:00 |
3 | 4IowPafD | germinal center B cell | CL:0000844 | None | Proliferative germinal center B cells|germinal... | A Rapidly Cycling Mature B Cell That Has Disti... | 29 | None | 1 | 2024-07-21 16:18:05.701542+00:00 |
4 | 2cUPBtY8 | memory B cell | CL:0000787 | None | memory B-lymphocyte|Memory B cells|Age-associa... | A Memory B Cell Is A Mature B Cell That Is Lon... | 29 | None | 1 | 2024-07-21 16:18:05.736931+00:00 |
5 | 3jdCg7zi | naive B cell | CL:0000788 | None | naive B-cell|naive B lymphocyte|Naive B cells|... | A Naive B Cell Is A Mature B Cell That Has The... | 29 | None | 1 | 2024-07-21 16:18:05.754363+00:00 |
Querying for all artifacts curated with a cell type:
celltypes = bt.CellType.lookup()
celltypes.plasmacytoid_dendritic_cell
CellType(uid='3JO0EdVd', name='plasmacytoid dendritic cell', ontology_id='CL:0000784', synonyms='pDC|type 2 DC|plasmacytoid T cell|T-associated plasma cell|lymphoid dendritic cell|IPC|plasmacytoid monocyte|DC2|interferon-producing cell', description='A Dendritic Cell Type Of Distinct Morphology, Localization, And Surface Marker Expression (Cd123-Positive) From Other Dendritic Cell Types And Associated With Early Stage Immune Responses, Particularly The Release Of Physiologically Abundant Amounts Of Type I Interferons In Response To Infection.', created_by_id=1, public_source_id=29, updated_at='2024-07-21 16:18:00 UTC')
ln.Artifact.filter(cell_types=celltypes.plasmacytoid_dendritic_cell).df()
uid | version | description | key | suffix | type | accessor | size | hash | hash_type | n_objects | n_observations | visibility | key_is_virtual | storage_id | transform_id | run_id | created_by_id | updated_at | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id | |||||||||||||||||||
1 | InJAFdn29RywdK3hS4Jm | None | seurat_ifnb_activated_Bcells | None | .h5ad | dataset | AnnData | 214988431 | yUWKZxiol26bVZg0K6csSe | sha1-fl | None | None | 1 | True | 1 | 1 | 1 | 1 | 2024-07-21 16:21:38.079144+00:00 |
Querying pathwaysยถ
Querying for pathways contains โinterferon-betaโ in the name:
bt.Pathway.filter(name__contains="interferon-beta").df()
uid | name | ontology_id | abbr | synonyms | description | public_source_id | run_id | created_by_id | updated_at | |
---|---|---|---|---|---|---|---|---|---|---|
id | ||||||||||
684 | 1l4z0v8W | cellular response to interferon-beta | GO:0035458 | None | cellular response to fibroblast interferon|cel... | Any Process That Results In A Change In State ... | 64 | None | 1 | 2024-07-21 16:16:51.040001+00:00 |
2130 | 1NzHDJDi | negative regulation of interferon-beta production | GO:0032688 | None | down regulation of interferon-beta production|... | Any Process That Stops, Prevents, Or Reduces T... | 64 | None | 1 | 2024-07-21 16:16:51.197499+00:00 |
3127 | 3x0xmK1y | positive regulation of interferon-beta production | GO:0032728 | None | positive regulation of IFN-beta production|up-... | Any Process That Activates Or Increases The Fr... | 64 | None | 1 | 2024-07-21 16:16:51.308389+00:00 |
4334 | 54R2a0el | regulation of interferon-beta production | GO:0032648 | None | regulation of IFN-beta production | Any Process That Modulates The Frequency, Rate... | 64 | None | 1 | 2024-07-21 16:16:51.443391+00:00 |
4953 | 3VZq4dMe | response to interferon-beta | GO:0035456 | None | response to fiblaferon|response to fibroblast ... | Any Process That Results In A Change In State ... | 64 | None | 1 | 2024-07-21 16:16:51.512617+00:00 |
Query pathways from a gene:
bt.Pathway.filter(genes__symbol="KIR2DL1").df()
uid | name | ontology_id | abbr | synonyms | description | public_source_id | run_id | created_by_id | updated_at | |
---|---|---|---|---|---|---|---|---|---|---|
id | ||||||||||
1346 | 7S7qlEkG | immune response-inhibiting cell surface recept... | GO:0002767 | None | immune response-inhibiting cell surface recept... | The Series Of Molecular Signals Initiated By A... | 64 | None | 1 | 2024-07-21 16:16:51.111214+00:00 |
Query artifacts from a pathway:
ln.Artifact.filter(feature_sets__pathways__name__icontains="interferon-beta").first()
Artifact(uid='InJAFdn29RywdK3hS4Jm', description='seurat_ifnb_activated_Bcells', suffix='.h5ad', type='dataset', accessor='AnnData', size=214988431, hash='yUWKZxiol26bVZg0K6csSe', hash_type='sha1-fl', visibility=1, key_is_virtual=True, created_by_id=1, storage_id=1, transform_id=1, run_id=1, updated_at='2024-07-21 16:21:38 UTC')
Query featuresets from a pathway to learn from which geneset this pathway was computed:
pathway = bt.Pathway.filter(ontology_id="GO:0035456").one()
pathway
Pathway(uid='3VZq4dMe', name='response to interferon-beta', ontology_id='GO:0035456', synonyms='response to fiblaferon|response to fibroblast interferon|response to interferon beta', description='Any Process That Results In A Change In State Or Activity Of A Cell Or An Organism (In Terms Of Movement, Secretion, Enzyme Production, Gene Expression, Etc.) As A Result Of An Interferon-Beta Stimulus. Interferon-Beta Is A Type I Interferon.', created_by_id=1, public_source_id=64, updated_at='2024-07-21 16:16:51 UTC')
degs = ln.FeatureSet.filter(pathways__ontology_id=pathway.ontology_id).one()
Now we can get the list of genes that are differentially expressed and belong to this pathway:
contributing_genes = pathway.genes.all() & degs.genes.all()
contributing_genes.list("symbol")
['IRF1',
'AIM2',
'OAS1',
'STAT1',
'PNPT1',
'IFITM2',
'XAF1',
'IFITM1',
'BST2',
'IFITM3',
'SHFL',
'MNDA',
'PLSCR1',
'IFI16',
'CALM1']
# clean up test instance
!lamin delete --force use-cases-registries
!rm -r ./use-cases-registries
Show code cell output
Traceback (most recent call last):
File "/opt/hostedtoolcache/Python/3.10.14/x64/bin/lamin", line 8, in <module>
sys.exit(main())
File "/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/rich_click/rich_command.py", line 367, in __call__
return super().__call__(*args, **kwargs)
File "/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/click/core.py", line 1157, in __call__
return self.main(*args, **kwargs)
File "/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/rich_click/rich_command.py", line 152, in main
rv = self.invoke(ctx)
File "/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/lamin_cli/__main__.py", line 105, in delete
return delete(instance, force=force)
File "/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/lamindb_setup/_delete.py", line 98, in delete
n_objects = check_storage_is_empty(
File "/opt/hostedtoolcache/Python/3.10.14/x64/lib/python3.10/site-packages/lamindb_setup/core/upath.py", line 779, in check_storage_is_empty
raise InstanceNotEmpty(message)
lamindb_setup.core.upath.InstanceNotEmpty: Storage /home/runner/work/lamin-usecases/lamin-usecases/docs/use-cases-registries/.lamindb contains 1 objects ('_is_initialized' ignored) - delete them prior to deleting the instance
['/home/runner/work/lamin-usecases/lamin-usecases/docs/use-cases-registries/.lamindb/InJAFdn29RywdK3hS4Jm.h5ad', '/home/runner/work/lamin-usecases/lamin-usecases/docs/use-cases-registries/.lamindb/_is_initialized']