Python basic concepts

import harpy as hp
import tempfile
from harpy.datasets.registry import get_registry

unit_testing = True
path = None

#The dataset will downloaded from the registry.
#If path is set to None, example data will be downloaded in the default cache folder of your os.
registry = get_registry(path = path)
path_image = registry.fetch(“transcriptomics/resolve/mouse/20272_slide1_A1-1_DAPI.tiff”)
path_coordinates = registry.fetch(“transcriptomics/resolve/mouse/20272_slide1_A1-1_results.txt”)

#The output_dir is the directory where the SpatialData .zarr will be saved.
output_dir = tempfile.gettempdir()

This is the start of the code of the Harpy pipeline that is used in the spatial training.