import scanpy as sc sc.pp.neighbors(adata_ref.adata) sc.tl.umap(adata_ref.adata) sc.tl.ingest(adata=adata_target, adata_ref=adata_ref.adata, obs='umap')