blank_filter: MS/NMR data filtering based on "blank" data

View source: R/mt_extra.R

blank_filterR Documentation

MS/NMR data filtering based on "blank" data

Description

MS/NMR data filtering based on "blank" data

Usage

blank_filter(
  x,
  y,
  method = c("mean", "median", "max"),
  factor = 1,
  f_mv = TRUE,
  thres_mv = 0.3
)

Arguments

x

a data matrix.

y

a character string with contents of "sample", "qc" and "blank".

method

method for stats. Support "mean", "median" and "max".

factor

multiplier for blank stats

f_mv

a flag indicating whether perform missing value filtering on "sample" data.

thres_mv

threshold of missing values on QC. Features less than this threshold will be kept.

Details

This function provides an option to perform missing value filtering on "sample" data.

Value

a list of with contents:

  • dat the filtered data matrix

  • idx a logical vector of index for keeping features.

See Also

Other variable filters: locfdr_filter(), mv_filter(), qc_filter(), rsd_filter(), var_filter()


wanchanglin/mtExtra documentation built on June 14, 2025, 4:39 a.m.