clean_analytes: clean_analytes

View source: R/method-preprocess.R

clean_analytesR Documentation

clean_analytes

Description

Remove unqualified metabolites and OTU which only measured in few samples.

Usage

clean_analytes(object, fea_num = 2)

Arguments

object

a 'bSet' or 'mSet' class

fea_num,

integer, Removal of features only measured in 'fea_num' of samples

Value

return a quantified 'bSet' or 'mSet' object

Examples

library(data.table)
path <- system.file('extdata', 'metabolites_and_genera.rda', package = 'mbOmic')
load(path)
names(genera)[1] <- 'rn'
names(metabolites)[1] <- 'rn'
b <- bSet(b = genera)
m <- mSet(m = metabolites)
clean_analytes(b)

gongcongcong/mbOmic documentation built on July 1, 2023, 1:47 p.m.