API
Interact with HEST-1k
See tutorial 2. Interacting with HEST.
|
Iterate through HEST samples contained in hest_dir |
Run HEST-Benchmark
See tutorial 4. Running HEST Benchmark.
|
Benchmark a patch encoder on HEST-bench |
HESTData class
Core object representing a (pooled) Spatial Transcriptomics sample along with a full resolution H&E image and associated metadata. See tutorial 2. Interacting with HEST.
|
Object representing a (pooled) Spatial Transcriptomics sample along with a full resolution H&E image and associated metadata |
Pooling of transcripts, binning
Methods used to pool Xenium transcripts and Visium-HD bins into square bins of custom size
|
Pool a xenium transcript dataframe by square spots of spot_size_um micrometers. |
|
Pools Visium HD bins from an initial resolution (src_bin_size_um) into larger square spots of spot_size_um. |
|
Pool Visium-hd bins per cell. |
CellViT segmentation
Simplified API for nuclei segmentation
|
Segment nuclei with CellViT |
Gene names manipulation
|
unify gene names by resolving aliases |
|
Converts ensemble gene IDs of a HESTData object using Biomart annotations and filter out genes with no matching Ensembl ID |
Readers to expand HEST-1k
Readers to expand HEST-1k with additional samples. See tutorial 3. Assembling HEST Data.
IO
Lazily read shapes such that read_gdf is called at compute time |
|
|
Xenium parquet shape reader |
|
Geopandas parquet shape reader |
|
Xenium transcript shape reader |
|
HEST Xenium transcript reader |
|
Write a (dask) geodataframe in optimized QuPath geojson detection format. |
Batch effect visualization/correction
|
Filter the genes of HESTData samples, such that: - only stable housekeeping genes are kept (see assets/MostStable_{species}.csv). |
|
Compute the silhouette score for adata_list, cluster memberships are passed in labels (len(labels) == len(adata_list)) |
|
Create UMAP plot (n=2) for adata_list, cluster memberships are passed in labels (len(labels) == len(adata_list)) |
|
Apply a batch effect correction method to a list of Spatial Transcriptomics expressions |
Miscellaneous
|
Save an image stored in a numpy array to the generic tiff format |
|
Automatically find the spot alignment based on an image with apparent Visium fiducials |
|
Writes adata to a 10X-formatted h5 file. |
|
Estimate the pixel size of an image in um/px given a dataframe containing the spot coordinates in that image |
|
Get the top-k genes according to some criteria in common genes across multiple samples. |