lamindb.curators.CurateLookup¶
- class lamindb.curators.CurateLookup(categoricals, slots=None, public=False)¶
Bases:
objectLookup categories from the reference instance.
- Parameters:
categoricals (
dict[str,DeferredAttribute]) – A dictionary of categorical fields to lookup.slots (
dict[str,DeferredAttribute], default:None) – A dictionary of slot fields to lookup.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>