normalize_spatial: Normalize spatial coordinates
Description
Normalize spatial coordinates
Usage
normalize_spatial(
data,
sample_col = "Sample",
x_col = "pxl_row_in_fullres",
y_col = "pxl_col_in_fullres",
min_value = 1,
max_value = 10000
)
Value
A data frame with normalized coordinates
Arguments
- data
A data frame containing spatial coordinates
- sample_col
Column name specifying sample IDs
- x_col
Column name for x-coordinates
- y_col
Column name for y-coordinates
- min_value
Minimum value for normalization range
- max_value
Maximum value for normalization range
Examples
Run this codetissue_posi_normalized<-normalize_spatial(tissue_posi)
Run the code above in your browser using DataLab