Outputs and key naming#
Most LazySlide operations add results to wsi. Defaults can be changed with key_added.
Operation |
Default result |
Location |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
inside feature |
Resolve keys safely#
print(list(wsi.shapes))
print(list(wsi.tables))
print(list(wsi.images))
print(list(wsi.attrs))
Many APIs accept a short feature key and add the tile suffix automatically:
zs.tl.feature_extraction(wsi, "uni")
zs.pl.tiles(wsi, feature_key="uni", color="0")
The stored table is normally uni_tiles. With a custom tile set, it becomes uni_{tile_key}.
Recommended naming#
Encode the meaningful variant, not every parameter:
tissue_key = "tissues_entropy"
tile_key = "tiles_20x"
feature_name = "uni_experiment_a"
Keep the complete parameter set in a machine-readable run configuration. Keys should remain short enough to pass between functions without mistakes.