spectra_1A1B_mixer: Mixer 1:1 spectra A and B

View source: R/spectra_1A1B_mixer.R

spectra_1A1B_mixerR Documentation

Mixer 1:1 spectra A and B

Description

This function creates 1:1 mixed AB spectra for spectral entropy calculation

Usage

spectra_1A1B_mixer(PEAK_A, PEAK_B, massError = 0, allowedNominalMass = FALSE)

Arguments

PEAK_A

A matrix (m/z, int) of fragmentation spectra

PEAK_B

A matrix (m/z, int) of fragmentation spectra

massError

Mass accuracy in Da

allowedNominalMass

c(TRUE, FALSE). Select 'TRUE' only for nominal mass analysis.

Value

A matrix of 1:1 mixing spectra. First and second columns represent intensity-weighted average m/z and cumulated intensity, respectively.


IDSL.FSA documentation built on July 9, 2023, 6:45 p.m.