Set the coordinates

setCoordsDf(object, coords_df, ...)

Arguments

object

A valid spata-object.

coords_df

A data.frame containing information about every barcode-spot. Must contain the variables:

  • barcodes Character. The barcode-sequences (+ the sample belonging) of every barcode spot.

  • sample Character. The sample belonging of every barcode-spot.

  • x Numeric. The x-coordinates of every barcode.

  • y Numeric. The y-coordinates of every barcode.

Value

A spata object containing the set input.

Details

All set*()-functions offer a save way to set certain slots of your spata-object. They do check the input for validity but effectively overwrite everything that is occupying the slot to be set - use with caution.