lamindb.curators.SpatialDataCurator¶
- class lamindb.curators.SpatialDataCurator(dataset, schema, *, sample_metadata_key='sample')¶
Bases:
SlotsCurator
Curator for
SpatialData
.- Parameters:
Example
See
from_spatialdata()
.Attributes¶
- property slots: dict[str, DataFrameCurator]¶
Access sub curators by slot.
Methods¶
- save_artifact(*, key=None, description=None, revises=None, run=None)¶
Save an annotated artifact.
- Parameters:
key (
str
|None
, default:None
) – A path-like key to reference artifact in default storage, e.g.,"myfolder/myfile.fcs"
. Artifacts with the same key form a version family.description (
str
|None
, default:None
) – A description.revises (
Artifact
|None
, default:None
) – Previous version of the artifact. Is an alternative way to passingkey
to trigger a new version.run (
Run
|None
, default:None
) – The run that creates the artifact.
- Return type:
- Returns:
A saved artifact record.
- validate()¶
Validate dataset against Schema.
- Raises:
lamindb.errors.ValidationError – If validation fails.
- Return type:
None