mv_sample_filter: Missing value sample filter

View source: R/mv_sample_filter_class.R

mv_sample_filterR Documentation

Missing value sample filter

Description

Removes samples where the percent number of missing values exceeds a threshold.

Usage

mv_sample_filter(mv_threshold = 20, ...)

Arguments

mv_threshold

(numeric) The maximum percentage of features with missing values in a sample. The default is 20.

...

Additional slots and values passed to struct_class.

Details

This object makes use of functionality from the following packages:

  • pmp

Value

A mv_sample_filter object with the following output slots:

filtered (DatasetExperiment) A DatasetExperiment object containing the filtered data.
flags (data.frame) A flag indicating whether the sample was rejected. 0 = rejected.
percent_missing (data.frame) % missing values for each sample.

Inheritance

A mv_sample_filter object inherits the following struct classes:

⁠[mv_sample_filter]⁠ >> ⁠[model]⁠ >> ⁠[struct_class]⁠

References

Jankevics A, Lloyd GR, Weber RJM (????). pmp: Peak Matrix Processing and signal batch correction for metabolomics datasets. R package version 1.15.1.

Examples

M = mv_sample_filter(
      mv_threshold = 20)

C = mv_sample_filter()

computational-metabolomics/structtoolbox documentation built on July 2, 2024, 10:46 p.m.