lamindb.core.CurateLookup¶
- class lamindb.core.CurateLookup(categoricals, slots=None, using_key=None, public=False)¶
Bases:
object
Lookup categories from the reference instance.
- Parameters:
categoricals (
dict
[str
,DeferredAttribute
]) – A dictionary of categorical fields to lookup.slots (
dict
[str
,DeferredAttribute
] |None
, default:None
) – A dictionary of slot fields to lookup.using_key (
str
|None
, default:None
) – The key of the instance to lookup from. Defaults to the current instance if not specified.public (
bool
, default:False
) – Whether to lookup from the public instance. Defaults to False.
Example
>>> curator = ln.Curator.from_df(...) >>> curator.lookup()["cell_type"].alveolar_type_1_fibroblast_cell <Category: alveolar_type_1_fibroblast_cell>