Skip to main content
Ctrl+K
squidpy - Home squidpy - Home

Getting started

  • Installation
  • Quickstart

Guides

  • Tutorials
    • Analysis of spatial datasets using squidpy

      • Analyze Imaging Mass Cytometry data
      • Analyze seqFISH data
      • Analyze Slide-seqV2 data
      • Analyze Visium fluorescence data
      • Analyze Visium H&E data
      • Analyze Merfish data
      • Analyze MIBI-TOF image data
      • Analyze 4i data
      • Analyze Nanostring data
      • Analyze Vizgen data
      • Vizgen Mouse Liver Squidpy Vignette
      • Analyze Xenium data
    • Advanced Tutorials

      • Import spatial data in AnnData and Squidpy
      • ImageContainer object
      • Use z-stacks with ImageContainer
    • External tutorials

      • Predict cluster labels spots using Tensorflow
      • Cell-type deconvolution using Tangram
      • Nuclei segmentation using Cellpose
      • Nuclei segmentation using StarDist
      • Feature extraction using CellProfiler
  • Examples
    • Graph

      • Compute centrality scores
      • Compute co-occurrence probability
      • Compute interaction matrix
      • Receptor-ligand analysis
      • Compute Moran’s I score
      • Neighbors enrichment analysis
      • Compute Ripley’s statistics
      • Compute Sepal score
      • Building spatial neighbors graph
    • Image

      • Process a high-resolution image
      • Convert to grayscale
      • Smooth an image
      • Cell-segmentation for fluorescence images
      • Cell-segmentation for H&E stains
      • Extract image features
      • Extract summary features
      • Extract histogram features
      • Extract texture features
      • Extract segmentation features
      • Extract custom features
      • Plot features in adata.obsm
    • ImageContainer

      • Show layers of the ImageContainer
      • Crop images with ImageContainer
      • Convert to grayscale using the apply method
      • Generate cropped images from spots
    • Tools

      • Calculate distances to a user-defined anchor point
      • Analyse your spatial data using sliding windows
    • Plotting

      • Plot scatter plot in spatial coordinates
      • Plot segmentation masks
  • Deprecated Features
    • Interactive visualization with Napari

Reference

  • API
    • Graph gr
      • Spatial neighbors
        • spatial_neighbors
        • spatial_neighbors_from_builder
        • spatial_neighbors_knn
        • spatial_neighbors_radius
        • spatial_neighbors_delaunay
        • spatial_neighbors_grid
        • Neighbors neighbors
          • GraphBuilder
          • GraphBuilderCSR
          • GraphPostprocessor
          • DistanceIntervalPostprocessor
          • PercentilePostprocessor
          • TransformPostprocessor
          • KNNBuilder
          • RadiusBuilder
          • DelaunayBuilder
          • GridBuilder
          • GraphMatrixT
      • mask_graph
      • nhood_enrichment
      • co_occurrence
      • centrality_scores
      • interaction_matrix
      • ripley
      • ligrec
      • spatial_autocorr
      • sepal
      • Niches
        • calculate_niche
        • calculate_niche_neighborhood
        • calculate_niche_utag
        • calculate_niche_cellcharter
        • calculate_niche_spatialleiden
    • Image im
      • process
      • segment
      • calculate_image_features
      • SegmentationModel
        • SegmentationModel.segment
    • Plotting pl
      • spatial_scatter
      • spatial_segment
      • nhood_enrichment
      • nhood_enrichment_dotplot
      • centrality_scores
      • interaction_matrix
      • ligrec
      • ripley
      • co_occurrence
      • extract
      • var_by_distance
    • Reading read
      • visium
      • vizgen
      • nanostring
    • Tools tl
      • sliding_window
      • var_by_distance
    • Datasets datasets
      • four_i
      • imc
      • seqfish
      • merfish
      • mibitof
      • slideseqv2
      • sc_mouse_cortex
      • visium
      • visium_hne_adata
      • visium_hne_adata_crop
      • visium_fluo_adata
      • visium_fluo_adata_crop
      • visium_hne_image
      • visium_hne_image_crop
      • visium_fluo_image_crop
    • Experimental experimental
      • Image im
        • calculate_image_features
        • make_tiles
        • make_tiles_from_spots
        • qc_image
        • detect_tissue
        • fit_stain_reference
        • estimate_white_point
        • StainFit
          • StainFit.decompose
          • StainFit.transform
      • Tools tl
        • calculate_tiling_qc
        • assign_stitch_groups
        • make_stitched_labels
      • Plotting pl
        • tiling_qc
        • qc_image
    • Types types
      • Parameters

        • FelzenszwalbParams
        • WekaParams
        • ReinhardParams
        • MacenkoParams
        • VahadaneParams
      • Results

        • SpatialNeighborsResult
        • NhoodEnrichmentResult
  • Classes
    • ImageContainer
      • ImageContainer.add_img
      • ImageContainer.apply
      • ImageContainer.compute
      • ImageContainer.concat
      • ImageContainer.copy
      • ImageContainer.crop_center
      • ImageContainer.crop_corner
      • ImageContainer.features_custom
      • ImageContainer.features_histogram
      • ImageContainer.features_segmentation
      • ImageContainer.features_summary
      • ImageContainer.features_texture
      • ImageContainer.from_adata
      • ImageContainer.generate_equal_crops
      • ImageContainer.generate_spot_crops
      • ImageContainer.load
      • ImageContainer.rename
      • ImageContainer.save
      • ImageContainer.show
      • ImageContainer.subset
      • ImageContainer.uncrop
    • SegmentationWatershed
      • SegmentationWatershed.segment
    • SegmentationCustom
      • SegmentationCustom.segment
  • Extensibility

Project

  • Release Notes
    • Squidpy 1.6.2 (2024-11-12)
    • Squidpy 1.6.1 (2024-08-23)
    • Squidpy 1.6.0 (2024-07-23)
    • Squidpy 1.5.0 (2024-05-27)
    • Squidpy 1.4.1 (2024-02-06)
    • Squidpy 1.4.0 (2024-02-05)
    • Squidpy 1.3.1 (2023-10-09)
    • Squidpy 1.3.0 (2023-06-16)
    • Squidpy 1.2.3 (2022-10-18)
    • Squidpy 1.2.2 (2022-05-17)
    • Squidpy 1.2.1 (2022-05-14)
    • Squidpy 1.2.0 (2022-04-19)
    • Squidpy 1.1.2 (2021-09-10)
    • Squidpy 1.1.1 (2021-08-16)
    • Squidpy 1.1.0 (2021-07-01)
    • Squidpy 1.0.1 (2021-06-12)
    • Squidpy 1.0.0 (2021-02-20)
  • Contributing guide
  • Citation
  • Bibliography
  • GitHub
  • Discourse
  • API
  • Datasets datasets
  • visium_hne_image
  • GitHub
  • Discourse
  • scverse.org
  • Core
  • AnnData
  • decoupler
  • MuData
  • Muon
  • Pertpy
  • rapids-singlecell
  • Scanpy
  • Scirpy
  • scvi-tools
  • SnapATAC2
  • SpatialData
  • Squidpy
  • Ecosystem
  • AESTETIK
  • AlphaPeptTools
  • AmbiDose
  • annbatch
  • anndata for R
  • anndataR
  • annsel
  • AnnZarro
  • ATLAS
  • benGRN
  • bento-tools
  • biolord
  • cell2location
  • Cell_BLAST
  • CellAnnotator
  • CellCharter
  • CellMapper
  • CellOracle
  • CellphoneDB
  • CellRank
  • cellxgene
  • Cirrocumulus
  • clone2vec
  • cuspa
  • dandelion
  • delnx
  • DOTools_py
  • DoubletDetection
  • DRVI
  • dvp-io
  • dynamo-release
  • epiScanpy
  • eschr
  • fava
  • flashdeconv
  • flowsom
  • GATAC
  • GPTBioInsightor
  • grassp
  • GRnnData
  • gssnng
  • harpy
  • hotspot
  • illico
  • infercnvpy
  • kompot
  • LazySlide
  • liana
  • mantispy
  • Marsilea
  • maxspin
  • moscot
  • Mowgli
  • Multivelo
  • ncountr
  • NicheNetPy
  • nichepca
  • novae
  • omicverse
  • Palantir
  • Panpipes
  • ParTIpy
  • PathML
  • pcdl
  • PEAKQC
  • pegasus
  • PILOT
  • popV
  • pycea
  • pychromVAR
  • pyCrossTalkeR
  • PyDESeq2
  • pyLemur
  • pySCENIC
  • pytximport
  • pyUCell
  • Rectangle
  • SC2Spa
  • SCALEX
  • scanpro
  • scATrans
  • scCellFie
  • scDataLoader
  • scFair
  • scFates
  • scGen
  • schist
  • scib
  • scib-metrics
  • scib-rapids
  • scmcp
  • scPRINT
  • scPRINT-2
  • scTriangulate
  • scVelo
  • scviva-tools
  • scxmatch
  • scXpand
  • scyan
  • sift-sc
  • sincei
  • Sobolev Alignment
  • sopa
  • spatial-eggplant
  • spatialdataR
  • spatialproteomics
  • spatiomic
  • STMiner
  • Symphonypy
  • tangram
  • TAU Community Detection
  • TreeData
  • vitessce
  • wsidata
  • zellkonverter

visium_hne_image#

squidpy.datasets.visium_hne_image(path=None, **kwargs)#

H&E image from 10x Genomics Visium dataset.

The shape of this image is [11757, 11291].

Parameters:
path PathLike[str] | str | None (default: None)

Path where to save the .tiff image.

kwargs Any

Keyword arguments for squidpy.im.ImageContainer.add_img().

Returns:

squidpy.im.ImageContainer The image data.

previous

visium_fluo_adata_crop

next

visium_hne_image_crop

Edit on GitHub
Show Source
© 2026, scverse scverse is a NumFOCUS affiliated project. Governance · Discourse · Get involved