Getting started
Installation
Requirements
Recommended: conda environment
PyPI
From source (latest development version)
Optional dependencies
WSI support (SVS, NDPI, CZI files)
Getting Started with
goatpy
Tutorial
Loading and Aligning Data
Manual MALDI/H&E Alignment
Automatic MALDI/H&E Alignment
Loading with specific m/z values
Adding Pathologist annotations
Adding Annotations Using Manual Alignment
Adding Annotations Using Automatic Alignment
Assigning Annotations to the Pixel Level
Subsetting Data
Saving and Loading
goatpy
Ojects
Plotting and Visualising Results
Adjusting Plot Colour Palettes
Tutorial Session Info
Tutorials
Aligning Spatial Glycomics and IHC images
Manual Alignment
Automatic Alignment
Spatially Informed Clustering (GraphPCA)
Align Additional Image Layers
Tutorial Session Info
Multi-Sample
goatpy
Analysis Tutorial
Loading Data
Data Preprocessing
Merging Data
Using
scanpy
function with
goatpy
Batch Correction with
goatpy
m/z peak glycan annotation
Differential Abundance Analysis
Comparing Pathologist Annotation
Tutorial Session Info
User guide
Loading and aligning MALDI + H&E
Overview
Basic usage
Parameters
Output SpatialData structure
Custom peaks
Registration quality
QuPath annotations
During registration
After registration
Exporting from QuPath
Accessing annotation labels
Visualising with spatialdata-plot
GraphPCA and clustering
GraphPCA
Spatial smoothing
K-means clustering
Visualising clusters as a pseudo-image
Pseudo-image generation
Categorical columns
Continuous columns
Parameters
Output
Landmark alignment GUI
Launch the GUI
Workflow
Apply the alignment
Multiscale images
API reference
goatpy
Submodules
goatpy.annotation
Functions
Module Contents
goatpy.auto_align
Key design decisions
IHC support
Coordinate system
Functions
Module Contents
goatpy.batch_correction
USAGE
Functions
Module Contents
goatpy.bin
Key concepts
Usage
Functions
Module Contents
goatpy.data
goatpy.filter
Usage
Functions
Module Contents
goatpy.graphpca_mod
Functions
Module Contents
goatpy.he_image
Functions
Module Contents
goatpy.io
Functions
Module Contents
goatpy.landmark_alignment
Classes
Functions
Module Contents
goatpy.plotting
Functions
Module Contents
goatpy.preprocessing
Functions
Module Contents
goatpy.pseudo_image
Functions
Module Contents
goatpy.tools
Functions
Module Contents
Development
Changelog
0.1.0 (2025)
New features
Breaking changes from 0.0.1
Contributing
Development setup
Running tests
Building the docs locally
goatpy
Index
Edit on GitHub
Index
A
|
B
|
C
|
F
|
G
|
H
|
I
|
K
|
L
|
M
|
N
|
O
|
P
|
R
|
S
|
U
A
active_dataset (goatpy.landmark_alignment.LandmarkAlignmentWidget attribute)
add_annotations() (in module goatpy.he_image)
Add_Pseudo_Image() (in module goatpy.pseudo_image)
add_qupath_annotations() (in module goatpy.annotation)
add_uns() (in module goatpy.pseudo_image)
align_image_using_landmarks() (in module goatpy.landmark_alignment)
annotate_glycans() (in module goatpy.tools)
annotate_per_pixel() (in module goatpy.annotation)
annotations_to_pixels() (in module goatpy.annotation)
B
batch_correction() (in module goatpy.batch_correction)
bin_and_align() (in module goatpy.bin)
bin_imzml() (in module goatpy.bin)
C
centroids_to_pixel_squares() (in module goatpy.io)
check_batch() (in module goatpy.plotting)
clear_all() (goatpy.landmark_alignment.LandmarkAlignmentWidget method)
create_image_from_data() (in module goatpy.pseudo_image)
F
filter_spatialdata() (in module goatpy.filter)
G
generate_continuous_bins() (in module goatpy.pseudo_image)
generate_random_colors() (in module goatpy.pseudo_image)
get_kmean_clusters() (in module goatpy.graphpca_mod)
getimage() (in module goatpy.io)
glyco_spatialdata() (in module goatpy.io)
goatpy
module
goatpy.annotation
module
goatpy.auto_align
module
goatpy.batch_correction
module
goatpy.bin
module
goatpy.data
module
goatpy.filter
module
goatpy.graphpca_mod
module
goatpy.he_image
module
goatpy.io
module
goatpy.landmark_alignment
module
goatpy.plotting
module
goatpy.preprocessing
module
goatpy.pseudo_image
module
goatpy.tools
module
graphpca_spatialdata() (in module goatpy.graphpca_mod)
H
he_image_key (goatpy.landmark_alignment.LandmarkAlignmentWidget attribute)
he_landmarks (goatpy.landmark_alignment.LandmarkAlignmentWidget attribute)
he_scale_factor (goatpy.landmark_alignment.LandmarkAlignmentWidget attribute)
he_scale_level (goatpy.landmark_alignment.LandmarkAlignmentWidget attribute)
he_sd (goatpy.landmark_alignment.LandmarkAlignmentWidget attribute)
he_spatialdata() (in module goatpy.he_image)
I
ihc_spatialdata() (in module goatpy.io)
init_ui() (goatpy.landmark_alignment.LandmarkAlignmentWidget method)
K
kneighbors_graph_spatial() (in module goatpy.graphpca_mod)
L
LandmarkAlignmentWidget (class in goatpy.landmark_alignment)
launch_landmark_gui() (in module goatpy.landmark_alignment)
load_and_align() (in module goatpy.auto_align)
M
maldi_image_key (goatpy.landmark_alignment.LandmarkAlignmentWidget attribute)
maldi_landmarks (goatpy.landmark_alignment.LandmarkAlignmentWidget attribute)
maldi_scale_factor (goatpy.landmark_alignment.LandmarkAlignmentWidget attribute)
maldi_scale_level (goatpy.landmark_alignment.LandmarkAlignmentWidget attribute)
maldi_sd (goatpy.landmark_alignment.LandmarkAlignmentWidget attribute)
map_categories_to_colors() (in module goatpy.pseudo_image)
merge_spatialdata() (in module goatpy.tools)
module
goatpy
goatpy.annotation
goatpy.auto_align
goatpy.batch_correction
goatpy.bin
goatpy.data
goatpy.filter
goatpy.graphpca_mod
goatpy.he_image
goatpy.io
goatpy.landmark_alignment
goatpy.plotting
goatpy.preprocessing
goatpy.pseudo_image
goatpy.tools
N
normalize_matrix() (in module goatpy.preprocessing)
normalize_spatialdata() (in module goatpy.preprocessing)
O
on_click_combined() (goatpy.landmark_alignment.LandmarkAlignmentWidget method)
on_click_split() (goatpy.landmark_alignment.LandmarkAlignmentWidget method)
P
parmap() (in module goatpy.io)
plot_spectra_comparison() (in module goatpy.plotting)
plot_spectrum() (in module goatpy.plotting)
postpone_transformation() (in module goatpy.landmark_alignment)
R
rd_peaks() (in module goatpy.io)
rd_peaks_from_package() (in module goatpy.io)
S
save_landmarks() (goatpy.landmark_alignment.LandmarkAlignmentWidget method)
set_active_dataset() (goatpy.landmark_alignment.LandmarkAlignmentWidget method)
setup_layers() (goatpy.landmark_alignment.LandmarkAlignmentWidget method)
split_view (goatpy.landmark_alignment.LandmarkAlignmentWidget attribute)
U
undo_last() (goatpy.landmark_alignment.LandmarkAlignmentWidget method)
update_status() (goatpy.landmark_alignment.LandmarkAlignmentWidget method)