msms_align: Locally align a pair of mass specs

View source: R/msms_align.R

msms_alignR Documentation

Locally align a pair of mass specs

Description

Locally align a pair of mass specs

Usage

msms_align(
  data1,
  data2,
  mass,
  alim = c(-1, 6),
  laglim = 0.3,
  by = 0.005,
  doplot = T,
  verbose = T
)

Arguments

data1

the first MS

data2

the secon MS

mass

the mass around which to do the alighment

alim

the window around the mass, defaluts to [-1,6]

laglim

the largest permissable lag

by

the resampling rate, default value is 0.005

doplot

whether to generate a plot of the alignment

verbose

whether to write messages whilst processing

Value

a dataframe holding the following fields:

lag

The lag for sample 1

cor

The correlation coefficient for sample 1


bioarch-sjh/bacollite documentation built on Oct. 7, 2022, 3:34 p.m.