setCoordsDf: Set the coordinates

setCoordsDfR Documentation

Set the coordinates

Description

Set the coordinates

Usage

setCoordsDf(object, ...)

## S4 method for signature 'SPATA2'
setCoordsDf(object, coords_df, force = FALSE)

## S4 method for signature 'SpatialData'
setCoordsDf(object, coords_df, force = FALSE)

Arguments

object

An object of class SPATA2 or, in case of S4 generics, objects of classes for which a method has been defined.

...

Used to absorb deprecated arguments or functions.

coords_df

A data.frame containing information about every observation. Must contain the variables:

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

  • sample Character. The sample belonging of every observation.

  • x_orig Numeric. The unscaled x-coordinates of every observation.

  • y_orig Numeric. The unscaled y-coordinates of every observation.

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.

Value

A spata object containing the set input.


theMILOlab/SPATA2 documentation built on Feb. 8, 2025, 11:41 p.m.