bin2cell.check_array_coordinates
- bin2cell.check_array_coordinates(adata, row_max=3349, col_max=3349)
Assess the relationship between
.obs["array_row"]/.obs["array_col"]and.obsm["spatial"], as the array coordinates tend to have their origin in places that isn’t the top left of the image. Array coordinates are deemed to be flipped or not based on the Pearson correlation with the corresponding spatial dimension. Creates.uns["bin2cell"]["array_check"]that is used byb2c.grid_image(),b2c.insert_labels()andb2c.get_crop().Input
- adata
AnnData 2um bin VisiumHD object.
- row_max
int, optional (default: 3349) Maximum possible
array_rowvalue.- col_max
int, optional (default: 3349) Maximum possible
array_colvalue.
- adata