Combine samples coming from independent experiments by stitching cells/spots coordinates through x/y coordinate shifting into a single grid

stitch_samples(
  data = NULL,
  x = NULL,
  y = NULL,
  sample.id = NULL,
  max_rows = NULL,
  max_cols = NULL
)

Arguments

data

a data frame containing x and y coordinates into separate columns

x

name of the x coordinate column

y

name of the y coordinate column

sample.id

character string specifying the name of the column storing sample identifiers

max_rows

numeric, maximum number of samples to be disposed on a same column of the final sample grid. If set to `NULL`, maximum number of rows will be automatically calculated to obtain a square grid

max_cols

numeric, maximum number of samples to be disposed on a same row of the final sample grid. If set to `NULL`, maximum number of columns will be automatically calculated to obtain a square grid

Value

data frame object with new stitched 'x_global' and 'y_global' coordinate columns