refImageBinarySVM: Calculate the binary reference image using linear SVM trained...

View source: R/binary_refimg.R

refImageBinarySVMR Documentation

Calculate the binary reference image using linear SVM trained on manually selected pixels.

Description

Calculate the binary reference image using linear SVM trained on manually selected pixels.

Usage

refImageBinarySVM(
  dataset,
  mzQueryRef = numeric(),
  mzTolerance = Inf,
  useFullMZ = TRUE
)

Arguments

dataset

msi.dataset-class object. See msiDataset.

mzQueryRef

numeric. Values of m/z used to calculate the reference image. 2 values are interpreted as interval, multiple or single values are searched in the m/z vector. It overrides the argument useFullMZ.

mzTolerance

numeric (default = Inf). Tolerance in PPM to match the mzQueryRef values in the m/z vector.

useFullMZ

logical (default = TRUE). Whether all the peaks should be used to calculate the reference image.

Value

ms.image-class object with binary intensities.


paoloinglese/SPUTNIK documentation built on April 18, 2024, 8:56 p.m.