cellxgene
Mirror of CZI's CELLxGENE.
CZ CELLxGENE hosts one of the largest standardized collections of scRNA-seq datasets.
Query for datasets:
import lamindb as ln
db = ln.DB("laminlabs/cellxgene")
users = db.User.lookup()
cell_types = db.bionty.CellType.lookup()
db.Artifact.filter(
suffix=".h5ad",
description__contains="immune",
size__gt=1e9, # size > 1GB
cell_types__name__in=["B cell", "T cell"], # cell types measured in AnnData
created_by=users.sunnyosun, # created by a specific user
).order_by("created_at").to_dataframe(
include=["cell_types__name", "created_by__handle"] # join with additional info
)
Load a dataset:
artifact = db.Artifact.get("WwmBIhBNLTlRcSoBDt77") # pass uid of the artifact
artifact.describe() # check curated metadata
# cache
cache_path = artifact.cache()
# cache and load into memory
adata = artifact.load()
# stream
adata_backed = artifact.open()
For more, see the guide.