transformIntensity: Intensity transformation for SPPs

View source: R/transformIntensity.R

transformIntensityR Documentation

Intensity transformation for SPPs

Description

Intensity transformation for SPPs

Usage

transformIntensity(
  spp,
  method = "z-score",
  irange = c(0, 1),
  forceRange = TRUE
)

Arguments

spp:

a spatial point pattern of type 'ppp' with its 'marks' being a dataframe with two columns 'idx'and 'intensity'.

method:

a character specifying the method of transformation, one of 'c("z-score", "sqrt", "scaling")' such that 'z-score' represents (analyte-wise) standardization (subtraction of mean and division by std), 'sqrt' is the square root transformation and 'scaling' is linear mapping of intensities into [0,1] range.

irange:

a numeric vector of two elements speciying the output range of the scalled intensities.

forceRange:

logical, whether to force-map the intensities in to the range given by 'irange' regardless of the 'method' used.


CeMOS-Mannheim/moleculaR documentation built on April 14, 2025, 8:27 a.m.