API

Import Paste as:

import paste as pst

Alignment

pairwise_align(sliceA, sliceB[, alpha, ...])

Calculates and returns optimal alignment of two slices.

center_align(A, slices[, lmbda, alpha, ...])

Computes center alignment of slices.

Visualization

stack_slices_pairwise(slices, pis[, ...])

Align spatial coordinates of sequential pairwise slices.

stack_slices_center(center_slice, slices, pis)

Align spatial coordinates of a list of slices to a center_slice.

plot_slice(sliceX, color[, ax, s])

Plots slice spatial coordinates.

Miscellaneous

filter_for_common_genes(slices)

Filters for the intersection of genes between all slices.

match_spots_using_spatial_heuristic(X, Y[, ...])

Calculates and returns a mapping of spots using a spatial heuristic.

apply_trsf(M, translation, points)

Apply a rotation from a 2x2 rotation matrix M together with a translation from a translation vector of length 2 translation to a list of points.