drift_corr_loess: Performs drift correction based on LOESS smoothing

View source: R/midar-batchcorr.R

drift_corr_loessR Documentation

Performs drift correction based on LOESS smoothing

Description

Performs drift correction based on LOESS smoothing

Usage

drift_corr_loess(
  data,
  qc_types,
  smooth_by_batch = TRUE,
  log2_transform = TRUE,
  loess_span = 0.75,
  limit_to_species = NULL,
  apply_only_if_smpl_cv_lower = FALSE,
  treshold_smpl_cv_delta = 0
)

Arguments

data

MidarExperiment object

qc_types

QC types used for drift correction

smooth_by_batch

Correct each batch separately (Default is TRUE)

log2_transform

log2 transform data during correction (Default is TRUE)

loess_span

Loess span width (default is 0.75)

limit_to_species

Apply correction only to species matching (RegEx)

apply_only_if_smpl_cv_lower

Apply correction only if sample CV decreases (default is FALSE)

treshold_smpl_cv_delta

Maximum sample CV change for correction to be applied


SLINGhub/SLINGtools documentation built on April 20, 2023, 5:09 a.m.