技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
experimental-imaging【数据与研究】Use Squidpy experimental SpatialData image APIs for tissue masks, tiling, image QC, stain normalization, feature extraction, and tiling-artifact QC/stitching.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when a task needs squidpy.experimental image workflows on SpatialData: tissue detection, tile generation, tile-based image QC, experimental per-cell image features, stain normalization/decomposition, or tiling-artifact scoring and stitch-group annotation.
sdata.images[...] and writing masks to sdata.labels[...] with squidpy.experimental.im.detect_tissue.sdata.shapes[...] with make_tiles or make_tiles_from_spots.sdata.tables[...] and sdata.shapes[...] with experimental.im.qc_image, then plotting with experimental.pl.qc_image.experimental.im.calculate_image_features.StainReference, ReinhardParams, MacenkoParams, and VahadaneParams.experimental.tl.calculate_tiling_qc, assigning stitch groups with assign_stitch_groups, and plotting with experimental.pl.tiling_qc.image-analysis for stable squidpy.im.ImageContainer, stable sq.im.process, stable segmentation, and stable image feature extraction.datasets-and-io for dataset downloads, squidpy.datasets.*, squidpy.read.*, and SpatialData sample acquisition.visualization for general squidpy.pl spatial plots and graph/statistics plotting.graph-analysis for spatial neighbor graphs and image-independent spatial statistics.references/experimental-workflows.md for safe workflow order, SpatialData key contracts, and storage locations.references/api-reference.md for signatures, defaults, parameter dataclasses, outputs, and plotting entry points.references/troubleshooting.md when experimental API changes, scale/key ambiguity, masks, stain validation, Weka, tiling thresholds, or memory/parallelism fail.scripts/experimental_imaging_smoke.py --help or the default smoke command to check imports, dataclass validation, signatures, and a tiny generated-data stain/reference path without downloads.import squidpy as sq
sq.experimental.im.detect_tissue(
sdata,
image_key="image",
scale="auto",
new_labels_key="image_tissue",
inplace=True,
)
sq.experimental.im.make_tiles(
sdata,
image_key="image",
tissue_mask_key="image_tissue",
tile_size=(224, 224),
min_tissue_fraction=0.5,
preview=False,
)
Treat squidpy.experimental APIs as volatile. Prefer explicit image_key, labels_key, shapes_key, table_key, scale, and preview=False in automation, and inspect sdata.images, sdata.labels, sdata.shapes, and sdata.tables after every in-place step.