Skip to contents

Runs Rectangle deconvolution via Python/reticulate and returns a matrix with column names prefixed by result_name.

Usage

deconvolute_rectangle(
  spatial_obj,
  signature = NULL,
  assay_sp = "counts",
  result_name = "rectangle",
  n_cpus = 1L,
  correct_mrna_bias = TRUE,
  ...
)

Arguments

spatial_obj

SpatialExperiment.

signature

RectangleSignatureResult from build_model().

assay_sp

Spatial assay to use. Use raw UMI counts or CPM for UMI-based spatial data; Rectangle rescales each spot to a total of one million. For non-UMI full-length data, supply TPM. Do not use log-transformed values.

result_name

Prefix used to label result columns (default: "rectangle").

n_cpus

Number of CPU cores to use in Rectangle (default: 1).

correct_mrna_bias

Correct mRNA bias in Rectangle.

...

Ignored. Present for compatibility with the generic dispatcher.