Skip to contents

This function categorizes pixels into four groups based on their similarity in gene expression between two spatial experiments. The assigned classification is stored in a new column, `fill`, within the input data frame.

Usage

assignFill(input, gene, df)

Arguments

input

A list. Results from `spatialSimilarity()`. This includes the similarity table and classified pixel IDs.

gene

Character. The name of the gene for which pixel classification is performed.

df

Data frame containing pixel-level gene expression data.

Value

The input data frame with an additional column, `fill`, which assigns classification labels to pixels:

  • 1Pixels classified as similar (within the fold-change threshold).

  • 2Pixels with greater expression in dataset X than Y

  • 3Pixels with greater expression in dataset Y than X

  • 4Pixels with gene expression below the threshold in both experiments.