bin2cell.actual_vs_inferred_image_shape
- bin2cell.actual_vs_inferred_image_shape(adata, img, ratio_threshold=0.99)
Compare the shape of the actual morphology image versus what the shape of the morphology image that was used for Spaceranger appears to be from information stored for the hires. If there’s a mismatch throw an informative error with both sets of dimensions.
Input
- adata
AnnData 2um bin Visium object.
- img
np.array Loaded full resolution morphology image, prior to any cropping/scaling.
- ratio_threshold
float, optional (default: 0.99) Throw the error if any ratio of corresponding actual and inferred dimensions falls below this value.
- adata