Generates appropriate input for argument model_add of functions related to Spatial Trajectory Screening (STS) or Image Annotation Screening (IAS). To screen for gradient cooexpression.

gradientToModelIAS(
  object,
  id,
  variables,
  distance = NA_integer_,
  binwidth = getCCD(object),
  n_bins_circle = NA_integer_,
  include_area = FALSE,
  verbose = TRUE
)

gradientToModelSTS(
  object,
  id,
  variables,
  binwidth = getCCD(object, "px"),
  n_bins = NA_integer_,
  verbose = TRUE
)

Arguments

object

An object of class spata2.

id

Character value. ID of the spatial trajectory or the image annotation of interest.

variables

Character vector. All numeric variables (meaning genes, gene-sets and numeric features) that are supposed to be included in the screening process.

distance, binwidth, n_bins_circle, n_bins

The input given to the desired screening- or visualization functions.

verbose

Logical. If set to TRUE informative messages regarding the computational progress will be printed.

(Warning messages will always be printed.)