This skill covers processing and analyzing tissue images from spatial transcriptomics data using Squidpy, including feature extraction, segmentation, and morphological analysis.
pip install squidpy scanpy scikit-image
# Optional for better segmentation:
pip install cellposeTell your AI agent what you want to do:
- "Extract image features from my tissue image"
- "Segment cells in my Visium image"
"Calculate image features for each spot"
"Extract texture features from the H&E image"
"Segment nuclei in my tissue image"
"Run cell segmentation with Cellpose"
"Separate hematoxylin and eosin stains"
- Load tissue image from spatial data
- Process image (segmentation, feature extraction)
- Store features in adata.obsm or adata.obs
- Return summary of extracted features
- ImageContainer - Use Squidpy's ImageContainer for organized handling
- Scale factors - Remember to account for image scaling
- Spot size - spot_scale parameter controls feature extraction area
- Cellpose - Provides better cell segmentation than watershed