apply_alignment: Apply Peak alignment

View source: R/functions_preprocessing.R

apply_alignmentR Documentation

Apply Peak alignment

Description

Function to apply peak picking parameters on a data subset

Usage

apply_alignment(
  data,
  metadata,
  min_frac,
  min_samples,
  bin = 0.25,
  bw = 30,
  group_by,
  plot = FALSE
)

Arguments

data

An MSnExp object in centroid mode.

metadata

Sample information data.frame.

min_frac

Minimum fraction of samples within a sample group a peak must be present to be considered a peak group.

min_samples

Minimum number of samples in at least one sample group a peak must be present to be considered a peak group.

bin

Size of the overlapping mz slices

bw

= Bandwidth of the smoothing kernel

group_by

Vector with the same length of the samples with grouping information


Coayala/MetaboTandem documentation built on April 7, 2024, 3:39 a.m.