NormalizeTargetPeaks: NormalizeTargetPeaks: Calculates the normalization of each...

Description Usage Arguments Value

View source: R/normalizations.R

Description

NormalizeTargetPeaks: Calculates the normalization of each pixel as the sum of areas of specified peaks. The spectra that not contains target mass peaks will be removed by normalizing them by Inf.

Usage

1
NormalizeTargetPeaks(img, mz_vector, mz_window_size = 0.1, norm_name = "SelPK")

Arguments

img

the rMSI image object.

mz_vector

a vector containing m/z values of peaks to be used for normalization.

mz_window_size

specifies the with of peak gaussian. Set to 0.1 Da by default which is OK for reflector TOF MALDI instrument

norm_name

a name to be used for the normalization. Default is set to "SelPK".

Value

a rMSI image containing the normalizations$<name> field


prafols/rMSI documentation built on Dec. 12, 2021, 7:29 p.m.