paste3.visualization.stack_slices_pairwise
- paste3.visualization.stack_slices_pairwise(slices, pis, is_partial=False)[source]
Align spatial coordinates of sequential pairwise slices.
In other words, align:
slices[0] --> slices[1] --> slices[2] --> ...
- Parameters:
slices (
list
[AnnData
]) -- List of slices.pis (
list
[ndarray
]) -- List of pi (pairwise_align()
output) between consecutive slices.return_params -- If
True
, addtionally return angles of rotation (theta) and translations for each slice.is_partial (
bool
) -- Boolean of whether this is partial pairwise analysis or a total one
- Return type:
tuple
[list
[AnnData
],Optional
[list
[float
]],Optional
[list
[ndarray
]]]- Returns:
List of slices with aligned spatial coordinates.
If
output_params = True
, additionally return:List of angles of rotation (theta) for each slice.
List of translations [x_translation, y_translation] for each slice.